Fix of 20124 issue (EDF SMESH 920 : "Max element volume" hypothesis is not used): set correct formula of 'maxh' Netgen parameter computation.
This commit is contained in:
parent
bce0f0487d
commit
ceb1effa03
@ -275,7 +275,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
|
|||||||
int Netgen_NbOfNodes = 0;
|
int Netgen_NbOfNodes = 0;
|
||||||
int Netgen_param2ndOrder = 0;
|
int Netgen_param2ndOrder = 0;
|
||||||
double Netgen_paramFine = 1.;
|
double Netgen_paramFine = 1.;
|
||||||
double Netgen_paramSize = _maxElementVolume;
|
double Netgen_paramSize = pow( 72, 1/6. ) * pow( _maxElementVolume, 1/3. );
|
||||||
|
|
||||||
double Netgen_point[3];
|
double Netgen_point[3];
|
||||||
int Netgen_triangle[3];
|
int Netgen_triangle[3];
|
||||||
@ -499,7 +499,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
|
|||||||
int Netgen_NbOfNodes = 0;
|
int Netgen_NbOfNodes = 0;
|
||||||
int Netgen_param2ndOrder = 0;
|
int Netgen_param2ndOrder = 0;
|
||||||
double Netgen_paramFine = 1.;
|
double Netgen_paramFine = 1.;
|
||||||
double Netgen_paramSize = _maxElementVolume;
|
double Netgen_paramSize = pow( 72, 1/6. ) * pow( _maxElementVolume, 1/3. );
|
||||||
|
|
||||||
double Netgen_point[3];
|
double Netgen_point[3];
|
||||||
int Netgen_triangle[3];
|
int Netgen_triangle[3];
|
||||||
@ -600,8 +600,8 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
|
|||||||
{
|
{
|
||||||
Ng_GetPoint( Netgen_mesh, nodeIndex, Netgen_point );
|
Ng_GetPoint( Netgen_mesh, nodeIndex, Netgen_point );
|
||||||
SMDS_MeshNode * node = aHelper->AddNode(Netgen_point[0],
|
SMDS_MeshNode * node = aHelper->AddNode(Netgen_point[0],
|
||||||
Netgen_point[1],
|
Netgen_point[1],
|
||||||
Netgen_point[2]);
|
Netgen_point[2]);
|
||||||
nodeVec.at(nodeIndex) = node;
|
nodeVec.at(nodeIndex) = node;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -610,9 +610,9 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
|
|||||||
{
|
{
|
||||||
Ng_GetVolumeElement(Netgen_mesh, elemIndex, Netgen_tetrahedron);
|
Ng_GetVolumeElement(Netgen_mesh, elemIndex, Netgen_tetrahedron);
|
||||||
aHelper->AddVolume (nodeVec.at( Netgen_tetrahedron[0] ),
|
aHelper->AddVolume (nodeVec.at( Netgen_tetrahedron[0] ),
|
||||||
nodeVec.at( Netgen_tetrahedron[1] ),
|
nodeVec.at( Netgen_tetrahedron[1] ),
|
||||||
nodeVec.at( Netgen_tetrahedron[2] ),
|
nodeVec.at( Netgen_tetrahedron[2] ),
|
||||||
nodeVec.at( Netgen_tetrahedron[3] ));
|
nodeVec.at( Netgen_tetrahedron[3] ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user