AGX Dynamics  2.35.0.1
agxModel::HydrodynamicsParameters Class Reference

#include <WindAndWaterParameters.h>

+ Inheritance diagram for agxModel::HydrodynamicsParameters:

Public Member Functions

const agxModel::AddedMassStorage * getAddedMassStorage () const
 
agx::Bool initializeAddedMassStorage (const agx::String &filename)
 Initializes the added mass storage given filename to store and/or restore the data for this given shape. More...
 
- Public Member Functions inherited from agxModel::WindAndWaterParameters
agx::Real getCoefficient (Coefficient type) const
 
const agxCollide::Shape * getShape () const
 
agxModel::WindAndWaterParameters::ShapeTessellation getShapeTessellationLevel () const
 
virtual void restore (agxStream::InputArchive &in)
 Internal method. More...
 
void setCoefficient (Coefficient type, agx::Real coefficient)
 Set pressure drag, viscous drag, lift or buoyancy coefficient. More...
 
void setShapeTessellationLevel (agxModel::WindAndWaterParameters::ShapeTessellation tessellation)
 Assign tessellation level for native shapes (sphere, capsule and cylinder) used during aero- and hydrodynamics integrations. More...
 
virtual void store (agxStream::OutputArchive &out) const
 Internal method. 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...
 

Protected Member Functions

 HydrodynamicsParameters (const agxCollide::Shape *shape, agxModel::AddedMassDbRef addedMassDb)
 
virtual ~HydrodynamicsParameters ()
 
- Protected Member Functions inherited from agxModel::WindAndWaterParameters
 WindAndWaterParameters (const agxCollide::Shape *shape, agxModel::AddedMassDbRef addedMassDb)
 
virtual ~WindAndWaterParameters ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Types inherited from agxModel::WindAndWaterParameters
enum  Coefficient { PRESSURE_DRAG , VISCOUS_DRAG , LIFT , BUOYANCY }
 
enum  ShapeTessellation {
  LOW , MEDIUM , HIGH , ULTRA_HIGH ,
  DEFAULT_TESSELLATION = MEDIUM
}
 Tessellation levels of native, non-mesh shapes, e.g, sphere, capsule and cylinder. More...
 
- Static Public Member Functions inherited from agxModel::WindAndWaterParameters
static void setAerodynamicCoefficient (WindAndWaterController *controller, agx::RigidBody *rb, Coefficient type, agx::Real coefficient)
 Set a aerodynamic coefficient for a rigid body. More...
 
static void setHydrodynamicCoefficient (WindAndWaterController *controller, agx::RigidBody *rb, Coefficient type, agx::Real coefficient)
 Set a hydrodynamic coefficient for a rigid body. More...
 
static agx::Real shapeTessellationLevelToResolution (agxModel::WindAndWaterParameters::ShapeTessellation tessellationLevel)
 Translate from ShapeTessellation to scale of default meshing technique. More...
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- 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 agxModel::WindAndWaterParameters
agxModel::AddedMassDbRef m_addedMassDb
 
agxModel::AddedMassStorage::Identifier m_addedMassIdentifier
 
agx::Real m_buoyancyScaling
 
agx::Real m_liftCoefficient
 
agx::Real m_pressureDragCoefficient
 
agxCollide::ShapeConstObserver m_shape
 
ShapeTessellation m_tessellation
 
agx::Real m_viscousDragCoefficient
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Definition at line 151 of file WindAndWaterParameters.h.

Constructor & Destructor Documentation

◆ HydrodynamicsParameters()

agxModel::HydrodynamicsParameters::HydrodynamicsParameters ( const agxCollide::Shape *  shape,
agxModel::AddedMassDbRef  addedMassDb 
)
protected

◆ ~HydrodynamicsParameters()

virtual agxModel::HydrodynamicsParameters::~HydrodynamicsParameters ( )
protectedvirtual

Member Function Documentation

◆ getAddedMassStorage()

const agxModel::AddedMassStorage* agxModel::HydrodynamicsParameters::getAddedMassStorage ( ) const
Returns
added mass storage if present, otherwise null

◆ initializeAddedMassStorage()

agx::Bool agxModel::HydrodynamicsParameters::initializeAddedMassStorage ( const agx::String &  filename)

Initializes the added mass storage given filename to store and/or restore the data for this given shape.

Note
First time, i.e., if the file doesn't exist, this could potentially take a long time.
Returns
true if successful - otherwise false

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