PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
IBSurfaceModel.hh
Go to the documentation of this file.
1 // Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 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 #ifndef PISM_ICEBIN_SURFACE_MODEL_H
20 #define PISM_ICEBIN_SURFACE_MODEL_H
21 
22 #include "pism/coupler/SurfaceModel.hh"
23 
24 #include <memory>
25 
26 namespace pism {
27 namespace icebin {
28 
30 public:
31  IBSurfaceModel(std::shared_ptr<const pism::Grid> grid);
32 
33 protected:
34  void init_impl(const Geometry &geometry);
35  void update_impl(const Geometry &geometry, double my_t, double my_dt);
36 
37  const array::Scalar& accumulation_impl() const;
39  const array::Scalar& mass_flux_impl() const;
40  const array::Scalar& melt_impl() const;
41  const array::Scalar& runoff_impl() const;
42  const array::Scalar& temperature_impl() const;
43 
44  void define_model_state_impl(const File &output) const;
45  void write_model_state_impl(const File &output) const;
46 
47  MaxTimestep max_timestep_impl(double t) const;
48 
49  std::string m_input_file;
50 
51 public:
52  // ------ See icebin/contracts/modele_pism.cpp
53  // Inputs from IceBin
54 
55  // Mass of ice being transferred GCM --> Ice Model
56  pism::array::Scalar massxfer; // [kg m-2 s-1]
57  // Enthalpy of ice being transferred Stieglitz --> Icebin
58  pism::array::Scalar enthxfer; // [J m-2 s-1]
59 
60  // GCM's idea of energy transfer into ice sheet.
61  // Used to compute mass/energy budget
63 
64  // Temperature of the Dirichlet B.C.
66  // Water content of the Dirichlet B.C.
68 };
69 
70 } // end of namespace icebin
71 } // end of namespace pism
72 
73 #endif /* PISM_ICEBIN_SURFACE_MODEL_H */
std::shared_ptr< const Grid > grid() const
Definition: Component.cc:105
High-level PISM I/O class.
Definition: File.hh:56
Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...
Definition: MaxTimestep.hh:31
pism::array::Scalar enthxfer
MaxTimestep max_timestep_impl(double t) const
const array::Scalar & liquid_water_fraction_impl() const
pism::array::Scalar massxfer
void define_model_state_impl(const File &output) const
The default (empty implementation).
pism::array::Scalar ice_top_bc_wc
pism::array::Scalar deltah
const array::Scalar & melt_impl() const
const array::Scalar & accumulation_impl() const
const array::Scalar & mass_flux_impl() const
void write_model_state_impl(const File &output) const
The default (empty implementation).
void update_impl(const Geometry &geometry, double my_t, double my_dt)
void init_impl(const Geometry &geometry)
pism::array::Scalar ice_top_bc_temp
const array::Scalar & runoff_impl() const
const array::Scalar & temperature_impl() const
IBSurfaceModel(std::shared_ptr< const pism::Grid > grid)
The interface of PISM's surface models.
Definition: SurfaceModel.hh:42