Back to index

salome-smesh  6.5.0
Functions
Smoothing
Modifying meshes
Collaboration diagram for Smoothing:

Functions

def smeshDC.Mesh.Smooth
 Smoothes elements.
def smeshDC.Mesh.SmoothObject
 Smoothes elements which belong to the given object.
def smeshDC.Mesh.SmoothParametric
 Parametrically smoothes the given elements.
def smeshDC.Mesh.SmoothParametricObject
 Parametrically smoothes the elements which belong to the given object.

Function Documentation

def smeshDC.Mesh.Smooth (   self,
  IDsOfElements,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
)

Smoothes elements.

Parameters:
IDsOfElementsthe list if ids of elements to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
Methodis Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2795 of file smeshDC.py.

02795 
02796                MaxNbOfIterations, MaxAspectRatio, Method):
02797         if IDsOfElements == []:
02798             IDsOfElements = self.GetElementsId()
02799         MaxNbOfIterations,MaxAspectRatio,Parameters,hasVars = ParseParameters(MaxNbOfIterations,MaxAspectRatio)
02800         self.mesh.SetParameters(Parameters)
02801         return self.editor.Smooth(IDsOfElements, IDsOfFixedNodes,
02802                                   MaxNbOfIterations, MaxAspectRatio, Method)

Here is the call graph for this function:

Here is the caller graph for this function:

def smeshDC.Mesh.SmoothObject (   self,
  theObject,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
)

Smoothes elements which belong to the given object.

Parameters:
theObjectthe object to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
Methodis Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2813 of file smeshDC.py.

02813 
02814                      MaxNbOfIterations, MaxAspectRatio, Method):
02815         if ( isinstance( theObject, Mesh )):
02816             theObject = theObject.GetMesh()
02817         return self.editor.SmoothObject(theObject, IDsOfFixedNodes,
02818                                         MaxNbOfIterations, MaxAspectRatio, Method)

Here is the call graph for this function:

Here is the caller graph for this function:

def smeshDC.Mesh.SmoothParametric (   self,
  IDsOfElements,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
)

Parametrically smoothes the given elements.

Parameters:
IDsOfElementsthe list if ids of elements to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
Methodis Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2829 of file smeshDC.py.

02829 
02830                          MaxNbOfIterations, MaxAspectRatio, Method):
02831         if IDsOfElements == []:
02832             IDsOfElements = self.GetElementsId()
02833         MaxNbOfIterations,MaxAspectRatio,Parameters,hasVars = ParseParameters(MaxNbOfIterations,MaxAspectRatio)
02834         self.mesh.SetParameters(Parameters)
02835         return self.editor.SmoothParametric(IDsOfElements, IDsOfFixedNodes,
02836                                             MaxNbOfIterations, MaxAspectRatio, Method)

Here is the call graph for this function:

Here is the caller graph for this function:

def smeshDC.Mesh.SmoothParametricObject (   self,
  theObject,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
)

Parametrically smoothes the elements which belong to the given object.

Parameters:
theObjectthe object to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
MethodLaplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2847 of file smeshDC.py.

02847 
02848                                MaxNbOfIterations, MaxAspectRatio, Method):
02849         if ( isinstance( theObject, Mesh )):
02850             theObject = theObject.GetMesh()
02851         return self.editor.SmoothParametricObject(theObject, IDsOfFixedNodes,
02852                                                   MaxNbOfIterations, MaxAspectRatio, Method)

Here is the caller graph for this function: