AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxModel::Deformable1DBulkProperties Class Reference

Class containing and updating material properties of a Deformable1D object. More...

#include <Deformable1DBulkProperties.h>

+ Inheritance diagram for agxModel::Deformable1DBulkProperties:

Public Types

enum  Direction {
  SHEAR_X = 0 , SHEAR_Y , TENSILE , LATERAL ,
  VERTICAL , TORSIONAL , ALL_DIRECTIONS
}
 Directions in each constraint. More...
 

Public Member Functions

 Deformable1DBulkProperties ()
 Default constructor.
 
 AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxModel::Deformable1DBulkProperties)
 
void clearDirtyFlag ()
 Clear the dirty flag.
 
agx::Real getBreakPoint (agxModel::Deformable1DBulkProperties::Direction direction) const
 
agx::Real getDamping (agxModel::Deformable1DBulkProperties::Direction direction) const
 
agx::Real getPoissonsRatio (agxModel::Deformable1DBulkProperties::Direction direction) const
 
agx::Real getYieldPoint (agxModel::Deformable1DBulkProperties::Direction direction) const
 
agx::Real getYoungsModulus (agxModel::Deformable1DBulkProperties::Direction direction) const
 
agx::Bool isDirty () const
 Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints.
 
virtual void restoreLightData (agxStream::StorageStream &str) override
 Restore structural independent data from stream.
 
void setBreakPoint (agx::Real breakPoint, agxModel::Deformable1DBulkProperties::Direction direction)
 Assign break point to a given direction.
 
void setDamping (agx::Real damping, agxModel::Deformable1DBulkProperties::Direction direction)
 Assign SPOOK damping along given direction to the constraints linking the segments of the Deformable1D.
 
void setPoissonsRatio (agx::Real poissonsRatio, agxModel::Deformable1DBulkProperties::Direction direction)
 Assign Poisson's Ratio to a given direction.
 
void setYieldPoint (agx::Real yieldPoint, agxModel::Deformable1DBulkProperties::Direction direction)
 Assign yield point to a given direction.
 
void setYoungsModulus (agx::Real youngsModulus, agxModel::Deformable1DBulkProperties::Direction direction)
 Assign Young's Modulus to a given direction.
 
virtual void storeLightData (agxStream::StorageStream &str) const override
 Store structural independent data to stream.
 
virtual void updateBulkProperties (agxModel::Deformable1DNode *node, const agxModel::Deformable1D *d1d) const
 Updates the bulk properties of a given node.
 
virtual void updateBulkProperties (const agxModel::Deformable1D *d1d) const
 Updates the bulk properties of the whole Deformable1D object, ignoring dirty flag.
 
virtual void updateBulkProperties (const agxModel::Deformable1DNode *prev, agx::Constraint *constraint, const agxModel::Deformable1DNode *curr, const agxModel::Deformable1D *d1d) const
 Updates the bulk properties given node before -> constraint -> node after where "node after" is curr (current node), the target node for the update, i.e., the one assumed to be carrying the constraint.
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings.
 
virtual const char * getClassName () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object.
 
virtual StorageAgent * getStorageAgent () const =0
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object.
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object.
 

Static Public Member Functions

static agxStream::Serializable * create (agxStream::InputArchive &)
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Public Member Functions inherited from agxStream::Serializable
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
 

Protected Member Functions

virtual ~Deformable1DBulkProperties ()
 Reference counted object, protected destructor.
 
void setDefaultValues ()
 Assigns default values to all parameters.
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor.
 
 Serializable (const Serializable &other)
 Copy constructor.
 
void generateUuid ()
 

Protected Attributes

agx::Real m_breakPoint [ALL_DIRECTIONS]
 
agx::Bool m_dirty
 
agx::Real m_poissonsRatio [ALL_DIRECTIONS]
 
agx::Real m_spookDamping [ALL_DIRECTIONS]
 
agx::Real m_yieldPoint [ALL_DIRECTIONS]
 
agx::Real m_youngsModulus [ALL_DIRECTIONS]
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 

Detailed Description

Class containing and updating material properties of a Deformable1D object.

