Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CHSystem.hh
Go to the documentation of this file.
1/* Copyright (C) 2018, 2021, 2023 PISM Authors
2 *
3 * This file is part of PISM.
4 *
5 * PISM is free software; you can redistribute it and/or modify it under the
6 * terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * PISM is distributed in the hope that it will be useful, but WITHOUT ANY
11 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with PISM; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef CHSYSTEM_H
21#define CHSYSTEM_H
22
23#include "pism/energy/EnergyModel.hh"
24
25namespace pism {
26namespace energy {
27
28class CHSystem : public EnergyModel {
29public:
30 CHSystem(std::shared_ptr<const Grid> grid,
31 std::shared_ptr<const stressbalance::StressBalance> stress_balance);
32 virtual ~CHSystem() = default;
33
34protected:
35 void restart_impl(const File &input_file, int record);
36
37 void bootstrap_impl(const File &input_file,
38 const array::Scalar &ice_thickness,
39 const array::Scalar &surface_temperature,
40 const array::Scalar &climatic_mass_balance,
41 const array::Scalar &basal_heat_flux);
42
44 const array::Scalar &ice_thickness,
45 const array::Scalar &surface_temperature,
46 const array::Scalar &climatic_mass_balance,
47 const array::Scalar &basal_heat_flux);
48
49 void update_impl(double t, double dt, const Inputs &inputs);
50
51 void define_model_state_impl(const File &output) const;
52 void write_model_state_impl(const File &output) const;
53
55};
56
58 double R,
59 const array::Scalar &ice_thickness,
60 const array::Array3D &ice_enthalpy,
61 const array::Array3D &ch_enthalpy,
62 array::Array3D &result);
63
64} // end of namespace energy
65} // end of namespace pism
66
67#endif /* CHSYSTEM_H */
std::shared_ptr< const Grid > grid() const
Definition Component.cc:105
High-level PISM I/O class.
Definition File.hh:55
A virtual class collecting methods common to ice and bedrock 3D fields.
Definition Array3D.hh:33
void restart_impl(const File &input_file, int record)
Definition CHSystem.cc:66
void update_impl(double t, double dt, const Inputs &inputs)
Update the enthalpy of the cryo-hydrologic system.
Definition CHSystem.cc:116
DiagnosticList diagnostics_impl() const
Definition CHSystem.cc:298
void initialize_impl(const array::Scalar &basal_melt_rate, const array::Scalar &ice_thickness, const array::Scalar &surface_temperature, const array::Scalar &climatic_mass_balance, const array::Scalar &basal_heat_flux)
Definition CHSystem.cc:94
void define_model_state_impl(const File &output) const
The default (empty implementation).
Definition CHSystem.cc:235
virtual ~CHSystem()=default
void bootstrap_impl(const File &input_file, const array::Scalar &ice_thickness, const array::Scalar &surface_temperature, const array::Scalar &climatic_mass_balance, const array::Scalar &basal_heat_flux)
Definition CHSystem.cc:76
void write_model_state_impl(const File &output) const
The default (empty implementation).
Definition CHSystem.cc:239
const array::Scalar & basal_melt_rate() const
Basal melt rate in grounded areas. (It is set to zero elsewhere.)
void cryo_hydrologic_warming_flux(double k, double R, const array::Scalar &ice_thickness, const array::Array3D &ice_enthalpy, const array::Array3D &ch_enthalpy, array::Array3D &result)
Definition CHSystem.cc:251
std::map< std::string, Diagnostic::Ptr > DiagnosticList
static const double k
Definition exactTestP.cc:42