|
AGXDynamics
2.31.1.0
|
#include <CombustionEngine.h>
Inheritance diagram for agxDriveTrain::CombustionEngine:Public Member Functions | |
| CombustionEngine (agx::Real displacementVolume) | |
| Create an combustion engine. More... | |
| virtual bool | addNotification (agxSDK::Simulation *simulation)=0 |
| void | addNotification (agxPowerLine::PowerLine *powerLine) |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph) | |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Unit) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| void | attach (agx::RigidBody *body) |
| Define which body in the simulation this Unit is attached to. More... | |
| agx::String | buildDimensionsName () const |
| virtual bool | connect (agxPowerLine::Connector *connector) |
| Connect the unit to a connector. More... | |
| virtual bool | connect (agxPowerLine::Side mySide, agxPowerLine::Side connectorSide, agxPowerLine::Connector *connector) |
| Connect the unit to a connector, specifying the side of each. More... | |
| virtual bool | connect (agxPowerLine::Unit *otherUnit) |
| Connect the unit to another unit. More... | |
| virtual bool | connect (agxPowerLine::Side mySide, agxPowerLine::Side otherSide, agxPowerLine::Unit *other) |
| virtual bool | disconnect (agxPowerLine::Unit *unit) |
| void | disconnectAll () |
| agxPowerLine::PhysicalDimension * | getActiveDimension (size_t index) |
| const agxPowerLine::PhysicalDimension * | getActiveDimension (size_t index) const |
| agx::Real | getAngularVelocity () const |
| returns the number of radians per second More... | |
| const char * | getClassName () const override |
| virtual agxPowerLine::DimensionAndSide | getConnectableDimension (agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) |
| virtual void | getConnectableDimensionTypes (agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const |
| agxPowerLine::PhysicalDimension * | getConnectableInputDimension (agxPowerLine::PhysicalDimension::Type type) |
| agxPowerLine::PhysicalDimension * | getConnectableOutputDimension (agxPowerLine::PhysicalDimension::Type type) |
| void | getConnectedUnits (UnitPtrSetVector &result, agxPowerLine::Side side) |
| size_t | getConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result) |
| Append all connectors connecting this Unit to the given Unit to the 'result' Vector. More... | |
| size_t | getConnectors (agxPowerLine::ConnectorPtrVector &result) const |
| virtual void | getConnectorsRecursive (ConnectorPtrVector &connectors) |
| Fill the given vector with the Connectors that are held by this SubGraph. More... | |
| virtual agx::Real | getDeliveredTorque () const |
| returns the amount of torque delivered from the rotational dimension More... | |
| agxPowerLine::PhysicalDimension * | getDimension (agxPowerLine::PhysicalDimension::Type type) |
| const agxPowerLine::PhysicalDimension * | getDimension (agxPowerLine::PhysicalDimension::Type type) const |
| const agxPowerLine::PhysicalDimensionRefVector & | getDimensions () const |
| agxPowerLine::PhysicalDimensionRefVector & | getDimensions () |
| virtual agx::Vec3 | getDirection () const |
| returns a vector in world coordinates that defines the rotational axis of the rotational unit. More... | |
| agx::Real | getDischargeCoefficient () const |
| agx::Real | getDisplacementVolume () const |
| bool | getEnable () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| Connector * | getEnclosingConnector () |
| const Connector * | getEnclosingConnector () const |
| SubGraph * | getEnclosingGraph () |
| const SubGraph * | getEnclosingGraph () const |
| Unit * | getEnclosingUnit () |
| const Unit * | getEnclosingUnit () const |
| Connector * | getFirstInputConnector (const agxPowerLine::Unit *unit) const |
| Connector * | getFirstOutputConnector (const agxPowerLine::Unit *unit) const |
| agx::Real | getIdleThrottleAngle () const |
| bool | getIgnoreForStoreRestoreStream () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| virtual agx::Real | getInertia () const override |
| Get the engine inertia. More... | |
| agx::Real | getInletPressure () const |
| Get the current pressure in the inlet manifold, i.e.the pressure right before the cylinders. More... | |
| agx::Real | getInletVolume () const |
| size_t | getInputConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result) |
| size_t | getInputConnectors (agxPowerLine::ConnectorPtrVector &result) const |
| const agxPowerLine::ConnectorRefVector & | getInternalConnectors () const |
| const agxPowerLine::UnitRefVector & | getInternalUnits () const |
| agx::Real | getMaxThrottleAngle () const |
| const agx::Name & | getName () const |
| agx::Real | getNrRevolutionsPerCycle () const |
| size_t | getNumActiveDimensions () const |
| The number of non-null PhysicalDimension in this Unit, not including internal Units. More... | |
| virtual size_t | getNumConnectableDimensions (Side side) const |
| size_t | getNumConnections () const |
| size_t | getOutputConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result) |
| size_t | getOutputConnectors (agxPowerLine::ConnectorPtrVector &result) const |
| agx::Real | getOutputTorque () |
| void | getOwnConnectedUnits (UnitPtrSetVector &unitSet, bool startFromCleanUnitSet=true) const |
| Constructs the set of Units connected to this Unit's own dimensions. More... | |
| void | getOwnConnectedUnits (UnitPtrSetVector &unitSet, agxPowerLine::Side side, bool startFromCleanUnitSet=true) const |
| agxPowerLine::PowerLine * | getPowerLine () const |
| int | getReferenceCount () const |
| agxPowerLine::Unit * | getRoot () const |
| SubGraph * | getRootEnclosingGraph () |
| const SubGraph * | getRootEnclosingGraph () const |
| agxPowerLine::RotationalDimension * | getRotationalDimension () const |
| returns a pointer to the rotational dimension More... | |
| agx::Real | getRPM () const |
| Get revolutions per minute. More... | |
| agxPowerLine::Side | getSide (const Connector *connector) const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| agx::Real | getThrottle () const |
| agx::Real | getThrottleAngle () const |
| agx::Real | getThrottleBore () const |
| virtual void | getUnitsRecursive (UnitPtrVector &units) |
| Fill the given vector with the Units that are held by this SubGraph. More... | |
| agx::Uuid | getUuid () const |
| agx::Real | getVolumetricEfficiency () const |
| bool | hasConnector (const Connector *connector) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| virtual bool | isConnected (agxPowerLine::Unit *otherUnit) const |
| bool | isEnclosedWithin (const SubGraph *component) const |
| bool | isFinished () const |
| virtual bool | isValid () const |
| virtual bool | postRestore (agxStream::StorageStream &str) |
| virtual bool | postStore (agxStream::StorageStream &str) const |
| virtual bool | postUpdate (agx::Real timeStep) override |
| virtual void | prepareForRestore () |
| virtual void | prepareForStore () |
| virtual bool | preUpdate (agx::Real timeStep) override |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| virtual bool | removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation)=0 |
| void | removeNotification (agxPowerLine::PowerLine *powerLine) |
| virtual bool | restore (agxStream::StorageStream &str) override |
| Restores internal data from stream. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| void | setAngularVelocityDamping (agx::Real damping) |
| set the angular velocity damping around the local axis (direction) More... | |
| bool | setDischargeCoefficient (agx::Real dischargeCoefficient) |
| Set the discharge coefficient of the flow past the throttle. More... | |
| void | setDisplacementVolume (agx::Real displacementVolume) |
| Set the total Displacement volume of engine cylinders in m^2. More... | |
| void | setEnable (bool enable) |
| Must be called to start the engine. More... | |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| bool | setIdleThrottleAngle (agx::Real throttleAngle) |
| Set the idle throttle angle for the engine, i.e. More... | |
| virtual void | setInertia (agx::Real inertia) override |
| Set the inertia for the engine. More... | |
| bool | setInletVolume (agx::Real inletVolume) |
| Set the inlet manifold volume of the engine. More... | |
| bool | setMaxThrottleAngle (agx::Real throttleAngle) |
| Set the largest angle the throttle plate is allowed to have, i.e. More... | |
| void | setName (const agx::Name &name) |
| Set the name of this power line component. More... | |
| bool | setNrRevolutionsPerCycle (agx::Real nrRevolutionsPerCycle) |
| Set how many revolutions per cycle the engine cylinders have. More... | |
| void | setRoot (agxPowerLine::Unit *root) |
| bool | setThrottle (agx::Real throttle) |
| Set the percentage that the throttle is open. More... | |
| bool | setThrottleAngle (agx::Real throttleAngle) |
| Set the throttle plate angle directly, instead of percentage of throttle opening. More... | |
| bool | setThrottleAngleRange (agx::Real min, agx::Real max) |
| Set the smallest and largest angle the throttle plate is allowed to have, i.e. More... | |
| bool | setThrottleBore (agx::Real throttleBore) |
| Set the diameter of the throttle plate, which is assumed to be circular. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| bool | setVolumetricEfficiency (agx::Real volumetricEfficiency) |
| Set the volumetric efficiency. More... | |
| void | spreadPowerLineToGraph () |
| void | spreadRootToGraph () |
| virtual bool | store (agxStream::StorageStream &str) const override |
| Stores internal data into stream. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| virtual bool | vetoConnect (agxPowerLine::Connector *connector) const |
Static Public Member Functions | |
| static agx::Real | convertAngularVelocityToRPM (const agx::Real angVel) |
| Convert between m/s and rpm. More... | |
| static agx::Real | convertRPMtoAngularVelocity (const agx::Real rpm) |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| CombustionEngine ()=default | |
| virtual | ~CombustionEngine () |
| bool | activateDimension (PhysicalDimension *dimension) |
| void | addInternalConnector (agxPowerLine::Connector *connector) |
| void | addInternalUnit (agxPowerLine::Unit *unit) |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
| virtual bool | hasValidInputConnection () const |
| returns if it is possible to connect to this unit More... | |
| void | removeInternalConnector (agxPowerLine::Connector *connector) |
| void | removeInternalUnit (agxPowerLine::Unit *unit) |
| agx::Bool | replaceInternalUnit (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit) |
| void | restorePre46 (agxStream::InputArchive &in) |
| void | setPowerLine (PowerLine *powerLine) |
| Point to the power line the unit is a part of. More... | |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| agx::observer_ptr< agx::RigidBody > | m_attachBody |
| PhysicalDimensionRefVector | m_dimensions |
| SubGraphObserver | m_enclosingGraph |
| bool | m_ignoreMeForStoreRestoreStream |
| ConnectorRefVector | m_internalConnectors |
| UnitRefVector | m_internalUnits |
| Mutex | m_mutex |
| agx::Name | m_name |
| ObserverContainer | m_observers |
| PowerLine * | m_powerLine |
| AtomicValue | m_refCount |
| agxPowerLine::Unit * | m_rootUnit |
| RotationalDimensionRef | m_rotationalDimension |
Definition at line 26 of file CombustionEngine.h.
| agxDriveTrain::CombustionEngine::CombustionEngine | ( | agx::Real | displacementVolume | ) |
Create an combustion engine.
| displacementVolume | - the total displacement volume of the engine, which is the volume the pistons displace in the cylinder. Throttle bore, inlet volume are derived from the displacement volume as a default value. If you want more specific values for those parameters, you have to set them specifically. |
|
protecteddefault |
|
protectedvirtual |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
pure virtualinherited |
Implemented in agxDriveTrain::ElectricMotor, agxDriveTrain::Clutch, and agxPowerLine::Connector.
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
inherited |
Define which body in the simulation this Unit is attached to.
If the body is nullptr the Unit is attached to world. This will override any parent body set to the power line the unit is a part of.
|
inherited |
|
virtualinherited |
Connect the unit to a connector.
| connector | - a connector |
|
virtualinherited |
Connect the unit to a connector, specifying the side of each.
| mySide | - The side on this unit to connect. |
| connectorSide | - The side on the connector to connect. |
| connector | - The connector to connect. |
|
virtualinherited |
Connect the unit to another unit.
| otherUnit | - another unit. |
|
virtualinherited |
|
staticinherited |
Convert between m/s and rpm.
|
staticinherited |
|
inlinestaticinherited |
Definition at line 102 of file RotationalUnit.h.
|
inlinestaticinherited |
Definition at line 102 of file RotationalUnit.h.
|
protectedinherited |
|
virtualinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
returns the number of radians per second
|
inlineoverridevirtualinherited |
Reimplemented from agxStream::Serializable.
Definition at line 102 of file RotationalUnit.h.
|
virtualinherited |
Reimplemented in agxPowerLine::TranslationalActuator, agxHydraulics::PistonActuator, agxPowerLine::Actuator, agxHydraulics::Accumulator, agxHydraulics::deprecated::PumpUnit, agxHydraulics::deprecated::MotorUnit, agxDriveTrain::deprecated::DriveTrainComponent, and agxPowerLine::Actuator1DOF.
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Append all connectors connecting this Unit to the given Unit to the 'result' Vector.
Returns the index of the first Connector added. Will be one-past-end (result.size()) if no connectors are added.
|
inherited |
|
virtualinherited |
Fill the given vector with the Connectors that are held by this SubGraph.
The collection is recursive, so internal Connectors will be collected.
Reimplemented in agxDriveTrain::Differential, and agxDriveTrain::deprecated::DriveTrainComponent.
|
inlinestaticinherited |
Definition at line 102 of file RotationalUnit.h.
|
staticprotectedinherited |
|
virtualinherited |
returns the amount of torque delivered from the rotational dimension
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
returns a vector in world coordinates that defines the rotational axis of the rotational unit.
| agx::Real agxDriveTrain::CombustionEngine::getDischargeCoefficient | ( | ) | const |
| agx::Real agxDriveTrain::CombustionEngine::getDisplacementVolume | ( | ) | const |
| bool agxDriveTrain::CombustionEngine::getEnable | ( | ) | const |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| agx::Real agxDriveTrain::CombustionEngine::getIdleThrottleAngle | ( | ) | const |
|
inherited |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
|
overridevirtual |
Get the engine inertia.
Reimplemented from agxPowerLine::RotationalUnit.
| agx::Real agxDriveTrain::CombustionEngine::getInletPressure | ( | ) | const |
Get the current pressure in the inlet manifold, i.e.the pressure right before the cylinders.
| agx::Real agxDriveTrain::CombustionEngine::getInletVolume | ( | ) | const |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| agx::Real agxDriveTrain::CombustionEngine::getMaxThrottleAngle | ( | ) | const |
|
inherited |
| agx::Real agxDriveTrain::CombustionEngine::getNrRevolutionsPerCycle | ( | ) | const |
|
inherited |
The number of non-null PhysicalDimension in this Unit, not including internal Units.
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
| agx::Real agxDriveTrain::CombustionEngine::getOutputTorque | ( | ) |
|
inherited |
Constructs the set of Units connected to this Unit's own dimensions.
Does not consider internal units.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
returns a pointer to the rotational dimension
| agx::Real agxDriveTrain::CombustionEngine::getRPM | ( | ) | const |
Get revolutions per minute.
|
inherited |
|
inlineoverridevirtualinherited |
Implements agxStream::Serializable.
Definition at line 102 of file RotationalUnit.h.
| agx::Real agxDriveTrain::CombustionEngine::getThrottle | ( | ) | const |
| agx::Real agxDriveTrain::CombustionEngine::getThrottleAngle | ( | ) | const |
| agx::Real agxDriveTrain::CombustionEngine::getThrottleBore | ( | ) | const |
|
virtualinherited |
Fill the given vector with the Units that are held by this SubGraph.
The collection is recursive, so internal Units will be collected.
Reimplemented in agxDriveTrain::deprecated::DriveTrainComponent.
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
| agx::Real agxDriveTrain::CombustionEngine::getVolumetricEfficiency | ( | ) | const |
|
inherited |
|
protectedvirtualinherited |
returns if it is possible to connect to this unit
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
virtualinherited |
|
inherited |
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
|
virtualinherited |
|
virtualinherited |
Reimplemented in agxDriveTrain::ElectricMotor.
|
virtualinherited |
Reimplemented in agxDriveTrain::ElectricMotor.
|
overridevirtualinherited |
Reimplemented from agxPowerLine::SubGraph.
|
virtualinherited |
Reimplemented in agxPowerLine::WireWinchActuator.
|
virtualinherited |
Reimplemented in agxPowerLine::WireWinchActuator.
|
overridevirtualinherited |
Reimplemented from agxPowerLine::SubGraph.
Reimplemented in agxDriveTrain::PidControlledEngine, agxDriveTrain::deprecated::GearBox, agxDriveTrain::deprecated::FixedGear, agxDriveTrain::Engine, agxDriveTrain::ElectricMotor, and agxDriveTrain::Shaft.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
protectedinherited |
|
protectedinherited |
|
pure virtualinherited |
|
inherited |
|
protectedinherited |
|
overridevirtualinherited |
Restores internal data from stream.
Reimplemented from agxPowerLine::Unit.
Reimplemented in agxDriveTrain::PidControlledEngine, agxDriveTrain::deprecated::Clutch, agxDriveTrain::deprecated::GearBox, agxDriveTrain::deprecated::FixedGear, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::deprecated::HighLevelGearBox, agxDriveTrain::Engine, agxDriveTrain::ElectricMotor, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::deprecated::DriveTrainComponent, and agxDriveTrain::Shaft.
|
overridevirtualinherited |
Reimplemented from agxPowerLine::Unit.
Reimplemented in agxDriveTrain::PidControlledEngine, agxDriveTrain::deprecated::Clutch, agxDriveTrain::deprecated::GearBox, agxDriveTrain::deprecated::FixedGear, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::deprecated::HighLevelGearBox, agxDriveTrain::Engine, agxDriveTrain::ElectricMotor, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::deprecated::DriveTrainComponent, and agxDriveTrain::Shaft.
|
protectedinherited |
set the angular velocity damping around the local axis (direction)
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| bool agxDriveTrain::CombustionEngine::setDischargeCoefficient | ( | agx::Real | dischargeCoefficient | ) |
Set the discharge coefficient of the flow past the throttle.
It describes the ratio between the mass flow rate at the discharge end to that of the ideal mass flow at the discharge.
| dischargeCoefficient | - value between 0 and 1 that. 1 means that the flow is ideal. |
Set the total Displacement volume of engine cylinders in m^2.
| void agxDriveTrain::CombustionEngine::setEnable | ( | bool | enable | ) |
Must be called to start the engine.
| enable | - true to start the engine, false turns it off. |
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
| bool agxDriveTrain::CombustionEngine::setIdleThrottleAngle | ( | agx::Real | throttleAngle | ) |
Set the idle throttle angle for the engine, i.e.
the smallest angle the throttle can have when the engine is running.
| throttleAngle | - angle for idle throttle, must be larger than 0 and smaller than maximum throttle angle |
Set the inertia for the engine.
Reimplemented from agxPowerLine::RotationalUnit.
| bool agxDriveTrain::CombustionEngine::setInletVolume | ( | agx::Real | inletVolume | ) |
Set the inlet manifold volume of the engine.
| inletVolume | - inlet manifold volume in m^2, which must be larger than 0. |
| bool agxDriveTrain::CombustionEngine::setMaxThrottleAngle | ( | agx::Real | throttleAngle | ) |
Set the largest angle the throttle plate is allowed to have, i.e.
the angle is has when the engine has full gas.
| throttleAngle | - maximum throttle angle, must be smaller than pi/2 rad and larger than idle throttle angle. |
Set the name of this power line component.
| name | - The new name. |
| bool agxDriveTrain::CombustionEngine::setNrRevolutionsPerCycle | ( | agx::Real | nrRevolutionsPerCycle | ) |
Set how many revolutions per cycle the engine cylinders have.
| nrRevolutionsPerCycle | - 1 for two-stroke engine, 2 for four-stroke engine |
Point to the power line the unit is a part of.
|
inherited |
| bool agxDriveTrain::CombustionEngine::setThrottle | ( | agx::Real | throttle | ) |
Set the percentage that the throttle is open.
| throttle | - 0 means no gas (idle), 1 means full gas. |
| bool agxDriveTrain::CombustionEngine::setThrottleAngle | ( | agx::Real | throttleAngle | ) |
Set the throttle plate angle directly, instead of percentage of throttle opening.
| throttleAngle | - angle in radians. Cannot be smaller than idle throttle and must be smaller than pi/2. |
Set the smallest and largest angle the throttle plate is allowed to have, i.e.
the angle at idle and the angle at full gas.
| min | - angle for idle throttle, must be larger than 0 and smaller than maximum angle |
| max | - maximum throttle angle, must be smaller than pi/2 rad and larger than minimum angle |
| bool agxDriveTrain::CombustionEngine::setThrottleBore | ( | agx::Real | throttleBore | ) |
Set the diameter of the throttle plate, which is assumed to be circular.
| throttleBore | - throttle bore given in meters, which must be larger than 0. |
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
| bool agxDriveTrain::CombustionEngine::setVolumetricEfficiency | ( | agx::Real | volumetricEfficiency | ) |
Set the volumetric efficiency.
It describes the ratio of air volume drawn into the cylinders to the volume the cylinder sweeps, the displacement volume.
| volumetricEfficiency | - the volumetric efficiency. Should be a value between 0 and 1. |
|
inherited |
|
inherited |
|
overridevirtualinherited |
Stores internal data into stream.
Reimplemented from agxPowerLine::Unit.
Reimplemented in agxDriveTrain::PidControlledEngine, agxDriveTrain::deprecated::Clutch, agxDriveTrain::deprecated::GearBox, agxDriveTrain::deprecated::FixedGear, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::deprecated::HighLevelGearBox, agxDriveTrain::Engine, agxDriveTrain::ElectricMotor, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::deprecated::DriveTrainComponent, and agxDriveTrain::Shaft.
|
overridevirtualinherited |
Reimplemented from agxPowerLine::Unit.
Reimplemented in agxDriveTrain::PidControlledEngine, agxDriveTrain::deprecated::Clutch, agxDriveTrain::deprecated::GearBox, agxDriveTrain::deprecated::FixedGear, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::deprecated::HighLevelGearBox, agxDriveTrain::Engine, agxDriveTrain::ElectricMotor, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::deprecated::DriveTrainComponent, and agxDriveTrain::Shaft.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
virtualinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Definition at line 162 of file SubGraph.h.
|
protectedinherited |
|
protectedinherited |
Definition at line 164 of file SubGraph.h.
|
protectedinherited |
Definition at line 163 of file SubGraph.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protectedinherited |
Definition at line 166 of file SubGraph.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protectedinherited |
Definition at line 165 of file SubGraph.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protectedinherited |
|
protectedinherited |
Definition at line 108 of file RotationalUnit.h.