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

Bulk beam model properties present in all agxModel::BeamModel instances, which in turn propagates the bulk material properties to the constraints in an agxModel::Beam. More...

#include <BeamModelProperties.h>

+ Inheritance diagram for agxModel::BeamModelProperties:

Public Member Functions

 BeamModelProperties ()
 Default constructor setting Young's modulus to 200.0E9, Poisson's ratio to 0.3333 and damping time to 0.03333.
 
 BeamModelProperties (agx::Real youngsModulus, agx::Real poissonsRatio)
 Construct given Young's modulus and Poisson's ratio.
 
agx::Real getDampingTime () const
 
agx::Real getPoissonsRatio () const
 
agx::Real getYoungsModulus () const
 
void setDampingTime (agx::Real dampingTime)
 Assigns new damping time parameter.
 
void setPoissonsRatio (agx::Real poissonsRatio)
 Assigns new Poisson's ratio parameter.
 
void setYoungsModulus (agx::Real youngsModulus)
 Assigns new Young's modulus parameter.
 
- 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.
 

Additional Inherited Members

- 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 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 ()
 
- 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.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Bulk beam model properties present in all agxModel::BeamModel instances, which in turn propagates the bulk material properties to the constraints in an agxModel::Beam.

Example usage:

agxModel::BeamModelPropertiesRef steelProperties = new agxModel::BeamModelProperties( 210.0E9, 0.31 );

Creating a rectangular and an I-beam with steel bulk properties. agxModel::BeamModelRef rectangularModel = new agxModel::RectangularBeam( 0.15, 0.10, steelProperties ); agxModel::BeamModelRef iBeamModel = new agxModel::IBeam( 0.15, 0.10, 0.012, 0.012, steelProperties );

const auto beamResolution = 10u; agxModel::BeamRef rectangularBeam7m = new agxModel::Beam( rectangularModel, beamResolution, 7.0 ); agxModel::BeamRef rectangularBeam4m = new agxModel::Beam( rectangularModel, beamResolution, 4.0 ); agxModel::BeamRef iBeam3m = new agxModel::Beam( iBeamModel, beamResolution, 3.0 ); agxModel::BeamRef iBeam4_5m = new agxModel::Beam( iBeamModel, beamResolution, 4.5 );

Default values: Young's modulus: 200.0E9 Poisson's ratio: 0.3333 Damping time: 2.0 / 60.0 = 0.03333

Damping time: For real-time simulations, i.e., time step size >> 0 ~ 0.01, there is no correlation between the material properties of a beam and the damping time parameter. If the time step size is decreased close to the true damping time of the simulated material, there's possible to map the damping time parameter to the viscosity. For real-time simulations it's important that the damping time parameter is larger than the time step, typically two times the time step size, for unconditionally stable simulations.

Definition at line 59 of file BeamModelProperties.h.

Constructor & Destructor Documentation

◆ BeamModelProperties() [1/2]

agxModel::BeamModelProperties::BeamModelProperties ( )

Default constructor setting Young's modulus to 200.0E9, Poisson's ratio to 0.3333 and damping time to 0.03333.

◆ BeamModelProperties() [2/2]

agxModel::BeamModelProperties::BeamModelProperties ( agx::Real  youngsModulus,
agx::Real  poissonsRatio 
)

Construct given Young's modulus and Poisson's ratio.

The damping time parameter will be set to 0.03333.

Parameters
youngsModulus- Young's modulus, will be clamped to the range in which it's valid: (0.0, infinity)
poissonsRatio- Poisson's ratio, will be clamped to the range in which it's valid: (-0.5, 1.0]

Member Function Documentation

◆ getDampingTime()

agx::Real agxModel::BeamModelProperties::getDampingTime ( ) const
Returns
the current value of damping time

◆ getPoissonsRatio()

agx::Real agxModel::BeamModelProperties::getPoissonsRatio ( ) const
Returns
the current value of Poisson's ratio

◆ getYoungsModulus()

agx::Real agxModel::BeamModelProperties::getYoungsModulus ( ) const
Returns
the current value of Young's modulus

◆ setDampingTime()

void agxModel::BeamModelProperties::setDampingTime ( agx::Real  dampingTime)

Assigns new damping time parameter.

This value will be clamped to [0.0, infinity). Default: 0.03333

◆ setPoissonsRatio()

void agxModel::BeamModelProperties::setPoissonsRatio ( agx::Real  poissonsRatio)

Assigns new Poisson's ratio parameter.

The value will be clamped to (-0.5, 1.0]. Default: 0.3333

Parameters
poissonsRatio- Poisson's ratio, will be clamped to the range in which it's valid: (-0.5, 1.0]

◆ setYoungsModulus()

void agxModel::BeamModelProperties::setYoungsModulus ( agx::Real  youngsModulus)

Assigns new Young's modulus parameter.

The value will be clamped to (0.0, infinity). Default: 200.0E9

Parameters
youngsModulus- Young's modulus, will be clamped to the range in which it's valid: (0.0, infinity)

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