Marine systems simulation
FishPopulation Class Reference
+ Inheritance diagram for FishPopulation:
+ Collaboration diagram for FishPopulation:

Public Member Functions

 FishPopulation (std::string simObjectName, ISimObjectCreator *creator)
 The constructor sets the pointer to the output object and the parser object.
 
virtual ~FishPopulation ()
 The destructor deletes dynamically allocated memory.
 
virtual void OdeFcn (const double T, const double *const X, double *const XDot, const bool isMajorTimeStep)
 
virtual void InitialConditionSetup (const double T, const double *const currentIC, double *const updatedIC, ISimObjectCreator *const creator)
 
virtual void FinalSetup (const double T, const double *const X, ISimObjectCreator *const creator)
 
void PreOdeFcn (const double T, const double *const X, IStateUpdater *updater)
 
bool GetRayIntersection (const Eigen::Vector3d &rayOrigin, const Eigen::Vector3d &rayVector, double &outDistance)
 
virtual const double * DragForceNet (const double T, const double *const X)
 
virtual const double * DragForceSkirt (const double T, const double *const X)
 
virtual const double * DragForceDepth (const double T, const double *const X)
 
virtual const double * TopOutForceNet (const double T, const double *const X, int iTop)
 
virtual const double * BotOutPosition (const double T, const double *const X)
 
virtual const double * RingOutPosition (const double T, const double *const X)
 
virtual const double * NetOutPosition (const double T, const double *const X)
 
virtual const double * NetOutPositionMat (const double T, const double *const X, int iIndex)
 
virtual const double * IngestionNumber (const double T, const double *const X)
 
virtual const double * ObstacleOutPosition (const double T, const double *const X)
 
virtual const double * ObstacleOutNormal (const double T, const double *const X)
 
virtual const double * ObstacleOutDistance (const double T, const double *const X)
 
virtual const double * ObstacleOutGuidance (const double T, const double *const X)
 
virtual const double * ObstacleOutEtaReference (const double T, const double *const X)
 
virtual const double * ObstacleOutVelocity (const double T, const double *const X)
 
virtual const double * ObstacleOutVertical (const double T, const double *const X)
 
virtual const double * TopBodyForce (const double T, const double *const X)
 
virtual const double * PortOutForceNet (const double T, const double *const X, int iCon)
 
virtual const double * PortOutPositionNet (const double T, const double *const X, int iCon)
 
virtual const double * PortOutVelocityNet (const double T, const double *const X, int iCon)
 
virtual const double * PortOutCageVolume (const double T, const double *const X)
 
virtual const double * PortOutCD (const double T, const double *const X, int iCon)
 
virtual const double * BotOutVelocity (const double T, const double *const X)
 
virtual const double * CageTopCentre (const double T, const double *const X)
 
virtual const double * FishDensity (const double T, const double *const X)
 
virtual const double * FishSpeed (const double T, const double *const X)
 
virtual const double * FishSpeedRel (const double T, const double *const X)
 
virtual const double * RingOutForce (const double T, const double *const X, int iIndex)
 
virtual const double * NetTrackOutPosition (const double T, const double *const X)
 
virtual const double * ChainOutForce (const double T, const double *const X, int iIndex)
 
virtual const double * OutCageWakePos (const double T, const double *const X)
 
virtual const double * NetCDFOutput (const double T, const double *const X)
 

Public Attributes

CNCFieldm_ncField
 
double m_ncInput [3]
 
double m_ncOutput [3]
 

Protected Member Functions

virtual const double * PortOutCageNodePos (const double T, const double *const X, int index)
 

Protected Attributes

CPrintDuringExec * m_logger
 
int m_baseStateIndex
 
int m_totalNumberOfPelletsEaten
 
FishResources m_resources
 
std::mt19937 m_rng
 
std::vector< Fish::IndividualFishm_individuals
 
std::vector< Fish::IndividualFishtemp_individuals
 
bool m_useTemperatureAndLight
 
double m_fractionOfWaveVelAddedToMovementAsBias
 
long m_totalIngestionAttempts
 
long m_successfulIngestionAttempts
 
std::vector< int > m_ingestionList
 
double m_DisOutTimeInt
 
std::string m_DisOutFile
 
int m_DisOutNum
 
double m_DisOutStart
 
double m_DisOutStop
 
double m_IngestionNumber [2]
 
int m_ObstacleNum
 
double m_ObstacleCirRate
 
double m_ObstacleCirVel
 
double m_ObstacleVerVel [2]
 
double m_ObstacleDisTK
 
double m_ObstacleDepTK
 
double m_ObstacleDepGR
 
double m_ObstacleRefDT
 
ISignalPort * m_ObstacleInPos
 
ISignalPort * m_ObstacleInVel
 
double m_ObstacleOutP [3]
 
double m_ObstacleOutN [3]
 
double m_ObstacleOutD
 
double m_ObstacleOutG [3]
 
double m_ObstacleOutV [3]
 
double m_ObstacleOutVV [3]
 
double m_ObstacleOutGR [4]
 
int m_FishObstNum
 
Fish::vec3 m_FishObstVel
 
double m_UpdateStepSize
 
int m_UpdateNum
 
double m_FishInitialPos [4]
 
std::vector< int > m_FishID
 
double m_SchoolVar [2]
 
Fish::vec3 m_SchoolVarP
 
Fish::vec3 m_SchoolVarN
 
bool m_BoolFishInVel
 
ISignalPort * m_FishInVelN
 
ISignalPort * m_FishInVelE
 
ISignalPort * m_FishInVelD
 
ISignalPort * m_FishInVelC
 
bool m_BoolFishInWave
 
ISignalPort * m_FishInWaveHm
 
ISignalPort * m_FishInWaveTm
 
double m_OutFishDensityGrid
 
int m_OutDataNum [4]
 
double * m_OutFishDensityData
 
double m_OutFishDensity [4]
 
double m_OutFishSpeed [3]
 
double m_OutFishSpeedRel [3]
 
double m_MeanWeight
 
double m_debStaTime
 
bool m_OutCageNode
 
double * m_OutCageNodePos
 
double m_CageWakePos [3]
 
double m_prev_time = 0.0
 

The documentation for this class was generated from the following file: