208 virtual
bool preUpdate(
agx::
Real timeStep) override;
211 virtual
bool store(
agxStream::StorageStream& str) const override;
214 virtual
bool restore(
agxStream::StorageStream& str) override;
230 agx::
Real computeThrottleMassFlow();
236 agx::
Real computeThrottleMassFlowDer();
251 void startEngine(
agx::
Real timeStep);
262 agx::
Real m_displacementVolume;
264 agx::
Real m_nrRevolutionsPerCycle;
269 agx::
Real m_volumetricEfficiency;
271 agx::
Real m_dischargeCoefficient;
#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...
agx::Real getThrottleBore() const
bool setThrottleBore(agx::Real throttleBore)
Set the diameter of the throttle plate, which is assumed to be circular.
virtual void setInertia(agx::Real inertia) override
Set the inertia for the engine.
agx::Real getOutputTorque()
agx::Real getMaxThrottleAngle() const
bool setThrottleAngleRange(agx::Real min, agx::Real max)
Set the smallest and largest angle the throttle plate is allowed to have, i.e.
bool setThrottle(agx::Real throttle)
Set the percentage that the throttle is open.
agx::Real getInletVolume() const
void setEnable(bool enable)
Must be called to start the engine.
bool setMaxThrottleAngle(agx::Real throttleAngle)
Set the largest angle the throttle plate is allowed to have, i.e.
agx::Real getDischargeCoefficient() const
agx::Real getVolumetricEfficiency() const
agx::Real getInletPressure() const
Get the current pressure in the inlet manifold, i.e.the pressure right before the cylinders.
bool setInletVolume(agx::Real inletVolume)
Set the inlet manifold volume of the engine.
CombustionEngine(agx::Real displacementVolume)
Create an combustion engine.
bool setThrottleAngle(agx::Real throttleAngle)
Set the throttle plate angle directly, instead of percentage of throttle opening.
virtual agx::Real getInertia() const override
Get the engine inertia.
agx::Real getThrottle() const
agx::Real getRPM() const
Get revolutions per minute.
bool setNrRevolutionsPerCycle(agx::Real nrRevolutionsPerCycle)
Set how many revolutions per cycle the engine cylinders have.
agx::Real getThrottleAngle() const
void setDisplacementVolume(agx::Real displacementVolume)
Set the total Displacement volume of engine cylinders in m^3.
bool setDischargeCoefficient(agx::Real dischargeCoefficient)
Set the discharge coefficient of the flow past the throttle.
bool setVolumetricEfficiency(agx::Real volumetricEfficiency)
Set the volumetric efficiency.
agx::Real getDisplacementVolume() const
agx::Real getIdleThrottleAngle() const
bool setIdleThrottleAngle(agx::Real throttleAngle)
Set the idle throttle angle for the engine, i.e.
agx::Real getNrRevolutionsPerCycle() const
A rotational unit has one degree of freedom.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
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.
Vec3T< T > min(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Vec3T< T > max(const Vec3T< T > &lhs, const Vec3T< T > &rhs)