PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pism::surface::TemperatureIndex Class Reference

A class implementing a temperature-index (positive degree-day) scheme to compute melt and runoff, and thus surface mass balance, from precipitation and air temperature. More...

#include <TemperatureIndex.hh>

+ Inheritance diagram for pism::surface::TemperatureIndex:

Public Member Functions

 TemperatureIndex (std::shared_ptr< const Grid > g, std::shared_ptr< atmosphere::AtmosphereModel > input)
 
virtual ~TemperatureIndex ()=default
 
const array::Scalarfirn_depth () const
 
const array::Scalarsnow_depth () const
 
const array::Scalarair_temp_sd () const
 
- Public Member Functions inherited from pism::surface::SurfaceModel
 SurfaceModel (std::shared_ptr< const Grid > g)
 
 SurfaceModel (std::shared_ptr< const Grid > g, std::shared_ptr< SurfaceModel > input)
 
 SurfaceModel (std::shared_ptr< const Grid > g, std::shared_ptr< atmosphere::AtmosphereModel > atmosphere)
 
virtual ~SurfaceModel ()=default
 
void init (const Geometry &geometry)
 
void update (const Geometry &geometry, double t, double dt)
 
const array::Scalaraccumulation () const
 Returns accumulation. More...
 
const array::Scalarlayer_mass () const
 Returns mass held in the surface layer. More...
 
const array::Scalarlayer_thickness () const
 Returns thickness of the surface layer. Could be used to compute surface elevation as a sum of elevation of the top surface of the ice and surface layer (firn, etc) thickness. More...
 
const array::Scalarliquid_water_fraction () const
 Returns the liquid water fraction of the ice at the top ice surface. More...
 
const array::Scalarmass_flux () const
 
const array::Scalarmelt () const
 Returns melt. More...
 
const array::Scalarrunoff () const
 Returns runoff. More...
 
const array::Scalartemperature () const
 
- Public Member Functions inherited from pism::Component
 Component (std::shared_ptr< const Grid > grid)
 
virtual ~Component ()=default
 
DiagnosticList diagnostics () const
 
TSDiagnosticList ts_diagnostics () const
 
std::shared_ptr< const Gridgrid () const
 
const Timetime () const
 
const Profilingprofiling () const
 
void define_model_state (const File &output) const
 Define model state variables in an output file. More...
 
void write_model_state (const File &output) const
 Write model state variables to an output file. More...
 
MaxTimestep max_timestep (double t) const
 Reports the maximum time-step the model can take at time t. More...
 

Protected Member Functions

virtual void init_impl (const Geometry &geometry)
 
virtual void update_impl (const Geometry &geometry, double t, double dt)
 
virtual MaxTimestep max_timestep_impl (double t) const
 
virtual void define_model_state_impl (const File &output) const
 The default (empty implementation). More...
 
virtual void write_model_state_impl (const File &output) const
 The default (empty implementation). More...
 
virtual DiagnosticList diagnostics_impl () const
 
virtual const array::Scalarmass_flux_impl () const
 
virtual const array::Scalartemperature_impl () const
 
virtual const array::Scalaraccumulation_impl () const
 
virtual const array::Scalarmelt_impl () const
 
virtual const array::Scalarrunoff_impl () const
 
double compute_next_balance_year_start (double time)
 
- Protected Member Functions inherited from pism::surface::SurfaceModel
virtual const array::Scalarlayer_mass_impl () const
 
virtual const array::Scalarlayer_thickness_impl () const
 
virtual const array::Scalarliquid_water_fraction_impl () const
 
virtual TSDiagnosticList ts_diagnostics_impl () const
 
void dummy_accumulation (const array::Scalar &smb, array::Scalar &result)
 
void dummy_melt (const array::Scalar &smb, array::Scalar &result)
 
void dummy_runoff (const array::Scalar &smb, array::Scalar &result)
 
- Protected Member Functions inherited from pism::Component
void regrid (const std::string &module_name, array::Array &variable, RegriddingFlag flag=NO_REGRID_WITHOUT_REGRID_VARS)
 

Protected Attributes

std::unique_ptr< LocalMassBalancem_mbscheme
 mass balance scheme to use More...
 
std::unique_ptr< FaustoGrevePDDObjectm_faustogreve
 if not NULL then user wanted fausto PDD stuff More...
 
LocalMassBalance::DegreeDayFactors m_base_ddf
 holds degree-day factors in location-independent case More...
 
double m_base_pddStdDev
 K; daily amount of randomness. More...
 
double m_next_balance_year_start
 
array::Scalar m_mass_flux
 cached surface mass balance rate More...
 
std::shared_ptr< array::Scalarm_temperature
 
array::Scalar m_firn_depth
 firn depth More...
 
array::Scalar m_snow_depth
 snow depth (reset once a year) More...
 
std::shared_ptr< array::Forcingm_air_temp_sd
 standard deviation of the daily variability of the air temperature More...
 
std::shared_ptr< array::Scalarm_accumulation
 total accumulation during the last time step More...
 
std::shared_ptr< array::Scalarm_melt
 total melt during the last time step More...
 
std::shared_ptr< array::Scalarm_runoff
 total runoff during the last time step More...
 
bool m_sd_use_param
 
bool m_sd_file_set
 
double m_sd_param_a
 
double m_sd_param_b
 
- Protected Attributes inherited from pism::surface::SurfaceModel
std::shared_ptr< array::Scalarm_liquid_water_fraction
 
std::shared_ptr< array::Scalarm_layer_mass
 
std::shared_ptr< array::Scalarm_layer_thickness
 
std::shared_ptr< array::Scalarm_accumulation
 
std::shared_ptr< array::Scalarm_melt
 
std::shared_ptr< array::Scalarm_runoff
 
std::shared_ptr< SurfaceModelm_input_model
 
std::shared_ptr< atmosphere::AtmosphereModelm_atmosphere
 
- Protected Attributes inherited from pism::Component
const std::shared_ptr< const Gridm_grid
 grid used by this component More...
 
const Config::ConstPtr m_config
 configuration database used by this component More...
 
const units::System::Ptr m_sys
 unit system used by this component More...
 
const Logger::ConstPtr m_log
 logger (for easy access) More...
 

Additional Inherited Members

- Protected Types inherited from pism::Component
enum  RegriddingFlag { REGRID_WITHOUT_REGRID_VARS , NO_REGRID_WITHOUT_REGRID_VARS }
 This flag determines whether a variable is read from the -regrid_file file even if it is not listed among variables in -regrid_vars. More...
 
- Static Protected Member Functions inherited from pism::surface::SurfaceModel
static std::shared_ptr< array::Scalarallocate_layer_mass (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_layer_thickness (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_liquid_water_fraction (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_mass_flux (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_temperature (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_accumulation (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_melt (std::shared_ptr< const Grid > grid)
 
static std::shared_ptr< array::Scalarallocate_runoff (std::shared_ptr< const Grid > grid)
 

Detailed Description

A class implementing a temperature-index (positive degree-day) scheme to compute melt and runoff, and thus surface mass balance, from precipitation and air temperature.

Temperature-index schemes are far from perfect as a way of modeling surface mass balance on ice sheets which experience surface melt, but they are known to have reasonable data requirements and to do a good job when tuned appropriately [Hock05].

Definition at line 39 of file TemperatureIndex.hh.


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