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

#include <WindAndWaterParameters.h>

+ Inheritance diagram for agxModel::WindAndWaterParameters:

Public Types

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...
 

Public Member Functions

agx::Real getCoefficient (Coefficient type) const
 
const agxCollide::Shape * getShape () const
 
agxModel::WindAndWaterParameters::ShapeTessellation getShapeTessellationLevel () const
 
virtual void restore (agxStream::InputArchive &in)
 Internal method.
 
void setCoefficient (Coefficient type, agx::Real coefficient)
 Set pressure drag, viscous drag, lift or buoyancy coefficient.
 
void setShapeTessellationLevel (agxModel::WindAndWaterParameters::ShapeTessellation tessellation)
 Assign tessellation level for native shapes (sphere, capsule and cylinder) used during aero- and hydrodynamics integrations.
 
virtual void store (agxStream::OutputArchive &out) const
 Internal method.
 
- 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.
 

Static Public Member Functions

static void setAerodynamicCoefficient (WindAndWaterController *controller, agx::RigidBody *rb, Coefficient type, agx::Real coefficient)
 Set a aerodynamic coefficient for a rigid body.
 
static void setHydrodynamicCoefficient (WindAndWaterController *controller, agx::RigidBody *rb, Coefficient type, agx::Real coefficient)
 Set a hydrodynamic coefficient for a rigid body.
 
static agx::Real shapeTessellationLevelToResolution (agxModel::WindAndWaterParameters::ShapeTessellation tessellationLevel)
 Translate from ShapeTessellation to scale of default meshing technique.
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Protected Member Functions

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

Protected Attributes

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
 

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

Definition at line 28 of file WindAndWaterParameters.h.

Member Enumeration Documentation

◆ Coefficient

Enumerator
PRESSURE_DRAG 
VISCOUS_DRAG 
LIFT 
BUOYANCY 

Definition at line 44 of file WindAndWaterParameters.h.

◆ ShapeTessellation

Tessellation levels of native, non-mesh shapes, e.g, sphere, capsule and cylinder.

Enumerator
LOW 
MEDIUM 
HIGH 
ULTRA_HIGH 
DEFAULT_TESSELLATION 

Definition at line 35 of file WindAndWaterParameters.h.

Constructor & Destructor Documentation

◆ WindAndWaterParameters()

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

◆ ~WindAndWaterParameters()

virtual agxModel::WindAndWaterParameters::~WindAndWaterParameters ( )
protectedvirtual

Member Function Documentation

◆ getCoefficient()

agx::Real agxModel::WindAndWaterParameters::getCoefficient ( Coefficient  type) const
Returns
coefficient of type PRESSURE_DRAG, VISCOUS_DRAG, LIFT or BUOYANCY

◆ getShape()

const agxCollide::Shape * agxModel::WindAndWaterParameters::getShape ( ) const
Returns
the shape these parameters are associated with

◆ getShapeTessellationLevel()

WindAndWaterParameters::ShapeTessellation agxModel::WindAndWaterParameters::getShapeTessellationLevel ( ) const
Returns
the current shape tessellation level

Definition at line 178 of file WindAndWaterParameters.h.

◆ restore()

virtual void agxModel::WindAndWaterParameters::restore ( agxStream::InputArchive &  in)
virtual

Internal method.

◆ setAerodynamicCoefficient()

static void agxModel::WindAndWaterParameters::setAerodynamicCoefficient ( WindAndWaterController *  controller,
agx::RigidBody *  rb,
Coefficient  type,
agx::Real  coefficient 
)
static

Set a aerodynamic coefficient for a rigid body.

Parameters
controller- The WindAndWaterController used.
rb- The rigid body whose coefficient we want to change.
type- The coefficient we want to change; PRESSURE_DRAG, VISCOUS_DRAG or LIFT.
coefficient- Value of the new coefficient.

◆ setCoefficient()

void agxModel::WindAndWaterParameters::setCoefficient ( Coefficient  type,
agx::Real  coefficient 
)

Set pressure drag, viscous drag, lift or buoyancy coefficient.

Parameters
type- PRESSURE_DRAG, VISCOUS_DRAG, LIFT or BUOYANCY
coefficient- new coefficient

◆ setHydrodynamicCoefficient()

static void agxModel::WindAndWaterParameters::setHydrodynamicCoefficient ( WindAndWaterController *  controller,
agx::RigidBody *  rb,
Coefficient  type,
agx::Real  coefficient 
)
static

Set a hydrodynamic coefficient for a rigid body.

Parameters
controller- The WindAndWaterController used.
rb- The rigid body whose coefficient we want to change.
type- The coefficient we want to change; PRESSURE_DRAG, VISCOUS_DRAG, LIFT or BUOYANCY.
coefficient- Value of the new coefficient.

◆ setShapeTessellationLevel()

void agxModel::WindAndWaterParameters::setShapeTessellationLevel ( agxModel::WindAndWaterParameters::ShapeTessellation  tessellation)

Assign tessellation level for native shapes (sphere, capsule and cylinder) used during aero- and hydrodynamics integrations.

This parameter is ignored for mesh shape types and box.

Parameters
tessellation- tessellation level

◆ shapeTessellationLevelToResolution()

static agx::Real agxModel::WindAndWaterParameters::shapeTessellationLevelToResolution ( agxModel::WindAndWaterParameters::ShapeTessellation  tessellationLevel)
static

Translate from ShapeTessellation to scale of default meshing technique.

◆ store()

virtual void agxModel::WindAndWaterParameters::store ( agxStream::OutputArchive &  out) const
virtual

Internal method.

Member Data Documentation

◆ m_addedMassDb

agxModel::AddedMassDbRef agxModel::WindAndWaterParameters::m_addedMassDb
protected

Definition at line 130 of file WindAndWaterParameters.h.

◆ m_addedMassIdentifier

agxModel::AddedMassStorage::Identifier agxModel::WindAndWaterParameters::m_addedMassIdentifier
protected

Definition at line 129 of file WindAndWaterParameters.h.

◆ m_buoyancyScaling

agx::Real agxModel::WindAndWaterParameters::m_buoyancyScaling
protected

Definition at line 128 of file WindAndWaterParameters.h.

◆ m_liftCoefficient

agx::Real agxModel::WindAndWaterParameters::m_liftCoefficient
protected

Definition at line 126 of file WindAndWaterParameters.h.

◆ m_pressureDragCoefficient

agx::Real agxModel::WindAndWaterParameters::m_pressureDragCoefficient
protected

Definition at line 125 of file WindAndWaterParameters.h.

◆ m_shape

agxCollide::ShapeConstObserver agxModel::WindAndWaterParameters::m_shape
protected

Definition at line 131 of file WindAndWaterParameters.h.

◆ m_tessellation

ShapeTessellation agxModel::WindAndWaterParameters::m_tessellation
protected

Definition at line 132 of file WindAndWaterParameters.h.

◆ m_viscousDragCoefficient

agx::Real agxModel::WindAndWaterParameters::m_viscousDragCoefficient
protected

Definition at line 127 of file WindAndWaterParameters.h.


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