26 namespace deprecated {
210 virtual
bool preUpdate(
agx::Real timeStep) override;
213 virtual
bool store(
agxStream::StorageStream& str) const override;
216 virtual
bool restore(
agxStream::StorageStream& str) override;
232 agx::Real computeThrottleMassFlow();
238 agx::Real computeThrottleMassFlowDer();
246 void stepPressure(
agx::Real timeStep,
agx::Real angularVel);
253 void startEngine(
agx::Real timeStep);
257 agx::Real m_inletPressure;
260 agx::Real m_idleThrottle;
261 agx::Real m_maxThrottleAngle;
262 agx::Real m_throttleAngle;
263 agx::Real m_throttleBore;
264 agx::Real m_displacementVolume;
265 agx::Real m_loadConstant;
266 agx::Real m_nrRevolutionsPerCycle;
268 agx::Real m_inletVolume;
269 agx::Real m_inletTemp;
270 agx::Real m_ambientPressure;
271 agx::Real m_volumetricEfficiency;
272 agx::Real m_airGasConstant;
273 agx::Real m_dischargeCoefficient;
280 agx::Real m_startingTime;
281 agx::Real m_restInertia;
#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...
void setDisplacementVolume(agx::Real displacementVolume)
Set the total Displacement volume of engine cylinders in m^3.
agx::Real getVolumetricEfficiency() const
agx::Real getThrottle() const
bool setNrRevolutionsPerCycle(agx::Real nrRevolutionsPerCycle)
Set how many revolutions per cycle the engine cylinders have.
agx::Real getInletVolume() const
agx::Real getOutputTorque()
agx::Real getThrottleBore() const
void setEnable(bool enable)
Must be called to start the engine.
virtual void setInertia(agx::Real inertia) override
Set the inertia for the engine.
bool setMaxThrottleAngle(agx::Real throttleAngle)
Set the largest angle the throttle plate is allowed to have, i.e.
agx::Real getDisplacementVolume() const
bool setThrottleAngle(agx::Real throttleAngle)
Set the throttle plate angle directly, instead of percentage of throttle opening.
CombustionEngine(agx::Real displacementVolume)
Create an combustion engine.
bool setDischargeCoefficient(agx::Real dischargeCoefficient)
Set the discharge coefficient of the flow past the throttle.
bool setThrottle(agx::Real throttle)
Set the percentage that the throttle is open.
agx::Real getMaxThrottleAngle() const
bool setInletVolume(agx::Real inletVolume)
Set the inlet manifold volume of the engine.
virtual agx::Real getInertia() const override
Get the engine inertia.
bool setThrottleBore(agx::Real throttleBore)
Set the diameter of the throttle plate, which is assumed to be circular.
agx::Real getNrRevolutionsPerCycle() const
agx::Real getRPM() const
Get revolutions per minute.
bool setThrottleAngleRange(agx::Real min, agx::Real max)
Set the smallest and largest angle the throttle plate is allowed to have, i.e.
agx::Real getIdleThrottleAngle() const
bool setIdleThrottleAngle(agx::Real throttleAngle)
Set the idle throttle angle for the engine, i.e.
agx::Real getInletPressure() const
Get the current pressure in the inlet manifold, i.e.the pressure right before the cylinders.
agx::Real getDischargeCoefficient() const
agx::Real getThrottleAngle() const
bool setVolumetricEfficiency(agx::Real volumetricEfficiency)
Set the volumetric efficiency.
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.