37 class PhysicalDimensionMultiBodyConstraintImplementation;
38 class ElementaryPhysicalDimensionConstraint;
286 void setDamping(
agx::Real damping);
287 agx::Real getDamping() const;
290 agx::Real getRatio() const;
291 agx::Real getRatioDerivative() const;
293 virtual
agx::Real getRatio(
agx::Real x) const;
294 virtual
agx::Real getRatioDerivative(
agx::Real x) const;
299 virtual
agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const
agx::Real ,
agx::Real& ,
agx::Real& );
305 virtual
bool postStore(
agxStream::StorageStream& str ) const;
306 virtual
bool postRestore(
agxStream::StorageStream& str);
311 virtual
agx::Real getViolation() const;
337 bool isConstraintValid() const;
344 virtual
bool store(
agxStream::StorageStream& str) const override;
349 virtual
bool restore(
agxStream::StorageStream& str) override;
351 bool getIgnoreForStoreRestoreStream() const;
352 void setIgnoreForStoreRestoreStream(
bool ignore);
355 virtual
void store(
agxStream::OutputArchive& out) const override;
356 virtual
void restore(
agxStream::InputArchive& in) override;
363 void setRatio(
agx::Real ratio);
364 void setRatioDerivative(
agx::Real ratioDerivative);
369 bool hasNonValidInputConnection() const;
370 bool hasNonValidOutputConnection() const;
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Links two connections together.
agxPowerLine::Connection * findConnection(const agxPowerLine::Unit *unit, agxPowerLine::Side side)
virtual bool connect(agxPowerLine::Unit *unit)
Connect a unit to this Connector.
bool hasInputConnection(Connection *connection)
Find out if the connection belongs to this connector.
int getNumOutputConnections() const
int getNumPossibleOutputConnections() const
bool getInputUnits(UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
const DimensionTypeVector & getInputTypes() const
const agxPowerLine::Connection * findOutputConnection(const agxPowerLine::Unit *unit) const
const DimensionTypeVector & getOutputTypes() const
void setNumPossibleOutputConnections(int num)
Define number of output dimensions the constraint should handle.
PhysicalDimensionMultiBodyConstraintImplementation * m_constraint
bool getUnits(UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
int getNumPossibleInputConnections() const
virtual bool connect(agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit)
DimensionTypeVector m_outputTypes
ConnectionRefVector m_outputConnections
bool hasFreeConnection() const
agxPowerLine::ConnectionRefVector & getInputConnections()
return vector to all input connections from this connector
bool compareWithInputTypes(PhysicalDimensionRefVector &dimensions) const
ConnectionRefVector m_inputConnections
virtual bool addNotification(agxSDK::Simulation *simulation) override
const agxPowerLine::Connection * getInputConnection(size_t index) const
return a specific output connection
bool getUnits(UnitConstPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true) const
const agxPowerLine::Connection * findInputConnection(const agxPowerLine::Unit *unit) const
bool hasOutputConnection(Connection *connection)
agx::Real getPowerOut() const
agx::Real m_ratioDerivative
int getNumConnections(agxPowerLine::Side side) const
agxPowerLine::Connection * findOutputConnection(const agxPowerLine::Unit *unit)
agx::Real getPowerIn() const
bool hasFreeInputConnection() const
virtual bool disconnect(agxPowerLine::Unit *unit)
Disconnect the given unit from this Connector.
const agxPowerLine::ConnectionRefVector & getConnections(agxPowerLine::Side side) const
agxPowerLine::Connection * getInputConnection(size_t index)
return a specific input connection
bool getOutputUnits(UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
const DimensionTypeVector & getTypes(agxPowerLine::Side side) const
int getNumFreeConnections() const
virtual bool disconnect()
bool getUnits(UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
const agxPowerLine::Connection * findConnection(const agxPowerLine::Unit *unit, agxPowerLine::Side side) const
PhysicalDimension * getInputDimension(const PhysicalDimension::Type dimensionType) const
int getNumFreeConnections(agxPowerLine::Side side) const
virtual bool connect(agxPowerLine::Unit *inputUnit, agxPowerLine::Side inputUnitSide, agxPowerLine::Side outputUnitSide, agxPowerLine::Unit *outputUnit)
void setNumPossibleInputConnections(int num)
Define number of input dimensions the constraint should handle.
bool m_ignoreMeForStoreRestoreStream
virtual void initConstraint()
PhysicalDimension * getOutputDimension(const PhysicalDimension::Type dimensionType) const
bool hasFreeConnection(agxPowerLine::Side side) const
bool getUnits(UnitPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true)
virtual agx::Real calculateViolation() const
calculate violation for constraint
bool getInputUnits(UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
agxPowerLine::ConnectionRefVector & getOutputConnections()
return vector to all output connections from this connector
int getNumFreeOutputConnections() const
int getNumConnections() const
virtual bool removeNotification(agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override
remove connector and constraint from simulation
const agxPowerLine::Connection * getOutputConnection(size_t index) const
return a specific output connection
int getNumFreeInputConnections() const
Connector()
create a connector
DimensionTypeVector m_inputTypes
bool hasFreeOutputConnection() const
bool getOutputUnits(UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
bool compareWithOutputTypes(PhysicalDimensionRefVector &dimensions) const
const agxPowerLine::ConnectionRefVector & getInputConnections() const
return vector to all input connections from this connector
agx::Real calculateEfficiency() const
calculate simulated efficiency
int getNumInputConnections() const
agxPowerLine::Connection * findInputConnection(const agxPowerLine::Unit *unit)
virtual agxPowerLine::Side getSide(const agxPowerLine::Unit *unit) const
static PhysicalDimension * getDimension(const ConnectionRefVector &connections, const PhysicalDimension::Type dimensionType)
const agxPowerLine::ConnectionRefVector & getOutputConnections() const
return vector to all output connections from this connector
agxPowerLine::Connection * getOutputConnection(size_t index)
return a specific input connection
Constraint implementation for constraining a number of physical dimensions of the same type.
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Utility class to hold custom implementations of constraints.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agxPowerLine contains a collection of connected components that transport power across a system.
agx::SetVector< Unit * > UnitPtrSetVector
agx::SetVector< Connector * > ConnectorPtrSetVector
agx::Vector< UnitRef > UnitRefVector
agx::Vector< ConnectorObserver > ConnectorObserverVector
agx::SetVector< const Unit * > UnitConstPtrSetVector
agx::SetVector< ConnectorRef > ConnectorRefSet
agx::Vector< ConnectorRef > ConnectorRefVector
agx::ref_ptr< Unit > UnitRef
agx::Vector< PhysicalDimension::Type > DimensionTypeVector
agx::Vector< Connector * > ConnectorPtrVector
agx::ref_ptr< Connector > ConnectorRef
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.