hydrobricks
Loading...
Searching...
No Matches
WaterContainer Class Reference
Inheritance diagram for WaterContainer:
IceContainer SnowContainer

Public Member Functions

 WaterContainer (Brick *brick)
 
virtual bool IsOk ()
 
void SubtractAmountFromDynamicContentChange (double change)
 
void AddAmountToDynamicContentChange (double change)
 
void AddAmountToStaticContentChange (double change)
 
virtual void ApplyConstraints (double timeSte)
 
void SetOutgoingRatesToZero ()
 
void Finalize ()
 
void Reset ()
 
void SaveAsInitialState ()
 
vecDoublePt GetDynamicContentChanges ()
 
bool HasMaximumCapacity () const
 
double GetMaximumCapacity ()
 
void SetMaximumCapacity (float *value)
 
void SetAsInfiniteStorage ()
 
double GetContentWithChanges () const
 
double GetContentWithDynamicChanges () const
 
double GetContentWithoutChanges () const
 
double * GetContentPointer ()
 
void UpdateContent (double value)
 
double GetTargetFillingRatio ()
 
bool IsNotEmpty ()
 
bool HasOverflow ()
 
void LinkOverflow (Process *overflow)
 
void AttachFluxIn (Flux *flux)
 
virtual double SumIncomingFluxes ()
 
virtual bool ContentAccessible () const
 
BrickGetParentBrick ()
 

Member Function Documentation

◆ AttachFluxIn()

void WaterContainer::AttachFluxIn ( Flux flux)
inline

Attach incoming flux.

Parameters
fluxincoming flux

◆ GetContentWithChanges()

double WaterContainer::GetContentWithChanges ( ) const
inline

Get the water content of the current object.

Returns
water content [mm]

◆ SumIncomingFluxes()

double WaterContainer::SumIncomingFluxes ( )
virtual

Sums the water amount from the different fluxes.

Returns
sum of the water amount [mm]

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