AGX Dynamics  2.37.2.0
agxModel::CircularBeam Class Reference

Circular cross section beam model with a given radius. More...

#include <BeamModel.h>

+ Inheritance diagram for agxModel::CircularBeam:

Public Member Functions

 CircularBeam (agx::Real radius, BeamModelProperties *properties=nullptr)
 Construct a circular cross section beam model with a given radius and optional beam model properties. More...
 
agx::Real getRadius () const
 
- Public Member Functions inherited from agxModel::BeamModel
virtual agx::Vec3 calculateMomentOfInertia () const =0
 Default moment of inertia of the beam model. More...
 
BeamStiffnessDamping calculateStiffnessDamping (agx::UInt numBeamSegments, agx::Real beamSegmentLength) const
 Calculates stiffness dependent on moment of inertia, cross section area, beam segment length and number of segments in the beam. More...
 
virtual agx::Real getCrossSectionArea () const =0
 The cross section area of the beam model affecting the stretch stiffness. More...
 
virtual agx::Vec2 getMaxHeightWidth () const =0
 The 2D extents along x (up/down) and y (right/left). More...
 
virtual agx::Vec3 getMomentOfInertia () const final
 Moment of inertia of the beam model, where: About x (up): Lateral About y (right): Vertical About z (forward): Torsional This is the moment of inertia used to calculate the stiffness in the constraints of the beam, and is scaled with the current moment of inertia scale (default scale: (1, 1, 1)). More...
 
agx::Vec3 getMomentOfInertiaScale () const
 
agx::Real getPolarMomentOfInertiaScale () const
 
BeamModelProperties * getProperties () const
 
virtual agxCollide::GeometryRef getSegmentGeometry (agx::Real segmentLength) const =0
 Generates a geometry to be cloned to each beam segment. More...
 
bool loadLibraryProperties (const agx::String &name)
 Load named BeamModelProperties from the Material Library for the current Beam. More...
 
void setMomentOfInertiaScale (agx::Vec3 momentOfInertiaScale)
 Scale of the calculated moment of inertia of this model, default scale (1, 1, 1). More...
 
void setPolarMomentOfInertiaScale (agx::Real polarMomentOfInertiaScale)
 Assign new polar moment of inertia scale. More...
 
void setProperties (BeamModelProperties *properties)
 Assign properties instance, a new default will be created if properties is nullptr. More...
 
virtual agx::String validate () const =0
 Validate inputs, verify all given sizes are > 0, e.g., hollow cylinder thickness < radius, or I-beam web thickness < width. More...
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings. More...
 
virtual const char * getClassName () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
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. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from agxModel::BeamModel
static agx::StringVector getAvailableLibraryProperties ()
 Returns a vector with all the named BeamModelProperties that were found in the Material Library. More...
 
- 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. More...
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor. More...
 
 Serializable (const Serializable &other)
 Copy constructor. More...
 
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. More...
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Circular cross section beam model with a given radius.

, - ~ ~ ~ - , , ' ' , , , , , , A , x ,<--------—> , | z , , | / , , |/____ y , , , , ' ' - , _ _ _ , '

A: Radius - radius of the beam.

Definition at line 445 of file BeamModel.h.

Constructor & Destructor Documentation

◆ CircularBeam()

agxModel::CircularBeam::CircularBeam ( agx::Real  radius,
BeamModelProperties *  properties = nullptr 
)

Construct a circular cross section beam model with a given radius and optional beam model properties.

If properties is nullptr a new, default, beam model properties will be created.

Parameters
radius- radius of the circular beam
properties- optional beam model properties, new default instance will be created if nullptr

Member Function Documentation

◆ getRadius()

agx::Real agxModel::CircularBeam::getRadius ( ) const
Returns
the radius of this circular beam model

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