Definition at line 39 of file Deformable1DBulkProperties.h.

Member Enumeration Documentation

◆ Direction

Directions in each constraint.

The constraint axis is assumed to be along the z-axis.

Enumerator
SHEAR_X 

Along x axis.

SHEAR_Y 

Along y axis.

TENSILE 

Along z axis.

LATERAL 

About x axis.

VERTICAL 

About y axis.

TORSIONAL 

About z axis.

ALL_DIRECTIONS 

Definition at line 46 of file Deformable1DBulkProperties.h.

Constructor & Destructor Documentation

◆ Deformable1DBulkProperties()

agxModel::Deformable1DBulkProperties::Deformable1DBulkProperties ( )

Default constructor.

◆ ~Deformable1DBulkProperties()

virtual agxModel::Deformable1DBulkProperties::~Deformable1DBulkProperties ( )
protectedvirtual

Reference counted object, protected destructor.

Member Function Documentation

◆ AGXSTREAM_DECLARE_SERIALIZABLE_BASE()

agxModel::Deformable1DBulkProperties::AGXSTREAM_DECLARE_SERIALIZABLE_BASE ( agxModel::Deformable1DBulkProperties  )

◆ clearDirtyFlag()

void agxModel::Deformable1DBulkProperties::clearDirtyFlag ( )

Clear the dirty flag.

This bulk material will not be used to update any Deformable1D constraint parameters until made dirty again.

◆ create()

static agxStream::Serializable * agxModel::Deformable1DBulkProperties::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 177 of file Deformable1DBulkProperties.h.

◆ getBreakPoint()

agx::Real agxModel::Deformable1DBulkProperties::getBreakPoint ( agxModel::Deformable1DBulkProperties::Direction  direction) const
Parameters
direction- direction
Returns
current value of the break point for a given direction

◆ getDamping()

agx::Real agxModel::Deformable1DBulkProperties::getDamping ( agxModel::Deformable1DBulkProperties::Direction  direction) const
Returns
The SPOOK damping in the given direction.

◆ getPoissonsRatio()

agx::Real agxModel::Deformable1DBulkProperties::getPoissonsRatio ( agxModel::Deformable1DBulkProperties::Direction  direction) const
Parameters
direction- direction
Returns
current value of Poisson's Ratio for a given direction

◆ getYieldPoint()

agx::Real agxModel::Deformable1DBulkProperties::getYieldPoint ( agxModel::Deformable1DBulkProperties::Direction  direction) const
Parameters
direction- direction
Returns
current value of the yield point for a given direction

◆ getYoungsModulus()

agx::Real agxModel::Deformable1DBulkProperties::getYoungsModulus ( agxModel::Deformable1DBulkProperties::Direction  direction) const
Parameters
direction- direction
Returns
current value of Young's Modulus for a given direction

◆ isDirty()

agx::Bool agxModel::Deformable1DBulkProperties::isDirty ( ) const

Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints.

Returns
true if dirty and the bulk properties have to be updated

◆ restoreLightData()

virtual void agxModel::Deformable1DBulkProperties::restoreLightData ( agxStream::StorageStream &  str)
overridevirtual

Restore structural independent data from stream.

◆ setBreakPoint()

void agxModel::Deformable1DBulkProperties::setBreakPoint ( agx::Real  breakPoint,
agxModel::Deformable1DBulkProperties::Direction  direction 
)

Assign break point to a given direction.

If direction is ALL_DIRECTIONS breakPoint will be assigned to all directions.

Parameters
breakPoint- new value of the break point
direction- direction

◆ setDamping()

void agxModel::Deformable1DBulkProperties::setDamping ( agx::Real  damping,
agxModel::Deformable1DBulkProperties::Direction  direction 
)

Assign SPOOK damping along given direction to the constraints linking the segments of the Deformable1D.

If direction is ALL_DIRECTIONS then spookDamping will be assigned to all directions.

Parameters
damping- The new value to use for SPOOK damping.
direction- direction

◆ setDefaultValues()

void agxModel::Deformable1DBulkProperties::setDefaultValues ( )
protected

Assigns default values to all parameters.

