Version: 9.15.0
Home
RectangularBeam Class Reference

This class defines a beam with a rectangular section. More...

Public Member Functions

def __init__ (self, groupName, groupGeomObj, parameters, name=Beam.DEFAULT_NAME, color=None)
 
def __repr__ (self)
 
def addOrientation (self, orientParams)
 Add orientation information to the structural element part. More...
 
def build (self)
 Build the geometric shapes and the markers corresponding to the structural element part in the study. More...
 

Data Fields

 HY1
 
 HZ1
 
 HY2
 
 HZ2
 
 EPY1
 
 EPZ1
 
 EPY2
 
 EPZ2
 
 filling
 
 groupName
 
 name
 
 geom
 
 baseShapesSet
 
 isMainShape
 
 color
 

Static Public Attributes

string DEFAULT_NAME = "Beam"
 

Private Member Functions

def _makeRectangle (self, HY, HZ, lcs)
 Create a rectangle in the specified plane. More...
 
def _makeSectionRectangles (self, point, vecX, HY, HZ, EPY, EPZ)
 Create one side of the rectangular sections used to build the pipe. More...
 
def _makeSectionWires (self, fPoint, fNormal, lPoint, lNormal)
 Create the rectangular sections used to build the pipe. More...
 
def _isReversed (self, path)
 This method checks if a 1D object is "reversed", i.e. More...
 
def _getVertexAndTangentOnOrientedWire (self, path, param)
 Get a vertex and the corresponding tangent on a wire by parameter. More...
 
def _makeSolidPipeFromWires (self, wire1, wire2, point1, point2, path)
 Create a solid by the extrusion of section wire1 to section wire2 along path. More...
 
def _buildPart (self)
 Build the structural element part. More...
 
def _buildMarkers (self)
 Build the markers defining the orientation of the structural element part. More...
 
def _getParameter (self, nameList, default=None)
 This method finds the value of a parameter in the parameters dictionary. More...
 
def _getParamUserName (self, paramName)
 This method finds the user name for a parameter. More...
 
def _checkSize (self, value, mindim, expression)
 This method checks that some parameters or some expressions involving those parameters are greater than a minimum value. More...
 
def _getSubShapes (self, minDim=MIN_LENGTH_FOR_EXTRUSION)
 Find and return the base sub-shapes in the structural element part. More...
 

Private Attributes

 _orientation
 
 _parameters
 
 _groupGeomObj
 
 _paramUserName
 

Detailed Description

This class defines a beam with a rectangular section.

It can be full or hollow, and its dimensions can vary from one end of the beam to the other. The valid parameters for rectangular beams are:

  • "HY1", "HY", "H1" or "H": width at the first end of the beam.
  • "HZ1", "HZ", "H1" or "H": height at the first end of the beam.
  • "HY2", "HY", "H2" or "H": width at the other end of the beam.
  • "HZ2", "HZ", "H2" or "H": height at the other end of the beam.
  • "EPY1", "EPY", "EP1" or "EP" (optional): thickness in the width direction at the first end of the beam. If not specified or equal to 0, the beam is considered full.
  • "EPZ1", "EPZ", "EP1" or "EP" (optional): thickness in the height direction at the first end of the beam. If not specified or equal to 0, the beam is considered full.
  • "EPY2", "EPY", "EP2" or "EP" (optional): thickness in the width direction at the other end of the beam. If not specified or equal to 0, the beam is considered full.
  • "EPZ2", "EPZ", "EP2" or "EP" (optional): thickness in the height direction at the other end of the beam. If not specified or equal to 0, the beam is considered full.

    See class StructuralElementPart for the description of the other parameters.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  groupName,
  groupGeomObj,
  parameters,
  name = Beam.DEFAULT_NAME,
  color = None 
)

Reimplemented from Beam.

Reimplemented in GeneralBeam.

Member Function Documentation

◆ _makeRectangle()

def _makeRectangle (   self,
  HY,
  HZ,
  lcs 
)
private

Create a rectangle in the specified plane.

References Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ _makeSectionRectangles()

def _makeSectionRectangles (   self,
  point,
  vecX,
  HY,
  HZ,
  EPY,
  EPZ 
)
private

◆ _makeSectionWires()

def _makeSectionWires (   self,
  fPoint,
  fNormal,
  lPoint,
  lNormal 
)
private

◆ _isReversed()

def _isReversed (   self,
  path 
)
privateinherited

This method checks if a 1D object is "reversed", i.e.

if its orientation is different than the orientation of the underlying OCC object.

References Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ _getVertexAndTangentOnOrientedWire()

def _getVertexAndTangentOnOrientedWire (   self,
  path,
  param 
)
privateinherited

Get a vertex and the corresponding tangent on a wire by parameter.

This method takes into account the "real" orientation of the wire (i.e. the orientation of the underlying OCC object).

References Beam._isReversed(), Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ _makeSolidPipeFromWires()

def _makeSolidPipeFromWires (   self,
  wire1,
  wire2,
  point1,
  point2,
  path 
)
privateinherited

Create a solid by the extrusion of section wire1 to section wire2 along path.

References Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ _buildPart()

◆ _buildMarkers()

def _buildMarkers (   self)
privateinherited

◆ _getParameter()

def _getParameter (   self,
  nameList,
  default = None 
)
privateinherited

This method finds the value of a parameter in the parameters dictionary.

The argument is a list because some parameters can have several different names.

References StructuralElementPart._parameters, and StructuralElementPart._paramUserName.

◆ _getParamUserName()

def _getParamUserName (   self,
  paramName 
)
privateinherited

This method finds the user name for a parameter.

References StructuralElementPart._paramUserName.

◆ __repr__()

def __repr__ (   self)
inherited

◆ addOrientation()

def addOrientation (   self,
  orientParams 
)
inherited

Add orientation information to the structural element part.

See class salome.geom.structelem.orientation.Orientation1D for the description of the parameters.

References StructuralElementPart._orientation, Beam._orientation, and StructuralElementPart2D._orientation.

◆ _checkSize()

def _checkSize (   self,
  value,
  mindim,
  expression 
)
privateinherited

This method checks that some parameters or some expressions involving those parameters are greater than a minimum value.

References InvalidParameterError.groupName, and StructuralElementPart.groupName.

◆ build()

def build (   self)
inherited

◆ _getSubShapes()

Field Documentation

◆ HY1

HY1

◆ HZ1

HZ1

◆ HY2

HY2

◆ HZ2

HZ2

◆ EPY1

EPY1

◆ EPZ1

EPZ1

◆ EPY2

EPY2

◆ EPZ2

EPZ2

◆ filling

filling

◆ DEFAULT_NAME

string DEFAULT_NAME = "Beam"
staticinherited

◆ _orientation

_orientation
privateinherited

◆ _parameters

_parameters
privateinherited

◆ groupName

groupName
inherited

◆ _groupGeomObj

_groupGeomObj
privateinherited

◆ _paramUserName

_paramUserName
privateinherited

◆ name

name
inherited

◆ geom

geom
inherited

◆ baseShapesSet

baseShapesSet
inherited

◆ isMainShape

isMainShape
inherited

◆ color

color
inherited