OdbMeshElement object

OdbMeshElement objects are created with the part.addElements or rootAssembly.addElements methods.

The following topics are discussed:

Access

odb.parts()[name].elements(i)
odb.parts()[name].elementSets()[name].elements(i)
odb.parts()[name].nodeSets()[name].elements(i)
odb.parts()[name].surfaces()[name].elements(i)
odb.rootAssembly().elements(i)
odb.rootAssembly().elementSets()[name].elements(i)
odb.rootAssembly().instances()[name].elements(i)
odb.rootAssembly().instances()[name].elementSets()[name].elements(i)
odb.rootAssembly().instances()[name].nodeSets()[name].elements(i)
odb.rootAssembly().instances()[name].surfaces()[name].elements(i)
odb.rootAssembly().nodeSets()[name].elements(i)
odb.rootAssembly().surfaces()[name].elements(i)
odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\
.elements(i)
odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\
.elementSets()[name].elements(i)
odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\
.nodeSets()[name].elements(i)
odb.steps()[name].frames(i).fieldOutputs()[name].values(i).instance()\
.surfaces()[name].elements(i)

getNormal(...)

This method returns the normal direction for the element face.

Required arguments

faceIndex
The value of faceIndex is 0 for a shell element and can range from 0 to 5 for a solid element.

Optional arguments

stepName
Name of the step.
frameValue
A Double specifying the value at which the frame is required. frameValue can be the total fime or frequency.
match
A SymbolicConstant specifying which frame to return if there is no frame at the exact frame value. Possible values are CLOSEST, BEFORE, AFTER, and EXACT. The default value is CLOSEST.

When match=CLOSEST, Abaqus returns the closest frame. If the frame value requested is exactly halfway between two frames, Abaqus returns the frame after the value.

When match=EXACT, Abaqus raises an exception if the exact frame value does not exist.

Return value

A tuple of 3 floats representing the unit normal vector. If the element face is collapsed such that a normal cannot be computed, a zero-length vector is returned.

Exceptions

If the exact frame is not found:
OdbError: Frame not found.
If the step name is not found:
OdbError: Step is not present in the ODB.
If frameValue is not provided and stepName is empty:
frameValueOdbError: stepName should be specified with frameValue.

Members

The OdbMeshElement object can have the following members:

Prototype

int label() const;
               const int* connectivity(int& numNodes) const ;
               odb_SequenceInt connectivity() const;
               odb_SectionCategory sectionCategory() const;
               odb_String type() const;
               odb_String instanceName() const;
               odb_SequenceString instanceNames() const;
label

An Int specifying the element label.

type

An odb_String specifying the element type.

sectionCategory

A SectionCategory object specifying the element section properties.

connectivity

A pointer to an array of Ints specifying the element connectivity. For connector elements connected to ground, the other node is repeated in the connectivity data. The position of the ground node cannot be ascertained. This is a limitation. It is important to note the difference with MeshElement object of MDB where the connectivity is node indices instead of node labels.

instanceNames

A pointer to an array of Strings specifying the instance names for nodes in the element connectivity.

instanceName

An odb_String specifying the instance name.