Skip to main content
Part of Data Defines a meta structure which contains all data that is used to create a finite element mesh.

Public Member Functions

Detailed Description

Defines a meta structure which contains all data that is used to create a finite element mesh. The following ideas lead to the concept:
  • abstract general format (does not change with each new SoS version)
  • only definition data without logic checks; If the mesh is “valid” will be tested outside of this meta structure
  • compact memory footprint: Try to use as little space as possible since the structure may be in memory during the whole application lifetime
When using serialization, one should only store meta structures which contain meshes, but no data objects. Reason: Since data objects are inetrnally stored by n-tuples of numbers, the time to load/save is very long. Use block formats to improve serialization speed.

Constructor & Destructor Documentation

MetaStructure()

copy constructor Parameters

Member Function Documentation

add() [1/7]

Adds the given part to the structure. It changes the index of the part according to the current number of contained parts. The index starts at 0. If the part already exists in the data base (i.e. it has the same string ident), then the method tries to add the part contents to the existing part. Parameters Exceptions

add() [2/7]

adds the given section Parameters

add() [3/7]

adds the given material law definition Parameters

add() [4/7]

adds the given element set Parameters

add() [5/7]

adds the given node set Parameters

add() [6/7]

adds all node/element data from the given meta structure to this one. Parameters

add() [7/7]

adds all contents of the given MetaStructure Parameters

addAndMerge()

Adds the mesh information from the given meta structure to this one such that both will be merged. Parameters Exceptions

addElementData()

adds the given element data Parameters

addPointData()

adds the given node data Parameters

addScalarData()

adds the given scalar data Parameters

data()

Returns m_data

emptyData()

Returns true if there are no data items in this object

emptyMesh()

Returns true if there is no structural data in this object

isCompatible()

Returns an empty list if both meshes are compatble. Compatibility means that mesh data of the one mesh can be applied directly to the other mesh. Parameters Returns A string list listing differences. This list is empty if:
  • both meshes are empty.
  • both meshes are identical
  • both meshes differ only in the point coordinates or set definitions Its size is otherwise not zero.

isSubsetOf()

Returns Returns true if this mesh is a subset of the other That means, that some nodes or elements might have been deleted. Still the method will return true. Only parts, nodes, elements and sections are tested on subset. The other mesh components are tested on equality! Parameters

mesh()

Returns m_mesh

meshRef()

Returns m_mesh

operator=()

overrides the assignment operator This object will contain the same data as other (copying data). The operator checks if other and this object are actually the same object - if so, it does nothing Parameters Returns a reference to *this

operator==()

returns true if both objects have the same contents primarily used to test the serialization Parameters Returns true if both are equal

setGridIdents()

sets the idents of a map abscissa This function must be called AFTER setTYpeVoxel or setTypePixel Parameters

setMeshTypePixel()

sets the mesh type to MESH_PIXEL Parameters

setMeshTypeRay()

sets the mesh type to MESH_RAY Parameters

setMeshTypeVoxel()

sets the mesh type to MESH_VOXEL Parameters