18 #ifndef AGXHYDRAULICS_FLOW_DIMENSION_H
19 #define AGXHYDRAULICS_FLOW_DIMENSION_H
183 GetConstraint getConstraintFunction,
184 GetConnection getConnectionFunction)
const;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXHYDRAULICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
A FlowConnector is a junction of a set of FlowUnits.
A FlowDimension represents the flow of fluid through a FlowUnit.
const agxHydraulics::FlowConnector * getInputFlowConnector() const
agxHydraulics::FlowConnector * getOutputFlowConnector()
virtual bool store(agxStream::StorageStream &out) const override
Stores internal data into stream.
const agxHydraulics::FlowConnector * getFlowConnector(agxPowerLine::Side side) const
virtual std::string getTypeName() const override
agx::UInt8 getElementIndex() const
const agxPowerLine::detail::Translational1DofState * getFlowState() const
const agxHydraulics::FlowConnector * getOutputFlowConnector() const
FlowDimension(agxHydraulics::FlowUnit *unit, agx::RigidBody *body, agx::UInt8 slot)
virtual bool restore(agxStream::StorageStream &in) override
Restores internal data from stream.
agxHydraulics::FlowConnector * getInputFlowConnector()
virtual agx::Real getPowerIn() const override
Compute the combined power, i.e., pressure * flow rate, generated at all input connections.
static agxPowerLine::PhysicalDimension::Type getStaticType()
The ID of a physical dimension type is always a number between zero and the total number of types of ...
static std::string getStaticTypeName()
agxHydraulics::FlowConnector * getFlowConnector(agxPowerLine::Side side)
FlowDimension(agxHydraulics::FlowUnit *unit)
agxPowerLine::detail::Translational1DofState * getFlowState()
virtual agx::Real getOutputLoad() const override
Returns the sum of the constraint forces of all constraints owned by Connectors connected to the outp...
virtual agx::Real getPowerOut() const override
Compute the combined power, i.e., pressure * flow rate, generated at all output connections.
const FlowUnit * getFlowUnit() const
virtual agx::Real getInputLoad() const override
Returns the sum of the constraint forces of all constraints owned by Connectors connected to the inpu...
FlowUnit is the base class for Units that contains a FlowDimension.
Constraint implementation for constraining a number of physical dimensions of the same type.
virtual bool store(agxStream::StorageStream &str) const
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &in)
Restores internal data from stream.
Templated one dimensional dimension state.
Abstract base class for storing/restoring a line/drums with version control.
The rigid body class, combining a geometric model and a frame of reference.
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
const agx::Real complianceScaling(1)
const agx::Real dampingScaling(1)
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.