PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
SSB_diagnostics.hh
Go to the documentation of this file.
1 /* Copyright (C) 2014, 2015, 2016, 2017, 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 _SSB_DIAGNOSTICS_H_
21 #define _SSB_DIAGNOSTICS_H_
22 
23 #include "pism/util/Diagnostic.hh"
24 
25 namespace pism {
26 
27 class Vars;
28 
29 namespace stressbalance {
30 
31 class SSB_beta : public Diag<ShallowStressBalance>
32 {
33 public:
35 protected:
36  virtual std::shared_ptr<array::Array> compute_impl() const;
37 };
38 
39 //! \brief Computes the gravitational driving stress (diagnostically).
40 class SSB_taud : public Diag<ShallowStressBalance>
41 {
42 public:
44 protected:
45  virtual std::shared_ptr<array::Array> compute_impl() const;
46 };
47 
48 //! \brief Computes the magnitude of the gravitational driving stress
49 //! (diagnostically).
50 class SSB_taud_mag : public Diag<ShallowStressBalance>
51 {
52 public:
54 protected:
55  virtual std::shared_ptr<array::Array> compute_impl() const;
56 };
57 
58 //! @brief Computes the basal shear stress @f$ \tau_b @f$.
59 class SSB_taub : public Diag<ShallowStressBalance>
60 {
61 public:
63 protected:
64  virtual std::shared_ptr<array::Array> compute_impl() const;
65 };
66 
67 //! \brief Computes the magnitude of the basal shear stress
68 //! (diagnostically).
69 class SSB_taub_mag : public Diag<ShallowStressBalance>
70 {
71 public:
73 protected:
74  virtual std::shared_ptr<array::Array> compute_impl() const;
75 };
76 
77 } // end of namespace stressbalance
78 } // end of namespace pism
79 
80 #endif /* _SSB_DIAGNOSTICS_H_ */
A template derived from Diagnostic, adding a "Model".
Definition: Diagnostic.hh:166
virtual std::shared_ptr< array::Array > compute_impl() const
SSB_beta(const ShallowStressBalance *m)
SSB_taub_mag(const ShallowStressBalance *m)
virtual std::shared_ptr< array::Array > compute_impl() const
Computes the magnitude of the basal shear stress (diagnostically).
SSB_taub(const ShallowStressBalance *m)
virtual std::shared_ptr< array::Array > compute_impl() const
Computes the basal shear stress .
virtual std::shared_ptr< array::Array > compute_impl() const
SSB_taud_mag(const ShallowStressBalance *m)
Computes the magnitude of the gravitational driving stress (diagnostically).
virtual std::shared_ptr< array::Array > compute_impl() const
SSB_taud(const ShallowStressBalance *m)
Computes the gravitational driving stress (diagnostically).
Shallow stress balance (such as the SSA).