Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes | Static Public Attributes
StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D Class Reference

Defines a Radial Quadrangle 1D2D algorithm It is created by calling Mesh.Quadrangle(RADIAL_QUAD,geom=0) More...

Inheritance diagram for StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D:
Inheritance graph
[legend]
Collaboration diagram for StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
 Private constructor.
def Get2DHypothesis
 Return 2D hypothesis holding the 1D one.
def OwnHypothesis
 Private method creating a 1D hypothesis and storing it in the LayerDistribution hypothesis.
def NumberOfLayers
 Defines "NumberOfLayers" hypothesis, specifying the number of layers.
def LocalLength
 Defines "LocalLength" hypothesis, specifying the segment length.
def NumberOfSegments
 Defines "NumberOfSegments" hypothesis, specifying the number of layers.
def Arithmetic1D
 Defines "Arithmetic1D" hypothesis, specifying the distribution of segments with a length that changes in arithmetic progression.
def StartEndLength
 Defines "StartEndLength" hypothesis, specifying distribution of segments as geometric length increasing.
def AutomaticLength
 Defines "AutomaticLength" hypothesis, specifying the number of segments.

Public Attributes

 distribHyp
 nbLayers

Static Public Attributes

string meshMethod = "Quadrangle"
 Name of method of class Mesh creating an instance of this class.
 algoType = RADIAL_QUAD
 Name of algorithm type.

Detailed Description

Defines a Radial Quadrangle 1D2D algorithm It is created by calling Mesh.Quadrangle(RADIAL_QUAD,geom=0)

Definition at line 858 of file StdMeshersDC.py.


Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 866 of file StdMeshersDC.py.

00866 
00867     def __init__(self, mesh, geom=0):
00868         Mesh_Algorithm.__init__(self)
00869         self.Create(mesh, geom, self.algoType)
00870 
00871         self.distribHyp = None #self.Hypothesis("LayerDistribution2D", UseExisting=0)
00872         self.nbLayers = None

Here is the call graph for this function:


Member Function Documentation

Defines "Arithmetic1D" hypothesis, specifying the distribution of segments with a length that changes in arithmetic progression.

Parameters:
startthe length of the first segment
endthe length of the last segment

Definition at line 934 of file StdMeshersDC.py.

00934 
00935     def Arithmetic1D(self, start, end ):
00936         hyp = self.OwnHypothesis("Arithmetic1D", [start, end])
00937         hyp.SetLength(start, 1)
00938         hyp.SetLength(end  , 0)
00939         return hyp

Here is the call graph for this function:

Defines "AutomaticLength" hypothesis, specifying the number of segments.

Parameters:
finenessdefines the quality of the mesh within the range [0-1]

Definition at line 952 of file StdMeshersDC.py.

00952 
00953     def AutomaticLength(self, fineness=0):
00954         hyp = self.OwnHypothesis("AutomaticLength")
00955         hyp.SetFineness( fineness )
00956         return hyp
00957 
00958 
00959 # Public class: Mesh_UseExistingElements
# --------------------------------------

Here is the call graph for this function:

Return 2D hypothesis holding the 1D one.

Definition at line 874 of file StdMeshersDC.py.

00874 
00875     def Get2DHypothesis(self):
00876         if not self.distribHyp:
00877             self.distribHyp = self.Hypothesis("LayerDistribution2D", UseExisting=0)
00878         return self.distribHyp

Here is the call graph for this function:

def StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D.LocalLength (   self,
  l,
  p = 1e-07 
)

Defines "LocalLength" hypothesis, specifying the segment length.

Parameters:
lthe length of segments
pthe precision of rounding

Definition at line 911 of file StdMeshersDC.py.

00911 
00912     def LocalLength(self, l, p=1e-07):
00913         hyp = self.OwnHypothesis("LocalLength", [l,p])
00914         hyp.SetLength(l)
00915         hyp.SetPrecision(p)
00916         return hyp

Here is the call graph for this function:

def StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D.NumberOfLayers (   self,
  n,
  UseExisting = 0 
)

Defines "NumberOfLayers" hypothesis, specifying the number of layers.

Parameters:
nnumber of layers
UseExistingif ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 899 of file StdMeshersDC.py.

00899 
00900     def NumberOfLayers(self, n, UseExisting=0):
00901         if self.distribHyp:
00902             self.mesh.GetMesh().RemoveHypothesis( self.geom, self.distribHyp )
00903         compFun = lambda hyp, args: IsEqual(hyp.GetNumberOfLayers(), args[0])
00904         self.nbLayers = self.Hypothesis("NumberOfLayers2D", [n], UseExisting=UseExisting,
00905                                         CompareMethod=compFun)
00906         self.nbLayers.SetNumberOfLayers( n )
00907         return self.nbLayers

Here is the call graph for this function:

Defines "NumberOfSegments" hypothesis, specifying the number of layers.

Parameters:
nthe number of layers
sthe scale factor (optional)

Definition at line 920 of file StdMeshersDC.py.

00920 
00921     def NumberOfSegments(self, n, s=[]):
00922         if s == []:
00923             hyp = self.OwnHypothesis("NumberOfSegments", [n])
00924         else:
00925             hyp = self.OwnHypothesis("NumberOfSegments", [n,s])
00926             hyp.SetDistrType( 1 )
00927             hyp.SetScaleFactor(s)
00928         hyp.SetNumberOfSegments(n)
00929         return hyp

Here is the call graph for this function:

def StdMeshersDC.StdMeshersDC_RadialQuadrangle1D2D.OwnHypothesis (   self,
  hypType,
  args = [],
  so = "libStdMeshersEngine.so" 
)

Private method creating a 1D hypothesis and storing it in the LayerDistribution hypothesis.

Returns the created hypothesis

Definition at line 881 of file StdMeshersDC.py.

00881 
00882     def OwnHypothesis(self, hypType, args=[], so="libStdMeshersEngine.so"):
00883         if self.nbLayers:
00884             self.mesh.GetMesh().RemoveHypothesis( self.geom, self.nbLayers )
00885         if self.distribHyp is None:
00886             self.distribHyp = self.Hypothesis("LayerDistribution2D", UseExisting=0)
00887         else:
00888             self.mesh.GetMesh().AddHypothesis( self.geom, self.distribHyp )
00889         study = self.mesh.smeshpyD.GetCurrentStudy() # prevents publishing own 1D hypothesis
00890         self.mesh.smeshpyD.SetCurrentStudy( None )
00891         hyp = self.mesh.smeshpyD.CreateHypothesis(hypType, so)
00892         self.mesh.smeshpyD.SetCurrentStudy( study ) # enables publishing
00893         self.distribHyp.SetLayerDistribution( hyp )
00894         return hyp

Here is the call graph for this function:

Here is the caller graph for this function:

Defines "StartEndLength" hypothesis, specifying distribution of segments as geometric length increasing.

Parameters:
startfor the length of the first segment
endfor the length of the last segment

Definition at line 944 of file StdMeshersDC.py.

00944 
00945     def StartEndLength(self, start, end):
00946         hyp = self.OwnHypothesis("StartEndLength", [start, end])
00947         hyp.SetLength(start, 1)
00948         hyp.SetLength(end  , 0)
00949         return hyp

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 863 of file StdMeshersDC.py.

Definition at line 870 of file StdMeshersDC.py.

Name of method of class Mesh creating an instance of this class.

Definition at line 861 of file StdMeshersDC.py.

Definition at line 871 of file StdMeshersDC.py.


The documentation for this class was generated from the following file: