AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
agxDriveTrain/EnergyManager.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17
18#pragma once
19
20#include <agxModel/export.h>
21#include <agx/Real.h>
22
23// Forward declarations
24
25namespace agxSDK {
26 class Simulation;
27}
28
29#ifndef SWIG
30namespace agxDriveTrain
31{
32 class ElectricMotor;
33 class CombustionEngine;
34 class Engine;
35 class FixedVelocityEngine;
36}
37#endif
38
39namespace agxDriveTrain
40{
42 {
43 public:
44
51 static void add( const agxDriveTrain::ElectricMotor* motor, const agxSDK::Simulation* simulation = nullptr );
52
59 static void add( const agxDriveTrain::CombustionEngine* motor, const agxSDK::Simulation* simulation = nullptr );
60
67 static void add( const agxDriveTrain::Engine* motor, const agxSDK::Simulation* simulation = nullptr );
68
75 static void add( const agxDriveTrain::FixedVelocityEngine* motor, const agxSDK::Simulation* simulation = nullptr );
76
83 static void remove( const agxDriveTrain::ElectricMotor* motor, const agxSDK::Simulation* simulation = nullptr );
84
91 static void remove( const agxDriveTrain::CombustionEngine* motor, const agxSDK::Simulation* simulation = nullptr );
92
99 static void remove( const agxDriveTrain::Engine* motor, const agxSDK::Simulation* simulation = nullptr );
100
108 const agxSDK::Simulation* simulation = nullptr );
109
116
123
130
137
144
151
158
165
166 private:
167 EnergyManager() = default;
168 };
169}
#define AGXMODEL_EXPORT
The model of the combustion engine consists of two subsystems: namely, the intake manifold dynamics a...
An electric motor is a roational unit that is a source of power in a drive train.
static agx::Real getWorkDone(const agxDriveTrain::ElectricMotor *motor)
Get the work done by an electric motor.
static agx::Real getPower(const agxDriveTrain::ElectricMotor *motor)
Get the power for an electric motor.
static void remove(const agxDriveTrain::FixedVelocityEngine *motor, const agxSDK::Simulation *simulation=nullptr)
Removes an fixed velocity engine from the EnergyManager.
static agx::Real getPower(const agxDriveTrain::CombustionEngine *motor)
Get the power for a combustion engine.
static agx::Real getWorkDone(const agxDriveTrain::CombustionEngine *motor)
Get the work done by a combustion engine.
static void remove(const agxDriveTrain::ElectricMotor *motor, const agxSDK::Simulation *simulation=nullptr)
Removes an electric motor from the EnergyManager.
static void add(const agxDriveTrain::FixedVelocityEngine *motor, const agxSDK::Simulation *simulation=nullptr)
Adds an fixed velocity engine to the EnergyManager.
static agx::Real getWorkDone(const agxDriveTrain::FixedVelocityEngine *motor)
Get the work done by a fixed velocity engine.
static void remove(const agxDriveTrain::Engine *motor, const agxSDK::Simulation *simulation=nullptr)
Removes an engine from the EnergyManager.
static void add(const agxDriveTrain::CombustionEngine *motor, const agxSDK::Simulation *simulation=nullptr)
Adds an combustion engine to the EnergyManager.
static void add(const agxDriveTrain::Engine *motor, const agxSDK::Simulation *simulation=nullptr)
Adds an engine to the EnergyManager.
static agx::Real getPower(const agxDriveTrain::Engine *motor)
Get the power for an engine.
static agx::Real getWorkDone(const agxDriveTrain::Engine *motor)
Get the work done by an engine.
static void add(const agxDriveTrain::ElectricMotor *motor, const agxSDK::Simulation *simulation=nullptr)
Adds an electric motor to the EnergyManager.
static agx::Real getPower(const agxDriveTrain::FixedVelocityEngine *motor)
Get the power for a fixed velocity engine.
static void remove(const agxDriveTrain::CombustionEngine *motor, const agxSDK::Simulation *simulation=nullptr)
Removes a combustion engine from the EnergyManager.
An engine that is driven by an EnginePowerGenerator.
Definition Engine.h:88
An engine that tries to hold a fixed velocity.
Definition Engine.h:425
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition Constraint.h:31
double Real
Definition Real.h:42