|
WSF
|
#include <WsfSixDOF_FuelTank.hpp>


Public Member Functions | |
| FuelTank () | |
| ~FuelTank () | |
| FuelTank & | operator= (const FuelTank &other)=delete |
| FuelTank * | Clone () const |
| bool | ProcessInput (UtInput &aInput) |
| bool | Initialize (int64_t aSimTime_nanosec) |
| void | Update (int64_t aSimTime_nanosec) |
| const MassProperties & | GetMassProperties () const |
| void | SetPropulsionSystem (PropulsionSystem *aParent) |
| bool | FuelFlowPathIntact (const PropulsionSystem *aSystemDrawingFuel) |
| bool | CalculateFuelBurn (double aDeltaT_sec, double aFuelBurnRequest_lbs, double &aFuelActuallyProvided_lbs, double &aNewFuelMass_lbs, UtVec3dX &aCgLocation_ft) |
| bool | UpdateFuelBurn (double aDeltaT_sec, double aFuelBurnRequest_lbs, double &aFuelActuallyProvided_lbs, double &aNewFuelMass_lbs, UtVec3dX &aCgLocation_ft) |
| bool | CalculateFuelFill (double aDeltaT_sec, double aFuelAddRequest_lbs, double &aFuelActuallyProvided_lbs, double &aNewFuelMass_lbs, UtVec3dX &aCgLocation_ft) |
| bool | UpdateFuelFill (double aDeltaT_sec, double aFuelAddRequest_lbs, double &aFuelActuallyProvided_lbs, double &aNewFuelMass_lbs, UtVec3dX &aCgLocation_ft) |
| bool | CalculateFuelTransfer (double aDeltaT_sec, double aFuelAddRequest_lbs, double &aFuelActuallyProvided_lbs, double &aNewFuelMass_lbs, UtVec3dX &aCgLocation_ft) |
| bool | UpdateFuelTransfer (double aDeltaT_sec, double aFuelAddRequest_lbs, double &aFuelActuallyProvided_lbs, double &aNewFuelMass_lbs, UtVec3dX &aCgLocation_ft) |
| void | SetMaxFuelQuantity (double aFuelQuantity_lbs) |
| double | GetFuelCapacity_lbs () const |
| double | GetPercentFull () const |
| void | SetCurrentFuelQuantity (double aFuelQuantity_lbs) |
| double | GetCurrentFuelQuantity_lbs () const |
| double | GetFuelFraction () const |
| double | GetFuelFlow_pps () const |
| double | GetFuelFlow_pph () const |
| double | GetFuelFillRate_pps () const |
| double | GetFuelFillRate_pph () const |
| double | GetMaxFuelTransferRate_pps () const |
| double | GetFuelTransferRate_pps () const |
| double | GetFuelTransferRate_pph () const |
| void | SetFullCgLocation_ft (const UtVec3dX &aCgLocation_ft) |
| void | SetEmptyCgLocation_ft (const UtVec3dX &aCgLocation_ft) |
| UtVec3dX | GetCurrentCgLocation_ft () const |
| UtVec3dX | GetFullCgLocation_ft () const |
| UtVec3dX | GetEmptyCgLocation_ft () const |
| void | SetMaxFlowRate_pps (double aMaxFlowRate_pps) |
| void | CalculateCurrentMassProperties () |
| Public Member Functions inherited from wsf::six_dof::Object | |
| Object ()=default | |
| virtual | ~Object ()=default |
| virtual std::string | GetName () const |
| virtual void | SetName (const std::string &aName) |
| virtual Mover * | GetParentVehicle () const |
| virtual void | SetParentVehicle (Mover *aParentVehicle) |
Protected Member Functions | |
| FuelTank (const FuelTank &aSrc) | |
| UtVec3dX | CalcCgLocation_ft (double aFuelQuantity_lbs) |
| Protected Member Functions inherited from wsf::six_dof::Object | |
| Object (const Object &)=default | |
Protected Attributes | |
| PropulsionSystem * | mPropulsionSystem = nullptr |
| MassProperties | mMassProperties |
| double | mMaxFlowRate_pps = 0.0 |
| double | mMaxFillRate_pps = 0.0 |
| double | mMaxTransferRate_pps = 0.0 |
| double | mMaxQuantity_lbs = 0.0 |
| double | mCurrentFuelFlow_pps = 0.0 |
| double | mCurrentFillRate_pps = 0.0 |
| double | mCurrentTransferRate_pps = 0.0 |
| double | mCurrentQuantity_lbs = 0.0 |
| double | mTempCurrentFuelFlow_pps = 0.0 |
| double | mTempCurrentFillRate_pps = 0.0 |
| double | mTempCurrentTransferRate_pps = 0.0 |
| UtVec3dX | mCurrentCgLocation_ft |
| UtVec3dX | mFullCgLocation_ft |
| UtVec3dX | mEmptyCgLocation_ft |
| UtVec3dX | mCgEmptyToFullVector |
| int64_t | mLastSimTime_nanosec = 0 |
| Protected Attributes inherited from wsf::six_dof::Object | |
| std::string | mObjName = "" |
| Mover * | mParentVehicle = nullptr |
Friends | |
| class | PropulsionSystem |
|
explicit |
References mEmptyCgLocation_ft, mFullCgLocation_ft, wsf::six_dof::Object::Object(), SetEmptyCgLocation_ft(), and SetFullCgLocation_ft().
Referenced by Clone(), FuelTank(), operator=(), and PropulsionSystem.
| wsf::six_dof::FuelTank::~FuelTank | ( | ) |
|
explicitprotected |
References FuelTank(), mCurrentCgLocation_ft, mCurrentFillRate_pps, mCurrentFuelFlow_pps, mCurrentQuantity_lbs, mCurrentTransferRate_pps, mEmptyCgLocation_ft, mFullCgLocation_ft, mLastSimTime_nanosec, mMassProperties, mMaxFillRate_pps, mMaxFlowRate_pps, mMaxQuantity_lbs, mMaxTransferRate_pps, mPropulsionSystem, mTempCurrentFillRate_pps, mTempCurrentFuelFlow_pps, mTempCurrentTransferRate_pps, wsf::six_dof::Object::Object(), SetEmptyCgLocation_ft(), and SetFullCgLocation_ft().
|
protected |
References mCgEmptyToFullVector, mEmptyCgLocation_ft, and mMaxQuantity_lbs.
Referenced by CalculateCurrentMassProperties(), CalculateFuelBurn(), CalculateFuelFill(), CalculateFuelTransfer(), and ProcessInput().
| void wsf::six_dof::FuelTank::CalculateCurrentMassProperties | ( | ) |
References CalcCgLocation_ft(), mCurrentQuantity_lbs, and mMassProperties.
Referenced by wsf::six_dof::PropulsionSystem::GetMassProperties(), and Initialize().
| bool wsf::six_dof::FuelTank::CalculateFuelBurn | ( | double | aDeltaT_sec, |
| double | aFuelBurnRequest_lbs, | ||
| double & | aFuelActuallyProvided_lbs, | ||
| double & | aNewFuelMass_lbs, | ||
| UtVec3dX & | aCgLocation_ft ) |
References CalcCgLocation_ft(), wsf::six_dof::utils::cEPSILON_SIMTIME_SEC, mCurrentCgLocation_ft, mCurrentQuantity_lbs, and mMaxFlowRate_pps.
Referenced by UpdateFuelBurn().
| bool wsf::six_dof::FuelTank::CalculateFuelFill | ( | double | aDeltaT_sec, |
| double | aFuelAddRequest_lbs, | ||
| double & | aFuelActuallyProvided_lbs, | ||
| double & | aNewFuelMass_lbs, | ||
| UtVec3dX & | aCgLocation_ft ) |
References CalcCgLocation_ft(), wsf::six_dof::utils::cEPSILON_SIMTIME_SEC, mCurrentCgLocation_ft, mCurrentQuantity_lbs, mMaxFillRate_pps, and mMaxQuantity_lbs.
Referenced by UpdateFuelFill().
| bool wsf::six_dof::FuelTank::CalculateFuelTransfer | ( | double | aDeltaT_sec, |
| double | aFuelAddRequest_lbs, | ||
| double & | aFuelActuallyProvided_lbs, | ||
| double & | aNewFuelMass_lbs, | ||
| UtVec3dX & | aCgLocation_ft ) |
| wsf::six_dof::FuelTank * wsf::six_dof::FuelTank::Clone | ( | ) | const |
References FuelTank().
Referenced by operator=().
| bool wsf::six_dof::FuelTank::FuelFlowPathIntact | ( | const PropulsionSystem * | aSystemDrawingFuel | ) |
References wsf::six_dof::Mover::GetName(), wsf::six_dof::Object::GetName(), wsf::six_dof::Object::GetParentVehicle(), wsf::six_dof::Mover::GetSubobjectByName(), wsf::six_dof::Object::mParentVehicle, mPropulsionSystem, and PropulsionSystem.
Referenced by wsf::six_dof::PropulsionSystem::RemoveInvalidFuelTransfers().
| UtVec3dX wsf::six_dof::FuelTank::GetCurrentCgLocation_ft | ( | ) | const |
References mCurrentCgLocation_ft.
| double wsf::six_dof::FuelTank::GetCurrentFuelQuantity_lbs | ( | ) | const |
References mCurrentQuantity_lbs.
Referenced by wsf::six_dof::Mover::GetFuelInTank(), and wsf::six_dof::PropulsionSystem::Update().
| UtVec3dX wsf::six_dof::FuelTank::GetEmptyCgLocation_ft | ( | ) | const |
References mEmptyCgLocation_ft.
| double wsf::six_dof::FuelTank::GetFuelCapacity_lbs | ( | ) | const |
References mMaxQuantity_lbs.
Referenced by wsf::six_dof::Mover::GetFuelTankCapacity(), wsf::six_dof::Mover::SetFuelInTank_lbs(), and wsf::six_dof::PropulsionSystem::Update().
| double wsf::six_dof::FuelTank::GetFuelFillRate_pph | ( | ) | const |
References mCurrentFillRate_pps.
| double wsf::six_dof::FuelTank::GetFuelFillRate_pps | ( | ) | const |
References mCurrentFillRate_pps.
| double wsf::six_dof::FuelTank::GetFuelFlow_pph | ( | ) | const |
References mCurrentFuelFlow_pps.
| double wsf::six_dof::FuelTank::GetFuelFlow_pps | ( | ) | const |
References mCurrentFuelFlow_pps.
| double wsf::six_dof::FuelTank::GetFuelFraction | ( | ) | const |
References mCurrentQuantity_lbs, and mMaxQuantity_lbs.
| double wsf::six_dof::FuelTank::GetFuelTransferRate_pph | ( | ) | const |
References mCurrentTransferRate_pps.
| double wsf::six_dof::FuelTank::GetFuelTransferRate_pps | ( | ) | const |
References mCurrentTransferRate_pps.
| UtVec3dX wsf::six_dof::FuelTank::GetFullCgLocation_ft | ( | ) | const |
References mFullCgLocation_ft.
|
inline |
References mMassProperties.
Referenced by wsf::six_dof::PropulsionSystem::GetMassProperties().
| double wsf::six_dof::FuelTank::GetMaxFuelTransferRate_pps | ( | ) | const |
References mMaxTransferRate_pps.
Referenced by wsf::six_dof::PropulsionSystem::Update().
| double wsf::six_dof::FuelTank::GetPercentFull | ( | ) | const |
References mCurrentQuantity_lbs, and mMaxQuantity_lbs.
| bool wsf::six_dof::FuelTank::Initialize | ( | int64_t | aSimTime_nanosec | ) |
References CalculateCurrentMassProperties(), and mLastSimTime_nanosec.
Referenced by operator=().
References Clone(), FuelTank(), Initialize(), and ProcessInput().
| bool wsf::six_dof::FuelTank::ProcessInput | ( | UtInput & | aInput | ) |
References CalcCgLocation_ft(), mCurrentCgLocation_ft, mCurrentQuantity_lbs, mEmptyCgLocation_ft, mFullCgLocation_ft, mMaxFillRate_pps, mMaxFlowRate_pps, mMaxQuantity_lbs, mMaxTransferRate_pps, SetEmptyCgLocation_ft(), SetFullCgLocation_ft(), and wsf::six_dof::Object::SetName().
Referenced by operator=().
| void wsf::six_dof::FuelTank::SetCurrentFuelQuantity | ( | double | aFuelQuantity_lbs | ) |
References mCurrentQuantity_lbs.
Referenced by wsf::six_dof::PropulsionSystem::ModifyFuelQuantity(), and wsf::six_dof::Mover::SetFuelInTank_lbs().
| void wsf::six_dof::FuelTank::SetEmptyCgLocation_ft | ( | const UtVec3dX & | aCgLocation_ft | ) |
References mCgEmptyToFullVector, mEmptyCgLocation_ft, and mFullCgLocation_ft.
Referenced by FuelTank(), FuelTank(), and ProcessInput().
| void wsf::six_dof::FuelTank::SetFullCgLocation_ft | ( | const UtVec3dX & | aCgLocation_ft | ) |
References mCgEmptyToFullVector, mEmptyCgLocation_ft, and mFullCgLocation_ft.
Referenced by FuelTank(), FuelTank(), and ProcessInput().
|
inline |
References mMaxFlowRate_pps.
| void wsf::six_dof::FuelTank::SetMaxFuelQuantity | ( | double | aFuelQuantity_lbs | ) |
References mMaxQuantity_lbs.
|
inline |
References mPropulsionSystem, and PropulsionSystem.
| void wsf::six_dof::FuelTank::Update | ( | int64_t | aSimTime_nanosec | ) |
| bool wsf::six_dof::FuelTank::UpdateFuelBurn | ( | double | aDeltaT_sec, |
| double | aFuelBurnRequest_lbs, | ||
| double & | aFuelActuallyProvided_lbs, | ||
| double & | aNewFuelMass_lbs, | ||
| UtVec3dX & | aCgLocation_ft ) |
| bool wsf::six_dof::FuelTank::UpdateFuelFill | ( | double | aDeltaT_sec, |
| double | aFuelAddRequest_lbs, | ||
| double & | aFuelActuallyProvided_lbs, | ||
| double & | aNewFuelMass_lbs, | ||
| UtVec3dX & | aCgLocation_ft ) |
| bool wsf::six_dof::FuelTank::UpdateFuelTransfer | ( | double | aDeltaT_sec, |
| double | aFuelAddRequest_lbs, | ||
| double & | aFuelActuallyProvided_lbs, | ||
| double & | aNewFuelMass_lbs, | ||
| UtVec3dX & | aCgLocation_ft ) |
|
friend |
References FuelTank(), and PropulsionSystem.
Referenced by FuelFlowPathIntact(), PropulsionSystem, and SetPropulsionSystem().
|
protected |
Referenced by CalcCgLocation_ft(), SetEmptyCgLocation_ft(), and SetFullCgLocation_ft().
|
protected |
|
protected |
Referenced by FuelTank(), GetFuelFillRate_pph(), GetFuelFillRate_pps(), and Update().
|
protected |
Referenced by FuelTank(), GetFuelFlow_pph(), GetFuelFlow_pps(), and Update().
|
protected |
Referenced by CalculateCurrentMassProperties(), CalculateFuelBurn(), CalculateFuelFill(), CalculateFuelTransfer(), FuelTank(), GetCurrentFuelQuantity_lbs(), GetFuelFraction(), GetPercentFull(), ProcessInput(), SetCurrentFuelQuantity(), Update(), UpdateFuelBurn(), UpdateFuelFill(), and UpdateFuelTransfer().
|
protected |
Referenced by FuelTank(), GetFuelTransferRate_pph(), GetFuelTransferRate_pps(), and Update().
|
protected |
Referenced by CalcCgLocation_ft(), FuelTank(), FuelTank(), GetEmptyCgLocation_ft(), ProcessInput(), SetEmptyCgLocation_ft(), and SetFullCgLocation_ft().
|
protected |
Referenced by FuelTank(), FuelTank(), GetFullCgLocation_ft(), ProcessInput(), SetEmptyCgLocation_ft(), and SetFullCgLocation_ft().
|
protected |
Referenced by FuelTank(), Initialize(), and Update().
|
protected |
Referenced by CalculateCurrentMassProperties(), FuelTank(), and GetMassProperties().
|
protected |
Referenced by CalculateFuelFill(), FuelTank(), and ProcessInput().
|
protected |
Referenced by CalculateFuelBurn(), FuelTank(), ProcessInput(), and SetMaxFlowRate_pps().
|
protected |
|
protected |
Referenced by CalculateFuelTransfer(), FuelTank(), GetMaxFuelTransferRate_pps(), and ProcessInput().
|
protected |
Referenced by FuelFlowPathIntact(), FuelTank(), and SetPropulsionSystem().
|
protected |
Referenced by FuelTank(), Update(), and UpdateFuelFill().
|
protected |
Referenced by FuelTank(), Update(), and UpdateFuelBurn().
|
protected |
Referenced by FuelTank(), Update(), and UpdateFuelTransfer().