Hypothesis defining parameters of viscous layers. More...

#include <StdMeshers_ViscousLayers.hxx>

Public Types

enum  ExtrusionMethod { SURF_OFFSET_SMOOTH , FACE_OFFSET , NODE_OFFSET }
 
- Public Types inherited from SMESH_Hypothesis
enum  Hypothesis_Status {
  HYP_OK = 0 , HYP_MISSING , HYP_CONCURENT , HYP_BAD_PARAMETER ,
  HYP_HIDDEN_ALGO , HYP_HIDING_ALGO , HYP_UNKNOWN_FATAL , HYP_INCOMPATIBLE ,
  HYP_NOTCONFORM , HYP_ALREADY_EXIST , HYP_BAD_DIM , HYP_BAD_SUBSHAPE ,
  HYP_BAD_GEOMETRY , HYP_NEED_SHAPE , HYP_INCOMPAT_HYPS
}
 
- Public Types inherited from SMESHDS_Hypothesis
enum  hypothesis_type {
  PARAM_ALGO , ALGO_0D , ALGO_1D , ALGO_2D ,
  ALGO_3D
}
 

Public Member Functions

SMESH_ProxyMesh::Ptr Compute (SMESH_Mesh &theMesh, const TopoDS_Shape &theShape, const bool toMakeN2NMap=false) const
 
std::vector< int > GetBndShapes () const
 
ExtrusionMethod GetMethod () const
 
int GetNumberLayers () const
 
double GetStretchFactor () const
 
double GetTotalThickness () const
 
bool IsShapeWithLayers (int shapeIndex) const
 
bool IsToIgnoreShapes () const
 
virtual std::istream & LoadFrom (std::istream &load)
 
virtual std::ostream & SaveTo (std::ostream &save)
 
void SetBndShapes (const std::vector< int > &shapeIds, bool toIgnore)
 
void SetMethod (ExtrusionMethod how)
 
void SetNumberLayers (int nb)
 
virtual bool SetParametersByDefaults (const TDefaults &dflts, const SMESH_Mesh *theMesh=0)
 Initialize my parameter values by default parameters. More...
 
virtual bool SetParametersByMesh (const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)
 Initialize my parameter values by the mesh built on the geometry. More...
 
void SetStretchFactor (double factor)
 
void SetTotalThickness (double thickness)
 
 StdMeshers_ViscousLayers (int hypId, int studyId, SMESH_Gen *gen)
 
- Public Member Functions inherited from SMESH_Hypothesis
void ClearParameters ()
 
virtual bool DataDependOnParams () const
 The returned value is used by NotifySubMeshesHypothesisModification() to decide to call subMesh->AlgoStateEngine( MODIF_HYP, hyp ) or not if subMesh is ready to be computed (algo+hyp==OK) but not yet computed. True result is reasonable for example if EventListeners depend on parameters of hypothesis. More...
 
virtual int GetDim () const
 
SMESH_GenGetGen () const
 
char * GetLastParameters () const
 
virtual const char * GetLibName () const
 
SMESH_MeshGetMeshByPersistentID (int id)
 Find a mesh with given persistent ID. More...
 
char * GetParameters () const
 
virtual int GetShapeType () const
 
int GetStudyId () const
 
virtual bool IsAuxiliary () const
 Return true if me is an auxiliary hypothesis. More...
 
virtual void NotifySubMeshesHypothesisModification ()
 
void SetLastParameters (const char *theParameters)
 
void SetLibName (const char *theLibName)
 
void SetParameters (const char *theParameters)
 
 SMESH_Hypothesis (int hypId, int studyId, SMESH_Gen *gen)
 
virtual ~SMESH_Hypothesis ()
 
- Public Member Functions inherited from SMESHDS_Hypothesis
int GetID () const
 
const char * GetName () const
 
int GetType () const
 
bool IsSameName (const SMESHDS_Hypothesis &other) const
 Compare types of hypotheses. More...
 
bool operator!= (const SMESHDS_Hypothesis &other) const
 
virtual bool operator== (const SMESHDS_Hypothesis &other) const
 
 SMESHDS_Hypothesis (int hypId)
 
virtual ~SMESHDS_Hypothesis ()
 

Static Public Member Functions

static SMESH_ComputeErrorPtr CheckHypothesis (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, SMESH_Hypothesis::Hypothesis_Status &aStatus)
 
static const char * GetHypType ()
 
- Static Public Member Functions inherited from SMESH_Hypothesis
static bool IsStatusFatal (Hypothesis_Status theStatus)
 

Detailed Description

Hypothesis defining parameters of viscous layers.

Member Enumeration Documentation

◆ ExtrusionMethod

Enumerator
SURF_OFFSET_SMOOTH 
FACE_OFFSET 
NODE_OFFSET 

Constructor & Destructor Documentation

◆ StdMeshers_ViscousLayers()

StdMeshers_ViscousLayers::StdMeshers_ViscousLayers ( int  hypId,
int  studyId,
SMESH_Gen gen 
)

References GetHypType().

Member Function Documentation

◆ CheckHypothesis()

SMESH_ComputeErrorPtr StdMeshers_ViscousLayers::CheckHypothesis ( SMESH_Mesh aMesh,
const TopoDS_Shape &  aShape,
SMESH_Hypothesis::Hypothesis_Status aStatus 
)
static

◆ Compute()

SMESH_ProxyMesh::Ptr StdMeshers_ViscousLayers::Compute ( SMESH_Mesh theMesh,
const TopoDS_Shape &  theShape,
const bool  toMakeN2NMap = false 
) const

◆ GetBndShapes()

std::vector<int> StdMeshers_ViscousLayers::GetBndShapes ( ) const

◆ GetHypType()

static const char* StdMeshers_ViscousLayers::GetHypType ( )
static

◆ GetMethod()

ExtrusionMethod StdMeshers_ViscousLayers::GetMethod ( ) const

◆ GetNumberLayers()

int StdMeshers_ViscousLayers::GetNumberLayers ( ) const

◆ GetStretchFactor()

double StdMeshers_ViscousLayers::GetStretchFactor ( ) const

◆ GetTotalThickness()

double StdMeshers_ViscousLayers::GetTotalThickness ( ) const

◆ IsShapeWithLayers()

bool StdMeshers_ViscousLayers::IsShapeWithLayers ( int  shapeIndex) const

◆ IsToIgnoreShapes()

bool StdMeshers_ViscousLayers::IsToIgnoreShapes ( ) const

◆ LoadFrom()

std::istream & StdMeshers_ViscousLayers::LoadFrom ( std::istream &  load)
virtual

Implements SMESHDS_Hypothesis.

◆ SaveTo()

std::ostream & StdMeshers_ViscousLayers::SaveTo ( std::ostream &  save)
virtual

◆ SetBndShapes()

void StdMeshers_ViscousLayers::SetBndShapes ( const std::vector< int > &  shapeIds,
bool  toIgnore 
)

◆ SetMethod()

void StdMeshers_ViscousLayers::SetMethod ( ExtrusionMethod  how)

◆ SetNumberLayers()

void StdMeshers_ViscousLayers::SetNumberLayers ( int  nb)

◆ SetParametersByDefaults()

virtual bool StdMeshers_ViscousLayers::SetParametersByDefaults ( const TDefaults dflts,
const SMESH_Mesh theMesh = 0 
)
virtual

Initialize my parameter values by default parameters.

Return values
bool- true if parameter values have been successfully defined

Implements SMESH_Hypothesis.

Reimplemented in StdMeshers_ViscousLayers2D.

◆ SetParametersByMesh()

bool StdMeshers_ViscousLayers::SetParametersByMesh ( const SMESH_Mesh theMesh,
const TopoDS_Shape &  theShape 
)
virtual

Initialize my parameter values by the mesh built on the geometry.

Parameters
theMesh- the built mesh
theShape- the geometry of interest
Return values
bool- true if parameter values have been successfully defined

Implements SMESH_Hypothesis.

Reimplemented in StdMeshers_ViscousLayers2D.

◆ SetStretchFactor()

void StdMeshers_ViscousLayers::SetStretchFactor ( double  factor)

◆ SetTotalThickness()

void StdMeshers_ViscousLayers::SetTotalThickness ( double  thickness)

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/3rdParty/salomesmesh/inc/StdMeshers_ViscousLayers.hxx
  • Sources/FreeCAD/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_ViscousLayers.cpp