|
hydrobricks
|
#include <ProcessETOpenWaterPrevah.h>
Public Member Functions | |
| ProcessETOpenWaterPrevah (WaterContainer *container) | |
| bool | IsValid () const override |
| void | SetParameters (const ProcessSettings &processSettings) override |
Public Member Functions inherited from ProcessETOpenWater | |
| ProcessETOpenWater (WaterContainer *container) | |
| void | AttachForcing (Forcing *forcing) override |
Public Member Functions inherited from ProcessET | |
| ProcessET (WaterContainer *container) | |
| int | GetConnectionCount () const override |
| double * | GetValuePointer (std::string_view name) override |
| bool | ToAtmosphere () const override |
Public Member Functions inherited from Process | |
| Process (WaterContainer *container) | |
| virtual void | Reset () |
| virtual void | Validate () const |
| const float * | GetParameterValuePointer (const ProcessSettings &processSettings, std::string_view name) |
| void | SetParentContext (HydroUnit *unit, Brick *brick) |
| virtual void | SetHydroUnitProperties (HydroUnit *unit, Brick *brick) |
| void | AttachFluxOut (std::unique_ptr< Flux > flux) |
| int | GetOutputFluxCount () const |
| Flux * | GetOutputFlux (size_t index) const |
| virtual bool | RequiresDailyTimeStep () const |
| virtual bool | NeedsTargetBrickLinking () const |
| virtual bool | NeedsGateBrickLinking () const |
| virtual bool | HasConstraintPriority () const |
| virtual const vecDouble & | GetChangeRates () |
| virtual void | StoreInOutgoingFlux (double *rate, int index) |
| void | ApplyChange (int connectionIndex, double rate, double timeStepInDays) |
| virtual void | Finalize () |
| virtual vecDoublePt | GetStateVariables () |
| const string & | GetName () const |
| void | SetName (const string &name) |
| void | SetTimeMachine (TimeMachine *timeMachine) |
| WaterContainer * | GetWaterContainer () const |
| virtual void | SetTargetBrick (Brick *) |
| virtual void | AddGateBrick (Brick *) |
| virtual bool | LinksMultipleTargets () const |
| virtual void | AddTargetBrickWithWeights (Brick *, const std::vector< Brick * > &) |
| virtual bool | IsLateralProcess () const noexcept |
| virtual bool | HasLinearResponse () const |
| virtual double | GetLinearResponseRate () const |
| virtual double | GetLinearResponseOffset () const |
| bool | HasOutputFluxes () const noexcept |
| bool | HasWaterContainer () const noexcept |
Static Public Member Functions | |
| static void | RegisterProcessSettings (SettingsModel *modelSettings) |
Static Public Member Functions inherited from ProcessETOpenWater | |
| static void | RegisterProcessSettings (SettingsModel *modelSettings) |
Static Public Member Functions inherited from Process | |
| static std::unique_ptr< Process > | Factory (const ProcessSettings &processSettings, Brick *brick) |
| static bool | RegisterSettings (SettingsModel *modelSettings, const string &processType) |
| static bool | HasParameter (const ProcessSettings &processSettings, std::string_view name) |
Protected Member Functions | |
| const vecDouble & | GetRates () override |
Protected Member Functions inherited from ProcessETOpenWater | |
Protected Member Functions inherited from Process | |
| double | GetForcingRate (Forcing *forcing) const |
| double | GetTimeStepInDays () const |
| int | GetCurrentDayOfYear () const |
| const vecDouble & | StoreRates (std::initializer_list< double > rates) |
| double | GetSumChangeRatesOtherProcesses () const |
Protected Attributes | |
| const float * | _albedoLand |
| const float * | _etFactor {nullptr} |
Protected Attributes inherited from ProcessETOpenWater | |
| Forcing * | _pet |
Protected Attributes inherited from Process | |
| string | _name |
| WaterContainer * | _container |
| TimeMachine * | _timeMachine {nullptr} |
| HydroUnit * | _hydroUnit {nullptr} |
| string | _parentBrickName |
| std::vector< std::unique_ptr< Flux > > | _outputs |
| vecDouble | _changeRates |
Open-water (potential) evaporation with the PREVAH snow-albedo reduction.
As 'et:open_water' (evaporates at the potential rate, capped at the available content), but the potential rate carries PREVAH's (1 - albedo)/0.8 term, with the albedo interpolated between the snow-free and snow albedo by the hydro unit's snow-covered fraction (see HydroUnit::GetSnowCoverFraction): Ea = min(et_factor * PET * (1 - albedo)/0.8, content / dt)
Used for the canopy evaporation of an interception store in PREVAH setups (the interception ET draws from the albedo-reduced PET, scaled by the vegetation-cover fraction veg_cov via the et_factor parameter, which can be made monthly). With no snow (and the defaults albedo_land = 0.2, et_factor = 1) the rate matches 'et:open_water' exactly. Requires a hydro-unit context (hydro-unit bricks only).
|
overrideprotectedvirtual |
Get the rates of the process.
Implementations must store their result via StoreRates() (or directly in the _changeRates buffer) and return the reference, to avoid allocating on the hot path.
Reimplemented from ProcessETOpenWater.
Reimplemented in ProcessETWetSurfacePrevah.
|
nodiscardoverridevirtual |
Check that everything is correctly defined.
Reimplemented from ProcessETOpenWater.
Reimplemented in ProcessETWetSurfacePrevah.
|
static |
Register the process parameters and forcing in the settings model.
| modelSettings | The settings model to register the parameters in. |
|
overridevirtual |
Assign the parameters to the process.
| processSettings | settings of the process containing the parameters. |
Reimplemented from Process.