|
AGX Dynamics
2.35.0.1
|
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynamics). More...
#include <WindAndWaterController.h>
Inheritance diagram for agxModel::WindAndWaterController:Classes | |
| struct | AerodynamicsData |
| struct | DynamicsData |
| Data for rigid body with aero/hydro static/dynamic forces and added mass and inertia matrices. More... | |
| struct | DynamicsLinkedStructureData |
| Hydro- and aerodynamic results for a linked structure. More... | |
| struct | DynamicsWireData |
| Hydro- and aerodynamic results for a wire. More... | |
| class | ObjectData |
| Static data for a shape. More... | |
| struct | PressureFieldRendererData |
| struct | Segment |
| class | UnitPrimitiveCache |
| class | WaterFlowGenerator |
| Interface for generating water flow. More... | |
| class | WindAndWaterData |
| Data for different objects. More... | |
| class | WindAndWaterFlowGenerator |
| Interface for generating water flow and wind. More... | |
| class | WindGenerator |
| Interface for generating wind effects. More... | |
| class | WindWrapper |
| Wraps wind related things. More... | |
| class | WireLinkedStructureData |
| Data for a wire or a linked structure. More... | |
| struct | WirePair |
Public Member Functions | |
| WindAndWaterController () | |
| Construct wind and water controller. More... | |
| virtual agx::Bool | addWater (agxCollide::Geometry *geometry) |
| Flag a geometry as water. More... | |
| virtual agxModel::WindAndWaterController::DynamicsData | calculateDynamicsData (const agxCollide::Geometry *waterGeometry, const agx::RigidBody *rb, const agx::Vec3 &gravity, const agxCollide::Space *space=nullptr, agx::Bool updateRenderers=false) |
| Calculates forces given water geometry (may be null) acting on a rigid body. More... | |
| agxModel::WindAndWaterController::DynamicsLinkedStructureData | calculateLinkedStructureDynamicsData (const agxCollide::Geometry *waterGeometry, agxSDK::LinkedStructure *linkedStructure, const agxCollide::Space *space) |
| Calculates forces for hydro- and aerodynamics acting on a linked structure. More... | |
| agxModel::WindAndWaterController::DynamicsWireData | calculateWireDynamicsData (const agxCollide::Geometry *waterGeometry, agxWire::Wire *wire) |
| Calculates forces for hydro- and aerodynamics acting on a wire. More... | |
| const char * | getClassName () const override |
| virtual agxModel::AerodynamicsParameters * | getOrCreateAerodynamicsParameters (const agxCollide::Shape *shape) const |
| Creates new or returns an already created parameter storage for a given shape. More... | |
| agxModel::AerodynamicsParameters * | getOrCreateAerodynamicsParameters (const agxSDK::LinkedStructure *linkedStructure) const |
| Creates new or returns an already created parameter storage for a given linked structure. More... | |
| agxModel::AerodynamicsParameters * | getOrCreateAerodynamicsParameters (const agxWire::Wire *wire) const |
| Creates new or returns an already created parameter storage for a given wire. More... | |
| virtual agxModel::HydrodynamicsParameters * | getOrCreateHydrodynamicsParameters (const agxCollide::Shape *shape) const |
| Creates new or returns an already created parameter storage for a given shape. More... | |
| agxModel::HydrodynamicsParameters * | getOrCreateHydrodynamicsParameters (const agxSDK::LinkedStructure *linkedStructure) const |
| Creates new or returns an already created parameter storage for a given linked structure. More... | |
| agxModel::HydrodynamicsParameters * | getOrCreateHydrodynamicsParameters (const agxWire::Wire *wire) const |
| Creates new or returns an already created parameter storage for a given wire. More... | |
| agxStream::StorageAgent * | getStorageAgent () const override |
| agxModel::WindAndWaterController::WaterFlowGenerator * | getWaterFlowGenerator (const agxCollide::Geometry *waterGeometry) const |
| agxModel::WaterWrapper * | getWaterWrapper (const agxCollide::Geometry *waterGeometry) |
| virtual agxModel::WindAndWaterController::WindGenerator * | getWindGenerator () const |
| virtual void | post (agxModel::WindAndWaterController *) |
| Called during normal post. More... | |
| virtual void | post (const agx::TimeStamp &) override |
| Internal method. More... | |
| virtual void | pre (agxModel::WindAndWaterController *) |
| Called before all data is collected and before updateInteraction is called. More... | |
| virtual void | pre (const agx::TimeStamp &) override |
| Internal method. More... | |
| virtual void | preCollide (agxModel::WindAndWaterController *) |
| Called during normal preCollide events. More... | |
| virtual void | preCollide (const agx::TimeStamp &) override |
| Internal method. More... | |
| virtual agx::Bool | registerPressureFieldRenderer (agxModel::PressureFieldRenderer *pressureFieldRenderer, const agxCollide::Shape *shape) |
| Pressure field renderer for a given shape. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| void | setAirDensity (agx::Real airDensity) |
| Set the density of air. More... | |
| virtual void | setEnableAerodynamics (agx::Bool enable) |
| Enable/disable aerodynamics for all objects in the simulation. More... | |
| virtual agx::Bool | setEnableAerodynamics (agx::RigidBody *rb, agx::Bool enable) |
Enable/disable all geometries in rb for aerodynamics calculations. More... | |
| virtual agx::Bool | setEnableAerodynamics (agxCollide::Geometry *geometry, agx::Bool enable) |
| Enable/disable a geometry for aerodynamics calculations. More... | |
| agx::Bool | setEnableAerodynamics (agxSDK::LinkedStructure *linkedStructure, agx::Bool enable) |
| Enable/disable a linked structure for aerodynamics calculations. More... | |
| virtual agx::Bool | setEnableAerodynamics (agxWire::Wire *wire, agx::Bool enable) |
| Enable/disable a wire for aerodynamics calculations. More... | |
| virtual agx::Bool | setWaterFlowGenerator (const agxCollide::Geometry *waterGeometry, agxModel::WindAndWaterController::WaterFlowGenerator *flowGenerator) |
| Assign unique water flow generator to a water geometry. More... | |
| virtual agx::Bool | setWaterWrapper (agxCollide::Geometry *geometry, agxModel::WaterWrapper *waterWrapper) |
| Assign a water wrapper to a water geometry;. More... | |
| virtual void | setWindGenerator (agxModel::WindAndWaterController::WindGenerator *windGenerator) |
| Assign unique wind generator. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| virtual void | updateInteraction (agxModel::WindAndWaterController::ObjectData &, const GlobalTriangleData::Container &) |
| Called when it's time to update interaction. More... | |
Public Member Functions inherited from agxSDK::StepEventListener | |
| StepEventListener (int mask=DEFAULT) | |
| Default constructor, sets the default activation mask to all (POST_STEP and PRE_STEP) events. More... | |
| const char * | getClassName () const override |
| agxStream::StorageAgent * | getStorageAgent () const override |
| virtual void | last (const agx::TimeStamp &time) |
| Called after a step is taken in the simulation Implement this method in the derived class to get callbacks. More... | |
| virtual void | setMask (int mask) override |
| Specifies a bitmask which determines which event types will activate this listener. More... | |
Public Member Functions inherited from agxSDK::EventListener | |
| virtual void | addNotification () |
| Called when this listener is added to the simulation. More... | |
| int | getMask () const |
| agx::UInt32 | getPriority () const |
| Simulation * | getSimulation () |
| const Simulation * | getSimulation () const |
| Type | getType () const |
| bool | isEnabled () const |
| virtual void | removeNotification () |
| Called when this listener is removed from the simulation. More... | |
| void | setEnable (bool enable) |
| Specify whether the listener should react at all at events. More... | |
Public Member Functions inherited from agx::Component | |
| Component (const agx::Name &name=agx::Name(), agx::Model *model=agx::Component::ClassModel(), agx::Device *device=nullptr) | |
| virtual void | addObject (agx::Object *object, bool assignContext=true) |
| Add an object to the component. More... | |
| virtual String | autoComplete (const String &partialName, StringVector &matchingNames) const |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const override |
| void | configure (Model *model) |
| virtual void | configure (TiXmlElement *eComponent) override |
| agx::Device * | getDevice () |
| template<typename T > | |
| T * | getDevice () |
| const agx::Device * | getDevice () const |
| template<typename T > | |
| const T * | getDevice () const |
| size_t | getNumObjects (const agx::Name &name) const |
| agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) const |
| agx::Object * | getObject (const agx::Name &name, size_t index=0) |
| template<typename T > | |
| T * | getObject (const agx::Name &name, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, size_t index=0) const |
| template<typename T > | |
| const T * | getObject (const agx::Name &name, size_t index=0) const |
| const agx::ObjectRefVector & | getObjects () const |
| template<typename T > | |
| void | getObjects (agx::ObjectPtrVector &result, bool recursive=false) const |
| void | getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const |
| virtual Object * | getResourceImpl (const Path &path, agx::Model *model) override |
| virtual void | printSubtree () const override |
| void | printSubtree (std::ostream &stream, int depth=0) const |
| virtual void | rebind () override |
| void | removeAllObjects () |
| Remove all components. More... | |
| virtual void | removeObject (agx::Object *object) |
| Remove an object from the component. More... | |
| void | removeObject (const agx::Name &name, size_t index=0) |
| Remove an object with a specified name (and optional index) from the component. More... | |
| virtual void | snapshot (TiXmlNode *eParent, const String &directory) const override |
| void | traverse (ComponentVisitor *) |
| void | traverse (const TraverseCallback &callback) |
Public Member Functions inherited from agx::Object | |
| Object (const Name &name=Name(), Model *model=Object::ClassModel()) | |
| void | addListener (EventListener *listener) |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| agx::Object * | getContext () |
| template<typename T > | |
| T * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| const T * | getContext () const |
| agx::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| bool | isUnique () const |
| void | removeListener (EventListener *listener) |
| virtual void | save (TiXmlElement *) const |
| virtual void | setContext (agx::Object *context) |
| void | setId (UInt32 id) |
| void | setModel (agx::Model *model) |
| Set the object model (handled automatically). More... | |
| void | setName (const agx::Name &name) |
| Set the name of the object. 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... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| 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... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static agxCollide::TrimeshRef | createPrimitiveMesh (const agxCollide::Shape *shape, agxModel::WindAndWaterParameters::ShapeTessellation tessellation) |
| Create a mesh from a primitive shape given a tessellation level. More... | |
| static agxModel::WindAndWaterController * | find (agxSDK::Simulation *simulation, const agx::Uuid &uuid) |
| Search the given simulation for a WindAndWaterController with the given Uuid. More... | |
| static agxModel::WindAndWaterControllerPtrVector | findAll (const agxSDK::Simulation *simulation) |
| Finds all WindAndWaterControllers in the given simulation. More... | |
| static agxModel::WindAndWaterControllerPtrVector | findAll (const agxSDK::Simulation *simulation, const agx::Name &name) |
| Find all WindAndWaterControllers with given name. More... | |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agxSDK::StepEventListener | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agxSDK::EventListener | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agx::Component | |
| static Component * | _load (TiXmlElement *eComponent, Device *device) |
| static agx::Model * | ClassModel () |
| static Component * | load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path()) |
| static Component * | load (const String &path, const Path &_namespace=Path()) |
| static Component * | load (const String &path, Device *device, const Path &_namespace=Path()) |
| static Component * | load (TiXmlElement *eComponent, Device *device) |
Static Public Member Functions inherited from agx::Object | |
| static agx::Model * | ClassModel () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| template<typename T > | |
| static T * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| template<typename T > | |
| static T * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| static Object * | load (TiXmlElement *eObject, Device *device) |
| template<typename T > | |
| static T * | load (TiXmlElement *eObject, Device *device) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). 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 | |
| virtual | ~WindAndWaterController () |
| Reference counted object, protected destructor. More... | |
| agxModel::WindAndWaterController::WireLinkedStructureData * | calculateLinkedStructureData (const agxCollide::Geometry *waterGeometry, const agxCollide::Geometry *geometry, const agx::Vec3 &gravity, const AerodynamicsParameters *aeroParams, const HydrodynamicsParameters *hydroParams, agx::Bool aeroEnabled, agx::Bool hydroEnabled, const agx::TimeStamp &t=0) |
| Calculate linked structure data for all segments. More... | |
| virtual agxModel::WindAndWaterController::ObjectDataContainer | calculateObjectData (const agxCollide::Geometry *waterGeometry, const agxCollide::Geometry *geometry, const agx::Vec3 &gravity, agx::Bool aeroEnabled, agx::Bool hydroEnabled, agx::Bool updateRenderers, agx::UInt &numProcessedTriangles, const agx::UIntVector startIndexT, const agx::UIntVector startIndexV, const agx::TimeStamp &t=0) |
| Calculate object data (for each shape) in a geometry. More... | |
| agxModel::WindAndWaterController::WireLinkedStructureData * | calculateWireData (agxWire::Wire *wire, WirePairContainer wirePairs, WindAndWaterController::WindWrapper wind, agx::Bool aeroEnable, const agx::TimeStamp &t=0) |
| Calculate wire data for all segments. More... | |
| void | configureDefaultAlgorithms () |
| Configure the default algorithms. More... | |
| void | garbageCollect () |
| Collects garbage (e.g., due to deleted shapes). More... | |
| agxModel::PressureFieldRenderer * | getPressureFieldRender (const agxCollide::Shape *shape) const |
| agxModel::WindAndWaterController::PressureFieldRendererData * | getPressureFieldRenderData (const agxCollide::Shape *shape) const |
| void | getSizeOfGeometry (const agxCollide::Geometry *geometry, agx::UIntVector &numTriangles, agx::UIntVector &numVertices) |
Protected Member Functions inherited from agxSDK::StepEventListener | |
| virtual | ~StepEventListener () |
| Destructor. More... | |
Protected Member Functions inherited from agxSDK::EventListener | |
| EventListener (Type type=UNDEFINED_TYPE) | |
| Default constructor. More... | |
| virtual | ~EventListener () |
| Destructor. More... | |
| void | setSimulation (Simulation *simulation) |
| Set the associated simulation for this EventListener. More... | |
Protected Member Functions inherited from agx::Component | |
| virtual | ~Component () |
| String | expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const |
| void | setDevice (Device *device) |
Protected Member Functions inherited from agx::Object | |
| virtual | ~Object () |
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 () |
Additional Inherited Members | |
Public Attributes inherited from agx::Component | |
| ObjectEvent | addObjectEvent |
| ObjectEvent | removeObjectEvent |
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... | |
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynamics).
Interface for a WindAndWaterController algorithm.
Callbacks during preCollide, pre and post state. Forces should be calculated in the updateInteraction call where all static data is present for a given shape.
Definition at line 45 of file WindAndWaterController.h.
|
protected |
Definition at line 875 of file WindAndWaterController.h.
|
protected |
Definition at line 746 of file WindAndWaterController.h.
|
protected |
Definition at line 868 of file WindAndWaterController.h.
|
protected |
Definition at line 872 of file WindAndWaterController.h.
|
protected |
Definition at line 870 of file WindAndWaterController.h.
| typedef agx::observer_ptr< const Algorithm > agxModel::WindAndWaterController::AlgorithmConstObserver |
Definition at line 48 of file WindAndWaterController.h.
| typedef agx::ref_ptr< const Algorithm > agxModel::WindAndWaterController::AlgorithmConstRef |
Definition at line 48 of file WindAndWaterController.h.
|
protected |
Definition at line 867 of file WindAndWaterController.h.
| typedef agx::observer_ptr< Algorithm > agxModel::WindAndWaterController::AlgorithmObserver |
Definition at line 48 of file WindAndWaterController.h.
| typedef agx::ref_ptr< Algorithm > agxModel::WindAndWaterController::AlgorithmRef |
Definition at line 48 of file WindAndWaterController.h.
|
protected |
Definition at line 878 of file WindAndWaterController.h.
|
protected |
Definition at line 869 of file WindAndWaterController.h.
|
protected |
Definition at line 873 of file WindAndWaterController.h.
|
protected |
Definition at line 871 of file WindAndWaterController.h.
Definition at line 976 of file WindAndWaterController.h.
Definition at line 358 of file WindAndWaterController.h.
Definition at line 357 of file WindAndWaterController.h.
|
protected |
Definition at line 874 of file WindAndWaterController.h.
|
protected |
Definition at line 736 of file WindAndWaterController.h.
Definition at line 403 of file WindAndWaterController.h.
| typedef agx::observer_ptr< const WaterFlowGenerator > agxModel::WindAndWaterController::WaterFlowGeneratorConstObserver |
Definition at line 75 of file WindAndWaterController.h.
| typedef agx::ref_ptr< const WaterFlowGenerator > agxModel::WindAndWaterController::WaterFlowGeneratorConstRef |
Definition at line 75 of file WindAndWaterController.h.
|
protected |
Definition at line 876 of file WindAndWaterController.h.
| typedef agx::observer_ptr< WaterFlowGenerator > agxModel::WindAndWaterController::WaterFlowGeneratorObserver |
Definition at line 75 of file WindAndWaterController.h.
Definition at line 75 of file WindAndWaterController.h.
|
protected |
Definition at line 877 of file WindAndWaterController.h.
| typedef agx::observer_ptr< const WindGenerator > agxModel::WindAndWaterController::WindGeneratorConstObserver |
Definition at line 96 of file WindAndWaterController.h.
Definition at line 96 of file WindAndWaterController.h.
Definition at line 96 of file WindAndWaterController.h.
Definition at line 96 of file WindAndWaterController.h.
| typedef agx::Vector< WireLinkedStructureDataRef > agxModel::WindAndWaterController::WireLinkedStructureDataContainer |
Definition at line 455 of file WindAndWaterController.h.
| typedef agx::ref_ptr< WireLinkedStructureData > agxModel::WindAndWaterController::WireLinkedStructureDataRef |
Definition at line 454 of file WindAndWaterController.h.
|
protected |
Definition at line 879 of file WindAndWaterController.h.
Definition at line 383 of file WindAndWaterController.h.
| agxModel::WindAndWaterController::WindAndWaterController | ( | ) |
Construct wind and water controller.
|
protectedvirtual |
Reference counted object, protected destructor.
|
virtual |
Flag a geometry as water.
Overlap calculations will be made explicitly with other geometries where hydrodynamics is enabled.
| geometry | - water geometry |
|
virtual |
Calculates forces given water geometry (may be null) acting on a rigid body.
| waterGeometry | - water geometry |
| rb | - rigid body to calculate (aero and hydro) interactions |
| gravity | - gravity at rb position |
| space | - if space is provided, group collision filters are checked as well (i.e., basically space->canCollide( waterGeoemtry, rbGeometry )) |
| updateRenderers | - if true, any shape with a pressure field renderer will be updated |
|
protected |
Calculate linked structure data for all segments.
| agxModel::WindAndWaterController::DynamicsLinkedStructureData agxModel::WindAndWaterController::calculateLinkedStructureDynamicsData | ( | const agxCollide::Geometry * | waterGeometry, |
| agxSDK::LinkedStructure * | linkedStructure, | ||
| const agxCollide::Space * | space | ||
| ) |
Calculates forces for hydro- and aerodynamics acting on a linked structure.
| waterGeometry | - water geometry |
| linkedStructure | - linked structure affected by hydro- and aerodynamics. |
|
protectedvirtual |
Calculate object data (for each shape) in a geometry.
|
protected |
Calculate wire data for all segments.
| agxModel::WindAndWaterController::DynamicsWireData agxModel::WindAndWaterController::calculateWireDynamicsData | ( | const agxCollide::Geometry * | waterGeometry, |
| agxWire::Wire * | wire | ||
| ) |
Calculates forces for hydro- and aerodynamics acting on a wire.
| waterGeometry | - water geometry |
| wire | - wire affected by aero- and hydrodynamics |
|
protected |
Configure the default algorithms.
|
inlinestatic |
Definition at line 725 of file WindAndWaterController.h.
|
inlinestatic |
Definition at line 725 of file WindAndWaterController.h.
|
static |
Create a mesh from a primitive shape given a tessellation level.
The same mesh is used for hydrodynamic calculations.
| shape | - the shape that the mesh should be based on. |
| tessellation | - the desired tessellation of the mesh. |
|
static |
Search the given simulation for a WindAndWaterController with the given Uuid.
| simulation | - The simulation to search in. |
| uuid | - The Uuid of the WindAndWaterController to search for. |
uuid in simulation simulation, or nullptr.
|
static |
Finds all WindAndWaterControllers in the given simulation.
| simulation | - The simulation to search in. |
|
static |
Find all WindAndWaterControllers with given name.
| simulation | - The simulation to search in. |
| name | - The name of the WindAndWaterController. |
|
protected |
Collects garbage (e.g., due to deleted shapes).
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 725 of file WindAndWaterController.h.
|
inlinestatic |
Definition at line 725 of file WindAndWaterController.h.
|
virtual |
Creates new or returns an already created parameter storage for a given shape.
The parameters defines the interaction between the shape and air since there will be no contact material between them.
| agxModel::AerodynamicsParameters* agxModel::WindAndWaterController::getOrCreateAerodynamicsParameters | ( | const agxSDK::LinkedStructure * | linkedStructure | ) | const |
Creates new or returns an already created parameter storage for a given linked structure.
The parameters defines the interaction between the linked structure and air since there will be no contact material between them.
| agxModel::AerodynamicsParameters* agxModel::WindAndWaterController::getOrCreateAerodynamicsParameters | ( | const agxWire::Wire * | wire | ) | const |
Creates new or returns an already created parameter storage for a given wire.
The parameters defines the interaction between the wire and air since there will be no contact material between them.
|
virtual |
Creates new or returns an already created parameter storage for a given shape.
The parameters defines the interaction between the shape and water since there will be no contact material between them.
| agxModel::HydrodynamicsParameters* agxModel::WindAndWaterController::getOrCreateHydrodynamicsParameters | ( | const agxSDK::LinkedStructure * | linkedStructure | ) | const |
Creates new or returns an already created parameter storage for a given linked structure.
The parameters defines the interaction between the linked structure and water since there will be no contact material between them.
| agxModel::HydrodynamicsParameters* agxModel::WindAndWaterController::getOrCreateHydrodynamicsParameters | ( | const agxWire::Wire * | wire | ) | const |
Creates new or returns an already created parameter storage for a given wire.
The parameters defines the interaction between the wire and water since there will be no contact material between them.
|
protected |
|
protected |
|
protected |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 725 of file WindAndWaterController.h.
| agxModel::WindAndWaterController::WaterFlowGenerator* agxModel::WindAndWaterController::getWaterFlowGenerator | ( | const agxCollide::Geometry * | waterGeometry | ) | const |
| waterGeometry | - the water geometry that is affected by the generator. |
| agxModel::WaterWrapper* agxModel::WindAndWaterController::getWaterWrapper | ( | const agxCollide::Geometry * | waterGeometry | ) |
| waterGeometry | - the water geometry. |
|
virtual |
|
inlinevirtual |
Called during normal post.
Definition at line 992 of file WindAndWaterController.h.
|
overridevirtual |
Internal method.
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtual |
Called before all data is collected and before updateInteraction is called.
Definition at line 987 of file WindAndWaterController.h.
|
overridevirtual |
Internal method.
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtual |
Called during normal preCollide events.
Definition at line 982 of file WindAndWaterController.h.
|
overridevirtual |
Internal method.
Reimplemented from agxSDK::StepEventListener.
|
virtual |
Pressure field renderer for a given shape.
|
overridevirtual |
Reimplemented from agxSDK::StepEventListener.
| void agxModel::WindAndWaterController::setAirDensity | ( | agx::Real | airDensity | ) |
Set the density of air.
| airDensity | - The new air density. Default value is 1.2 kg per cubic meter. |
|
virtual |
Enable/disable aerodynamics for all objects in the simulation.
If disabled, only objects that have aerodynamics enabled explicitly will be used in the aerodynamics calculation.
| enable | - true to enable, false to disable. |
|
virtual |
Enable/disable all geometries in rb for aerodynamics calculations.
| rb | - rigid body to enable/disable for aerodynamics calculations |
| enable | - true to enable, false to disable |
|
virtual |
Enable/disable a geometry for aerodynamics calculations.
| geometry | - geometry to enable/disable for aerodynamics calculations |
| enable | - true to enable, false to disable |
| agx::Bool agxModel::WindAndWaterController::setEnableAerodynamics | ( | agxSDK::LinkedStructure * | linkedStructure, |
| agx::Bool | enable | ||
| ) |
Enable/disable a linked structure for aerodynamics calculations.
Only works after the linked structure has been added to a simulation.
| linkedStructure | - linked strucutre to enable/disable for aerodynamics calculations. |
| enable | - true to enable, false to disable |
|
virtual |
Enable/disable a wire for aerodynamics calculations.
| wire | - wire to enable/disable for aerodynamics calculations |
| enable | - true to enable, false to disable |
|
virtual |
Assign unique water flow generator to a water geometry.
If flowGenerator is nullptr the previous flow generator will be removed.
| waterGeometry | - the water geometry that is affected by the generator. |
| flowGenerator | - new water flow generator or nullptr to remove the previous one |
|
virtual |
Assign a water wrapper to a water geometry;.
| geometry | - the water geometry associated with the water wrapper |
| waterWrapper | - the wrapper to be attached to the given water geometry. |
|
virtual |
Assign unique wind generator.
| windGenerator | - new wind generator |
|
overridevirtual |
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtual |
Called when it's time to update interaction.
Definition at line 997 of file WindAndWaterController.h.
|
protected |
Definition at line 948 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 950 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 952 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 951 of file WindAndWaterController.h.
|
protected |
Definition at line 963 of file WindAndWaterController.h.
|
protected |
Definition at line 946 of file WindAndWaterController.h.
|
protected |
Definition at line 947 of file WindAndWaterController.h.
|
protected |
Definition at line 962 of file WindAndWaterController.h.
|
protected |
Definition at line 944 of file WindAndWaterController.h.
|
protected |
Definition at line 960 of file WindAndWaterController.h.
|
protected |
Definition at line 949 of file WindAndWaterController.h.
|
protected |
Definition at line 953 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 954 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 956 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 955 of file WindAndWaterController.h.
|
protected |
Definition at line 957 of file WindAndWaterController.h.
|
protected |
Definition at line 964 of file WindAndWaterController.h.
|
protected |
Definition at line 958 of file WindAndWaterController.h.
|
protected |
Definition at line 965 of file WindAndWaterController.h.
|
protected |
Definition at line 945 of file WindAndWaterController.h.
|
protected |
Definition at line 961 of file WindAndWaterController.h.
|
protected |
Definition at line 959 of file WindAndWaterController.h.