17 #ifndef AGXMODEL_WINDANDWATERPARAMETERS_H
18 #define AGXMODEL_WINDANDWATERPARAMETERS_H
26 class WindAndWaterController;
41 DEFAULT_TESSELLATION = MEDIUM
180 return m_tessellation;
Storage that holds data needed for added mass calculations.
AerodynamicsParameters(const agxCollide::Shape *shape, agxModel::AddedMassDbRef addedMassDb)
virtual ~AerodynamicsParameters()
HydrodynamicsParameters(const agxCollide::Shape *shape, agxModel::AddedMassDbRef addedMassDb)
const agxModel::AddedMassStorage * getAddedMassStorage() const
virtual ~HydrodynamicsParameters()
agx::Bool initializeAddedMassStorage(const agx::String &filename)
Initializes the added mass storage given filename to store and/or restore the data for this given sha...
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynami...
static void setAerodynamicCoefficient(WindAndWaterController *controller, agx::RigidBody *rb, Coefficient type, agx::Real coefficient)
Set a aerodynamic coefficient for a rigid body.
ShapeTessellation
Tessellation levels of native, non-mesh shapes, e.g, sphere, capsule and cylinder.
virtual void restore(agxStream::InputArchive &in)
Internal method.
const agxCollide::Shape * getShape() const
void setCoefficient(Coefficient type, agx::Real coefficient)
Set pressure drag, viscous drag, lift or buoyancy coefficient.
WindAndWaterParameters(const agxCollide::Shape *shape, agxModel::AddedMassDbRef addedMassDb)
static agx::Real shapeTessellationLevelToResolution(agxModel::WindAndWaterParameters::ShapeTessellation tessellationLevel)
Translate from ShapeTessellation to scale of default meshing technique.
virtual ~WindAndWaterParameters()
static void setHydrodynamicCoefficient(WindAndWaterController *controller, agx::RigidBody *rb, Coefficient type, agx::Real coefficient)
Set a hydrodynamic coefficient for a rigid body.
virtual void store(agxStream::OutputArchive &out) const
Internal method.
void setShapeTessellationLevel(agxModel::WindAndWaterParameters::ShapeTessellation tessellation)
Assign tessellation level for native shapes (sphere, capsule and cylinder) used during aero- and hydr...
agx::Real getCoefficient(Coefficient type) const
Class for writing serialized data in binary format to a stream.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::observer_ptr< const Shape > ShapeConstObserver
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.