◆ setPoissonsRatio()

void agxModel::Deformable1DBulkProperties::setPoissonsRatio ( agx::Real  poissonsRatio,
agxModel::Deformable1DBulkProperties::Direction  direction 
)

Assign Poisson's Ratio to a given direction.

If direction is ALL_DIRECTIONS poissonsRatio will be assigned to all directions.

Parameters
poissonsRatio- new value of Poisson's Ratio
direction- direction

◆ setYieldPoint()

void agxModel::Deformable1DBulkProperties::setYieldPoint ( agx::Real  yieldPoint,
agxModel::Deformable1DBulkProperties::Direction  direction 
)

Assign yield point to a given direction.

If direction is ALL_DIRECTIONS yieldPoint will be assigned to all directions.

Parameters
yieldPoint- new value of the yield point
direction- direction

◆ setYoungsModulus()

void agxModel::Deformable1DBulkProperties::setYoungsModulus ( agx::Real  youngsModulus,
agxModel::Deformable1DBulkProperties::Direction  direction 
)

Assign Young's Modulus to a given direction.

If direction is ALL_DIRECTIONS youngsModulus will be assigned to all directions.

Parameters
youngsModulus- new value of Young's Modulus
direction- direction

◆ storeLightData()

virtual void agxModel::Deformable1DBulkProperties::storeLightData ( agxStream::StorageStream &  str) const
overridevirtual

Store structural independent data to stream.

◆ updateBulkProperties() [1/3]

virtual void agxModel::Deformable1DBulkProperties::updateBulkProperties ( agxModel::Deformable1DNode *  node,
const agxModel::Deformable1D *  d1d 
) const
virtual

Updates the bulk properties of a given node.

The constraint between node and the previous node will be updated.

Parameters
node- node to update (constraint between previous node and node)
d1dthe Deformable1D object

◆ updateBulkProperties() [2/3]

virtual void agxModel::Deformable1DBulkProperties::updateBulkProperties ( const agxModel::Deformable1D *  d1d) const
virtual

Updates the bulk properties of the whole Deformable1D object, ignoring dirty flag.

After calling this method this object is no longer dirty.

Parameters
d1d- the Deformable1D object

◆ updateBulkProperties() [3/3]

virtual void agxModel::Deformable1DBulkProperties::updateBulkProperties ( const agxModel::Deformable1DNode *  prev,
agx::Constraint *  constraint,
const agxModel::Deformable1DNode *  curr,
const agxModel::Deformable1D *  d1d 
) const
virtual

Updates the bulk properties given node before -> constraint -> node after where "node after" is curr (current node), the target node for the update, i.e., the one assumed to be carrying the constraint.

Parameters
prev- node before curr
constraint- constraint to assign properties to
curr- current node
d1d- the Deformable1D object

Member Data Documentation

◆ m_breakPoint

agx::Real agxModel::Deformable1DBulkProperties::m_breakPoint[ALL_DIRECTIONS]
protected

Definition at line 204 of file Deformable1DBulkProperties.h.

◆ m_dirty

agx::Bool agxModel::Deformable1DBulkProperties::m_dirty
mutableprotected

Definition at line 206 of file Deformable1DBulkProperties.h.

◆ m_poissonsRatio

agx::Real agxModel::Deformable1DBulkProperties::m_poissonsRatio[ALL_DIRECTIONS]
protected

Definition at line 202 of file Deformable1DBulkProperties.h.

◆ m_spookDamping

agx::Real agxModel::Deformable1DBulkProperties::m_spookDamping[ALL_DIRECTIONS]
protected

Definition at line 205 of file Deformable1DBulkProperties.h.

◆ m_yieldPoint

agx::Real agxModel::Deformable1DBulkProperties::m_yieldPoint[ALL_DIRECTIONS]
protected

Definition at line 203 of file Deformable1DBulkProperties.h.

◆ m_youngsModulus

agx::Real agxModel::Deformable1DBulkProperties::m_youngsModulus[ALL_DIRECTIONS]
protected

Definition at line 201 of file Deformable1DBulkProperties.h.


The documentation for this class was generated from the following file: