◆ ApplyConstraints()
void Snowpack::ApplyConstraints |
( |
double | timeStep | ) |
|
|
overridevirtual |
Apply the constraints to the water container.
- Parameters
-
timeStep | time step for the simulation. |
Reimplemented from Brick.
◆ AttachFluxIn()
void Snowpack::AttachFluxIn |
( |
Flux * | flux | ) |
|
|
overridevirtual |
Attach incoming flux.
- Parameters
-
Reimplemented from Brick.
◆ Finalize()
void Snowpack::Finalize |
( |
| ) |
|
|
overridevirtual |
Finalize the water transfer.
Reimplemented from Brick.
◆ GetContent()
double Snowpack::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 Snowpack::GetDynamicContentChanges |
( |
| ) |
|
|
overridevirtual |
Get pointers to the state variables.
- Returns
- vector of pointers to the state variables.
Reimplemented from Brick.
◆ GetSnowContainer()
Get the snow container.
- Returns
- A pointer to the snow container.
◆ GetValuePointer()
double * Snowpack::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.
◆ HasSnow()
bool Snowpack::HasSnow |
( |
| ) |
|
Check if the snowpack has snow.
- Returns
- True if the snowpack has snow, false otherwise.
◆ IsOk()
Check that everything is correctly defined.
- Returns
- true is everything is correctly defined.
Reimplemented from Brick.
◆ IsSnowpack()
bool Snowpack::IsSnowpack |
( |
| ) |
|
|
inlineoverridevirtual |
Check if the brick is a snowpack.
- Returns
- true if the brick is a snowpack.
Reimplemented from Brick.
◆ Reset()
Reset the brick to its initial state.
Reimplemented from Brick.
◆ SaveAsInitialState()
void Snowpack::SaveAsInitialState |
( |
| ) |
|
|
overridevirtual |
Save the current state of the brick as the initial state.
Reimplemented from Brick.
◆ SetInitialState()
void Snowpack::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 Snowpack::SetParameters |
( |
const BrickSettings & | brickSettings | ) |
|
|
overridevirtual |
Assign the parameters to the brick element.
- Parameters
-
brickSettings | settings of the brick containing the parameters. |
Reimplemented from Brick.
◆ UpdateContent()
void Snowpack::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 Snowpack::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/Snowpack.h
- /github/workspace/core/src/bricks/Snowpack.cpp