18 #ifndef AGXHYDRAULICS_DETAIL_FLOW_RATE_CONSTRAINT_H 19 #define AGXHYDRAULICS_DETAIL_FLOW_RATE_CONSTRAINT_H 43 struct FlowRateConstraintData
50 FlowRateConstraintData(
agx::Real targetFlowRate,
agx::UInt8 elementIndex,
bool allowPumping);
63 ElementaryFlowRateConstraint(
const FlowRateConstraintData& data);
69 virtual void prepare()
override;
76 agx::UInt row, agx::GWriteState::Enum writeState)
override;
93 void setDataLocation(FlowRateConstraintData* data);
98 ElementaryFlowRateConstraint();
99 virtual ~ElementaryFlowRateConstraint() {}
103 void operator=(
const ElementaryFlowRateConstraint&) {}
106 const FlowRateConstraintData* m_data;
113 ElementaryFlowRateConstraint* asElementaryFlowRateConstraint(
agx::Constraint* constraint);
123 FlowRateConstraintImplementation(
const FlowRateConstraintData& data, FlowUnit* flowUnit);
126 virtual void prepare()
override;
134 virtual ~FlowRateConstraintImplementation() {}
135 FlowRateConstraintImplementation();
166 FlowRateConstraint(
const FlowRateConstraintData& data, FlowUnit* flowUnit);
173 FlowRateConstraint();
174 virtual ~FlowRateConstraint();
175 virtual int getNumDOF()
const override;
178 FlowRateConstraintImplementation* m_flowRateConstraint;
A FlowDimension represents the flow of fluid through a FlowUnit.
Helper class to hold data that is general for elementary constraints.
The base class for a constraint.
#define AGX_DECLARE_POINTER_TYPES(type)
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Abstract base class for storing/restoring a line/drums with version control.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...