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:
parent
48af9556ce
commit
92b0965b56
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 18 KiB |
@ -13,11 +13,11 @@ This hypothesis allows creation of layers of highly stretched prisms near
|
|||||||
mesh boundary, which is beneficial for high quality viscous
|
mesh boundary, which is beneficial for high quality viscous
|
||||||
computations. The prisms constructed on the quadrangular mesh faces are
|
computations. The prisms constructed on the quadrangular mesh faces are
|
||||||
actually the hexahedrons.</li>
|
actually the hexahedrons.</li>
|
||||||
</ul>
|
|
||||||
|
|
||||||
<li><b>Quadrangle Preference</b> - This additional hypothesis can be
|
<li><b>Quadrangle Preference</b> - This additional hypothesis can be
|
||||||
used together with Netgen 2D algorithm.
|
used together with Netgen 2D algorithm.
|
||||||
It allows Netgen 2D to build quad-dominant meshes.</li>
|
It allows Netgen 2D to build quad-dominant meshes.</li>
|
||||||
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
For more detailed description of the described above hypothesis please refer SALOME Mesh User's Guide.
|
For more detailed description of the described above hypothesis please refer SALOME Mesh User's Guide.
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
constructed as a transition from quadrangles to tetrahedra.
|
constructed as a transition from quadrangles to tetrahedra.
|
||||||
- Generating 3D meshes from 2D meshes, working without geometrical objects.
|
- Generating 3D meshes from 2D meshes, working without geometrical objects.
|
||||||
|
|
||||||
To manage parameters of the NETGENPLUGIN use \subpage
|
To manage parameters of the NETGENPLUGIN use
|
||||||
netgen_2d_3d_hypo_page and \subpage additional_hypo_page.
|
\subpage netgen_2d_3d_hypo_page and \subpage additional_hypo_page.
|
||||||
|
|
||||||
Native Netgen mesher usually prints a lot of trace output to the terminal
|
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
|
window. This output is redirected to some log file by the Plugin. It
|
||||||
|
@ -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
|
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
|
is defined using value of <b>Nb Segs per Radius</b> parameter, and
|
||||||
number of segments on straight edges is defined by values of
|
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,
|
<b>Nb. Segs per Edge</b> parameter. (<b>Growth rate</b> is also taken
|
||||||
then size of elements is defined by three parameters only:
|
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>Max Size</b>, <b>Min Size</b> and <b>Growth rate</b>.
|
||||||
- <b>Allow Quadrangles</b> - if this box is checked in, the mesher
|
- <b>Allow Quadrangles</b> - if this box is checked in, the mesher
|
||||||
tries to generate quadrangle 2D mesh. Triangle elements are created
|
tries to generate quadrangle 2D mesh. Triangle elements are created
|
||||||
|
@ -40,7 +40,8 @@
|
|||||||
dim="3">
|
dim="3">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<accumulative-methods>
|
<accumulative-methods>
|
||||||
SetLocalSizeOnShape
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
</accumulative-methods>
|
</accumulative-methods>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</hypothesis>
|
</hypothesis>
|
||||||
@ -50,7 +51,8 @@
|
|||||||
dim="2">
|
dim="2">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<accumulative-methods>
|
<accumulative-methods>
|
||||||
SetLocalSizeOnShape
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
</accumulative-methods>
|
</accumulative-methods>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</hypothesis>
|
</hypothesis>
|
||||||
@ -60,7 +62,8 @@
|
|||||||
dim="3">
|
dim="3">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<accumulative-methods>
|
<accumulative-methods>
|
||||||
SetLocalSizeOnShape
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
</accumulative-methods>
|
</accumulative-methods>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</hypothesis>
|
</hypothesis>
|
||||||
@ -70,7 +73,8 @@
|
|||||||
dim="2">
|
dim="2">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<accumulative-methods>
|
<accumulative-methods>
|
||||||
SetLocalSizeOnShape
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
</accumulative-methods>
|
</accumulative-methods>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</hypothesis>
|
</hypothesis>
|
||||||
|
@ -418,9 +418,9 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromHypo( NetgenHypothesisData
|
|||||||
h_data.myAllowQuadrangles = h->GetQuadAllowed();
|
h_data.myAllowQuadrangles = h->GetQuadAllowed();
|
||||||
}
|
}
|
||||||
|
|
||||||
NETGENPluginGUI_HypothesisCreator* that = (NETGENPluginGUI_HypothesisCreator*)this;
|
NETGENPluginGUI_HypothesisCreator* that = (NETGENPluginGUI_HypothesisCreator*)this;
|
||||||
NETGENPlugin::string_array_var myEntries = h->GetLocalSizeEntries();
|
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();
|
QString entry = myEntries[i].in();
|
||||||
double val = h->GetLocalSizeOnEntry(entry.toStdString().c_str());
|
double val = h->GetLocalSizeOnEntry(entry.toStdString().c_str());
|
||||||
@ -642,7 +642,7 @@ void NETGENPluginGUI_HypothesisCreator::addLocalSizeOnShape(TopAbs_ShapeEnum typ
|
|||||||
SALOME_ListIO ListSelectedObjects;
|
SALOME_ListIO ListSelectedObjects;
|
||||||
mySel->selectedObjects(ListSelectedObjects, NULL, false );
|
mySel->selectedObjects(ListSelectedObjects, NULL, false );
|
||||||
SALOME_ListIteratorOfListIO Object_It(ListSelectedObjects);
|
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();
|
Handle(SALOME_InteractiveObject) anObject = Object_It.Value();
|
||||||
std::string entry, shapeName;
|
std::string entry, shapeName;
|
||||||
|
@ -216,15 +216,15 @@ void NETGENPlugin_Hypothesis::SetNbSegPerRadius(double theVal)
|
|||||||
void NETGENPlugin_Hypothesis::SetLocalSizeOnEntry(const std::string& entry, double localSize)
|
void NETGENPlugin_Hypothesis::SetLocalSizeOnEntry(const std::string& entry, double localSize)
|
||||||
{
|
{
|
||||||
if(_localSize[entry] != localSize)
|
if(_localSize[entry] != localSize)
|
||||||
{
|
{
|
||||||
_localSize[entry] = localSize;
|
_localSize[entry] = localSize;
|
||||||
NotifySubMeshesHypothesisModification();
|
NotifySubMeshesHypothesisModification();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
double NETGENPlugin_Hypothesis::GetLocalSizeOnEntry(const std::string& entry)
|
double NETGENPlugin_Hypothesis::GetLocalSizeOnEntry(const std::string& entry)
|
||||||
|
@ -363,7 +363,7 @@ NETGENPlugin::string_array* NETGENPlugin_Hypothesis_i::GetLocalSizeEntries()
|
|||||||
void NETGENPlugin_Hypothesis_i::UnsetLocalSizeOnEntry(const char* entry)
|
void NETGENPlugin_Hypothesis_i::UnsetLocalSizeOnEntry(const char* entry)
|
||||||
{
|
{
|
||||||
this->GetImpl()->UnsetLocalSizeOnEntry(entry);
|
this->GetImpl()->UnsetLocalSizeOnEntry(entry);
|
||||||
SMESH::TPythonDump() << _this() << ".UnsetLocalSizeOnEntry(" << entry << ")";
|
SMESH::TPythonDump() << _this() << ".UnsetLocalSizeOnEntry(\"" << entry << "\")";
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user