◆ ApplyConstraints()
void Glacier::ApplyConstraints |
( |
double | timeStep | ) |
|
|
overridevirtual |
Apply the constraints to the water container.
- Parameters
-
timeStep | time step for the simulation. |
Reimplemented from Brick.
◆ AttachFluxIn()
void Glacier::AttachFluxIn |
( |
Flux * | flux | ) |
|
|
overridevirtual |
Attach incoming flux.
- Parameters
-
Reimplemented from Brick.
◆ Finalize()
void Glacier::Finalize |
( |
| ) |
|
|
overridevirtual |
Finalize the water transfer.
Reimplemented from Brick.
◆ GetContent()
double Glacier::GetContent |
( |
const string & | type | ) |
|
|
overridevirtual |
Get the content of the water container.
- Parameters
-
type | type of the content (e.g., "water", "ice", or "snow"). |
- Returns
- content of the water container.
Reimplemented from Brick.
◆ GetDynamicContentChanges()
vecDoublePt Glacier::GetDynamicContentChanges |
( |
| ) |
|
|
overridevirtual |
Get pointers to the state variables.
- Returns
- vector of pointers to the state variables.
Reimplemented from Brick.
◆ GetIceContainer()
Get the ice container of the glacier.
- Returns
- The ice container of the glacier.
◆ GetValuePointer()
double * Glacier::GetValuePointer |
( |
const string & | name | ) |
|
|
overridevirtual |
Get the pointer to the water container content.
- Parameters
-
name | name of the container type (e.g., "water", "ice", or "snow"). |
Reimplemented from Brick.
◆ IsGlacier()
bool Glacier::IsGlacier |
( |
| ) |
|
|
inlineoverridevirtual |
Check if the brick is a glacier.
- Returns
- true if the brick is a glacier.
Reimplemented from Brick.
◆ IsOk()
Check that everything is correctly defined.
- Returns
- true is everything is correctly defined.
Reimplemented from Brick.
◆ Reset()
Reset the brick to its initial state.
Reimplemented from Brick.
◆ SaveAsInitialState()
void Glacier::SaveAsInitialState |
( |
| ) |
|
|
overridevirtual |
Save the current state of the brick as the initial state.
Reimplemented from Brick.
◆ SetInitialState()
void Glacier::SetInitialState |
( |
double | value, |
|
|
const string & | type ) |
|
overridevirtual |
Set the initial state of the water container.
- Parameters
-
value | initial state value. |
type | type of the content (e.g., "water", "ice", or "snow"). |
Reimplemented from Brick.
◆ SetParameters()
void Glacier::SetParameters |
( |
const BrickSettings & | brickSettings | ) |
|
|
overridevirtual |
Assign the parameters to the brick element.
- Parameters
-
brickSettings | settings of the brick containing the parameters. |
Reimplemented from Brick.
◆ SurfaceComponentAdded()
Called when a new surface component is added to the land cover.
- Parameters
-
brick | The surface component that was added. |
Reimplemented from LandCover.
◆ UpdateContent()
void Glacier::UpdateContent |
( |
double | value, |
|
|
const string & | type ) |
|
overridevirtual |
Update the content of the water container.
- Parameters
-
value | new content value. |
type | type of the content (e.g., "water", "ice", or "snow"). |
Reimplemented from Brick.
◆ UpdateContentFromInputs()
void Glacier::UpdateContentFromInputs |
( |
| ) |
|
|
overridevirtual |
Update the content of the water container from the inputs.
Reimplemented from Brick.
The documentation for this class was generated from the following files:
- /github/workspace/core/src/bricks/Glacier.h
- /github/workspace/core/src/bricks/Glacier.cpp