cee::ug::DataResultSymmetricTensor Class Reference

Symmetric tensor results for all parts in the geometry. More...

Public Member Functions

 DataResultSymmetricTensor (int resultId, ResultMapping mappingType)
 Constructs an empty object. More...
 
int resultId () const
 Returns the result id. More...
 
size_t partCount () const
 Returns number of symmetric tensor parts in this symmetric tensor result. More...
 
const DataPartSymmetricTensorpart (size_t partIndex) const
 Returns the part at the given index. More...
 
DataPartSymmetricTensorpart (size_t partIndex)
 Returns the part at the given index. More...
 
ResultMapping resultMapping () const
 Returns the result mapping for this result. More...
 
void addPart (DataPartSymmetricTensor *part)
 Adds a symmetric tensor part to the result symmetric tensor. More...
 
void removeAllParts ()
 Removes all symmetric tensor parts. More...
 
bool deriveScalar (DeriveOperation deriveOperation, DataResultScalar *derivedScalar) const
 Gets a derived scalar. More...
 
bool deriveVector (DeriveOperation deriveOperation, DataResultVector *derivedVector) const
 Gets a derived vector. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 
Inheritance diagram for cee::ug::DataResultSymmetricTensor:
cee::RefCountedObject

Detailed Description

Symmetric tensor results for all parts in the geometry.

The DataResultSymmetricTensor holds a collection of DataPartSymmetricTensor objects, each containing an array of symmetric tensor values for the belonging part. The DataResultSymmetricTensor has a result mapping type(per node, per element, per element node or per element surface) which applies to all its tensor parts.

Each DataResultSymmetricTensor has a unique id.

The number of parts in the DataResultSymmetricTensor and in the geometry must be the same. And the number of result values in each tensor part must match the number of nodes/elements in the part (depending on mapping type). For instance, a node mapped result will need the same number of result values in the tensor part as there are nodes in the part.

The id and result mapping is set upon construction of the object and cannot be changed afterwards. The selected id and result mapping can be found by calling resultId() and resultMapping().

DataPartSymmetricTensor objects can be added using addPart(). Get the number of parts in the tensor result with partCount() and accessed individual parts by calling part() with the requested index. All parts can be removed using removeAllParts().

See also
DataPartSymmetricTensor

Constructor & Destructor Documentation

cee::ug::DataResultSymmetricTensor::DataResultSymmetricTensor ( int  resultId,
ResultMapping  mappingType 
)

Constructs an empty object.

A unique id and the mapping type are decided upon construction.

See also
ResultMapping

Member Function Documentation

void cee::ug::DataResultSymmetricTensor::addPart ( DataPartSymmetricTensor part)

Adds a symmetric tensor part to the result symmetric tensor.

Number of parts must match the number of parts in the corresponding geometry.

Warning
The added object is reference counted and should never be created on the stack or deleted!
bool cee::ug::DataResultSymmetricTensor::deriveScalar ( DeriveOperation  deriveOperation,
DataResultScalar derivedScalar 
) const

Gets a derived scalar.

bool cee::ug::DataResultSymmetricTensor::deriveVector ( DeriveOperation  deriveOperation,
DataResultVector derivedVector 
) const

Gets a derived vector.

const DataPartSymmetricTensor * cee::ug::DataResultSymmetricTensor::part ( size_t  partIndex) const

Returns the part at the given index.

DataPartSymmetricTensor * cee::ug::DataResultSymmetricTensor::part ( size_t  partIndex)

Returns the part at the given index.

size_t cee::ug::DataResultSymmetricTensor::partCount ( ) const

Returns number of symmetric tensor parts in this symmetric tensor result.

void cee::ug::DataResultSymmetricTensor::removeAllParts ( )

Removes all symmetric tensor parts.

int cee::ug::DataResultSymmetricTensor::resultId ( ) const

Returns the result id.

ResultMapping cee::ug::DataResultSymmetricTensor::resultMapping ( ) const

Returns the result mapping for this result.