Back to index

salome-geom  6.5.0
Public Member Functions | Public Attributes | Static Public Attributes
GEOM_PY.structelem.parts.GeneralBeam Class Reference
Inheritance diagram for GEOM_PY.structelem.parts.GeneralBeam:
Inheritance graph
[legend]
Collaboration diagram for GEOM_PY.structelem.parts.GeneralBeam:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__
def addOrientation
def build

Public Attributes

 IY1
 IZ1
 IY2
 IZ2
 A1
 A2
 HY1
 HZ1
 HY2
 HZ2
 EPY1
 EPZ1
 EPY2
 EPZ2
 filling
 groupName
 name
 geom
 baseShapesSet
 isMainShape
 color

Static Public Attributes

string DEFAULT_NAME = "Beam"

Detailed Description

This class defines a beam with a generic section. It is represented as a
full rectangular beam with the following parameters:

* HY1 = sqrt(12 * IZ1 / A1)
* HZ1 = sqrt(12 * IY1 / A1)
* HY2 = sqrt(12 * IZ2 / A2)
* HZ2 = sqrt(12 * IY2 / A2)

See class :class:`StructuralElementPart` for the description of the other
parameters.

Definition at line 596 of file parts.py.


Constructor & Destructor Documentation

def GEOM_PY.structelem.parts.GeneralBeam.__init__ (   self,
  studyId,
  groupName,
  groupGeomObj,
  parameters,
  name = Beam.DEFAULT_NAME,
  color = None 
)

Reimplemented from GEOM_PY.structelem.parts.RectangularBeam.

Definition at line 611 of file parts.py.

00611 
00612                  name = Beam.DEFAULT_NAME, color = None):
00613         self.IY1 = getParameterInDict(["IY1", "IY"], parameters)
00614         self.IZ1 = getParameterInDict(["IZ1", "IZ"], parameters)
00615         self.IY2 = getParameterInDict(["IY2", "IY"], parameters)
00616         self.IZ2 = getParameterInDict(["IZ2", "IZ"], parameters)
00617         self.A1 = getParameterInDict(["A1", "A"], parameters)
00618         self.A2 = getParameterInDict(["A2", "A"], parameters)
00619         parameters["HY1"] = math.sqrt(12 * self.IZ1 / self.A1)
00620         parameters["HZ1"] = math.sqrt(12 * self.IY1 / self.A1)
00621         parameters["HY2"] = math.sqrt(12 * self.IZ2 / self.A2)
00622         parameters["HZ2"] = math.sqrt(12 * self.IY2 / self.A2)
00623 
00624         if color is None:
00625             if parameters.has_key("IY1"): # variable section
00626                 color = LIGHT_GREEN
00627             else:                         # constant section
00628                 color = GREEN
00629 
00630         RectangularBeam.__init__(self, studyId, groupName, groupGeomObj, parameters,
00631                                  name, color)
00632 


Member Function Documentation

Definition at line 174 of file parts.py.

00174 
00175     def __repr__(self):
00176         reprdict = self.__dict__.copy()
00177         del reprdict["_parameters"]
00178         del reprdict["groupName"]
00179         del reprdict["_groupGeomObj"]
00180         del reprdict["_paramUserName"]
00181         del reprdict["name"]
00182         del reprdict["geom"]
00183         del reprdict["baseShapesSet"]
00184         return '%s("%s", %s)' % (self.__class__.__name__, self.groupName,
00185                                  reprdict)

def GEOM_PY.structelem.parts.StructuralElementPart.addOrientation (   self,
  orientParams 
) [inherited]
Add orientation information to the structural element part. See class
:class:`~salome.geom.structelem.orientation.Orientation1D` for the description
of the parameters.

Definition at line 186 of file parts.py.

00186 
00187     def addOrientation(self, orientParams):
00188         """
00189         Add orientation information to the structural element part. See class
00190         :class:`~salome.geom.structelem.orientation.Orientation1D` for the description
00191         of the parameters.
00192         """
00193         self._orientation.addParams(orientParams)

Build the geometric shapes and the markers corresponding to the
structural element part in the study `studyId`.

Definition at line 203 of file parts.py.

00203 
00204     def build(self):
00205         """
00206         Build the geometric shapes and the markers corresponding to the
00207         structural element part in the study `studyId`.
00208         """
00209         shape = self._buildPart()
00210         markers = self._buildMarkers()
00211         shape.SetColor(self.color)
00212         for marker in markers:
00213             marker.SetColor(self.color)
00214         return (shape, markers)

Here is the call graph for this function:


Member Data Documentation

Definition at line 616 of file parts.py.

Definition at line 617 of file parts.py.

Definition at line 139 of file parts.py.

Definition at line 147 of file parts.py.

string GEOM_PY.structelem.parts.Beam.DEFAULT_NAME = "Beam" [static, inherited]

Reimplemented from GEOM_PY.structelem.parts.StructuralElementPart.

Definition at line 263 of file parts.py.

Definition at line 492 of file parts.py.

Definition at line 494 of file parts.py.

Definition at line 493 of file parts.py.

Definition at line 495 of file parts.py.

Reimplemented from GEOM_PY.structelem.parts.Beam.

Definition at line 501 of file parts.py.

Definition at line 138 of file parts.py.

Definition at line 133 of file parts.py.

Definition at line 488 of file parts.py.

Definition at line 490 of file parts.py.

Definition at line 489 of file parts.py.

Definition at line 491 of file parts.py.

Definition at line 140 of file parts.py.

Definition at line 612 of file parts.py.

Definition at line 614 of file parts.py.

Definition at line 613 of file parts.py.

Definition at line 615 of file parts.py.

Definition at line 137 of file parts.py.


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