IPAL52922: Wrong processing of "Growth rate" value (Netgen 2D Parameters hypothesis) or Salome User's Guide documentation should be updated

IPAL52926: NETGENPLUGIN User's Guide documentation: screenshot should be updated
    Doc updated

IPAL52936: [NETGEN] Unset Local size is incorrectly dumped
    hyp impl and a resource file fixed
This commit is contained in:
eap 2015-10-27 19:22:09 +03:00
parent 48af9556ce
commit 92b0965b56
8 changed files with 23 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -13,11 +13,11 @@ This hypothesis allows creation of layers of highly stretched prisms near
mesh boundary, which is beneficial for high quality viscous
computations. The prisms constructed on the quadrangular mesh faces are
actually the hexahedrons.</li>
</ul>
<li><b>Quadrangle Preference</b> - This additional hypothesis can be
used together with Netgen 2D algorithm.
It allows Netgen 2D to build quad-dominant meshes.</li>
</ul>
<br>
For more detailed description of the described above hypothesis please refer SALOME Mesh User's Guide.

View File

@ -10,8 +10,8 @@
constructed as a transition from quadrangles to tetrahedra.
- Generating 3D meshes from 2D meshes, working without geometrical objects.
To manage parameters of the NETGENPLUGIN use \subpage
netgen_2d_3d_hypo_page and \subpage additional_hypo_page.
To manage parameters of the NETGENPLUGIN use
\subpage netgen_2d_3d_hypo_page and \subpage additional_hypo_page.
Native Netgen mesher usually prints a lot of trace output to the terminal
window. This output is redirected to some log file by the Plugin. It

View File

@ -42,8 +42,9 @@ size at a given point. This parameter is used only if <b>Limit Size by
then size of mesh segments and mesh faces on curved edges and surfaces
is defined using value of <b>Nb Segs per Radius</b> parameter, and
number of segments on straight edges is defined by values of
<b>Nb. Segs per Edge</b> parameter. If this box is not checked in,
then size of elements is defined by three parameters only:
<b>Nb. Segs per Edge</b> parameter. (<b>Growth rate</b> is also taken
into account.) If this box is not checked in, then size of elements is
defined by three parameters only:
<b>Max Size</b>, <b>Min Size</b> and <b>Growth rate</b>.
- <b>Allow Quadrangles</b> - if this box is checked in, the mesher
tries to generate quadrangle 2D mesh. Triangle elements are created

View File

@ -40,7 +40,8 @@
dim="3">
<python-wrap>
<accumulative-methods>
SetLocalSizeOnShape
SetLocalSizeOnShape,
UnsetLocalSizeOnEntry
</accumulative-methods>
</python-wrap>
</hypothesis>
@ -50,7 +51,8 @@
dim="2">
<python-wrap>
<accumulative-methods>
SetLocalSizeOnShape
SetLocalSizeOnShape,
UnsetLocalSizeOnEntry
</accumulative-methods>
</python-wrap>
</hypothesis>
@ -60,7 +62,8 @@
dim="3">
<python-wrap>
<accumulative-methods>
SetLocalSizeOnShape
SetLocalSizeOnShape,
UnsetLocalSizeOnEntry
</accumulative-methods>
</python-wrap>
</hypothesis>
@ -70,7 +73,8 @@
dim="2">
<python-wrap>
<accumulative-methods>
SetLocalSizeOnShape
SetLocalSizeOnShape,
UnsetLocalSizeOnEntry
</accumulative-methods>
</python-wrap>
</hypothesis>

View File

@ -418,9 +418,9 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromHypo( NetgenHypothesisData
h_data.myAllowQuadrangles = h->GetQuadAllowed();
}
NETGENPluginGUI_HypothesisCreator* that = (NETGENPluginGUI_HypothesisCreator*)this;
NETGENPluginGUI_HypothesisCreator* that = (NETGENPluginGUI_HypothesisCreator*)this;
NETGENPlugin::string_array_var myEntries = h->GetLocalSizeEntries();
for ( int i=0 ; i<myEntries->length() ; i++ )
for ( size_t i = 0; i < myEntries->length(); i++ )
{
QString entry = myEntries[i].in();
double val = h->GetLocalSizeOnEntry(entry.toStdString().c_str());
@ -642,7 +642,7 @@ void NETGENPluginGUI_HypothesisCreator::addLocalSizeOnShape(TopAbs_ShapeEnum typ
SALOME_ListIO ListSelectedObjects;
mySel->selectedObjects(ListSelectedObjects, NULL, false );
SALOME_ListIteratorOfListIO Object_It(ListSelectedObjects);
for (Object_It ; Object_It.More() ; Object_It.Next())
for ( ; Object_It.More() ; Object_It.Next())
{
Handle(SALOME_InteractiveObject) anObject = Object_It.Value();
std::string entry, shapeName;

View File

@ -216,15 +216,15 @@ void NETGENPlugin_Hypothesis::SetNbSegPerRadius(double theVal)
void NETGENPlugin_Hypothesis::SetLocalSizeOnEntry(const std::string& entry, double localSize)
{
if(_localSize[entry] != localSize)
{
_localSize[entry] = localSize;
NotifySubMeshesHypothesisModification();
}
{
_localSize[entry] = localSize;
NotifySubMeshesHypothesisModification();
}
}
//=============================================================================
/*!
*
*
*/
//=============================================================================
double NETGENPlugin_Hypothesis::GetLocalSizeOnEntry(const std::string& entry)

View File

@ -363,7 +363,7 @@ NETGENPlugin::string_array* NETGENPlugin_Hypothesis_i::GetLocalSizeEntries()
void NETGENPlugin_Hypothesis_i::UnsetLocalSizeOnEntry(const char* entry)
{
this->GetImpl()->UnsetLocalSizeOnEntry(entry);
SMESH::TPythonDump() << _this() << ".UnsetLocalSizeOnEntry(" << entry << ")";
SMESH::TPythonDump() << _this() << ".UnsetLocalSizeOnEntry(\"" << entry << "\")";
}
//=============================================================================