Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
StructuralElementManager Class Reference

This class manages the structural elements in the study. More...

Public Member Functions

def __init__
 
def createElement
 Create a structural element from the list of commands commandList. More...
 

Private Member Functions

def _extractMeshGroups
 This method extracts the names of the mesh groups (i.e. More...
 

Private Attributes

 _studyEditor
 

Detailed Description

This class manages the structural elements in the study.

It is used to create a new structural element from a list of commands. The parameter studyId defines the ID of the study in which the manager will create structural elements. If it is None or not specified, it will use the ID of the current study as defined by salome.kernel.studyedit.getActiveStudyId() function.

Constructor & Destructor Documentation

def __init__ (   self,
  studyId = None 
)

Member Function Documentation

def createElement (   self,
  commandList 
)

Create a structural element from the list of commands commandList.

Each command in this list represent a part of the structural element, that is a specific kind of shape (circular beam, grid, etc.) associated with one or several geometrical primitives. A command must be a tuple. The first element is the structural element part class name or alias name. The second element is a dictionary containing the parameters describing the part. Valid class names are all the classes defined in the module salome.geom.structelem.parts and inheriting parts.StructuralElementPart. There are also several aliases for backward compatibility. Here is the complete list:

The valid parameters in the dictionary depend on the type of the structural element part, and are detailed in the documentation of the corresponding class. The only parameter that is common to all the classes is "MeshGroups" (that can also be named "Group_Maille"). It defines the name of the geometrical object(s) in the study that will be used as primitives to build the structural element part. This parameter can be either a list of strings or a single string with comma separated names.

References StructuralElementManager._extractMeshGroups().

def _extractMeshGroups (   self,
  command 
)
private

This method extracts the names of the mesh groups (i.e.

the geometrical objects used to build the structural element part) in the command in parameter. It returns a tuple containing the mesh groups as a list of strings and the other parameters of the command as a new dictionary.

Field Documentation

_studyEditor
private