|
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
PISM's SSA solver: the finite element method implementation written by Jed and David. More...
#include <SSAFEM.hh>
Inheritance diagram for pism::stressbalance::SSAFEM:Classes | |
| struct | CallbackData |
| Adaptor for gluing SNESDAFormFunction callbacks to an SSAFEM. More... | |
| struct | Coefficients |
Public Member Functions | |
| SSAFEM (std::shared_ptr< const Grid > g) | |
| virtual | ~SSAFEM ()=default |
Public Member Functions inherited from pism::stressbalance::SSA | |
| SSA (std::shared_ptr< const Grid > g) | |
| virtual | ~SSA () |
| virtual void | update (const Inputs &inputs, bool full_update) |
| Update the SSA solution. | |
| virtual std::string | stdout_report () const |
| Produce a report string for the standard output. | |
Public Member Functions inherited from pism::stressbalance::ShallowStressBalance | |
| ShallowStressBalance (std::shared_ptr< const Grid > g) | |
| virtual | ~ShallowStressBalance () |
| void | init () |
| const array::Vector1 & | velocity () const |
| Get the thickness-advective 2D velocity. | |
| const array::Scalar & | basal_frictional_heating () |
| Get the basal frictional heating (for the adaptive energy time-stepping). | |
| void | compute_basal_frictional_heating (const array::Vector &velocity, const array::Scalar &tauc, const array::CellType &mask, array::Scalar &result) const |
| Compute the basal frictional heating. | |
| std::shared_ptr< const rheology::FlowLaw > | flow_law () const |
| EnthalpyConverter::Ptr | enthalpy_converter () const |
| const IceBasalResistancePlasticLaw * | sliding_law () const |
| double | flow_enhancement_factor () 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 Grid > | grid () const |
| const Time & | time () const |
| const Profiling & | profiling () const |
| void | define_model_state (const File &output) const |
| Define model state variables in an output file. | |
| void | write_model_state (const File &output) const |
| Write model state variables to an output file. | |
| MaxTimestep | max_timestep (double t) const |
| Reports the maximum time-step the model can take at time t. | |
Protected Member Functions | |
| virtual void | init_impl () |
| Initialize a generic regular-grid SSA solver. | |
| void | cache_inputs (const Inputs &inputs) |
| Initialize stored data from the coefficients in the SSA. Called by SSAFEM::solve. | |
| void | quad_point_values (const fem::Element &E, const Coefficients *x, int *mask, double *thickness, double *tauc, double *hardness) const |
Compute quadrature point values of various coefficients given a quadrature Q and nodal values. | |
| void | driving_stress (const fem::Element &E, const Coefficients *x, Vector2d *result) const |
| void | PointwiseNuHAndBeta (double thickness, double hardness, int mask, double tauc, const Vector2d &U, const Vector2d &U_x, const Vector2d &U_y, double *nuH, double *dnuH, double *beta, double *dbeta) |
| Compute the "(regularized effective viscosity) x (ice thickness)" and effective viscous bed strength from the current solution, at a single quadrature point. | |
| void | compute_local_function (Vector2d const *const *velocity, Vector2d **residual) |
| Implements the callback for computing the residual. | |
| void | compute_local_jacobian (Vector2d const *const *velocity, Mat J) |
| Implements the callback for computing the Jacobian. | |
| virtual void | solve (const Inputs &inputs) |
| std::shared_ptr< TerminationReason > | solve_with_reason (const Inputs &inputs) |
| std::shared_ptr< TerminationReason > | solve_nocache () |
Protected Member Functions inherited from pism::stressbalance::SSA | |
| virtual void | define_model_state_impl (const File &output) const |
| The default (empty implementation). | |
| virtual void | write_model_state_impl (const File &output) const |
| The default (empty implementation). | |
| void | extrapolate_velocity (const array::CellType1 &cell_type, array::Vector1 &velocity) const |
Protected Member Functions inherited from pism::stressbalance::ShallowStressBalance | |
| virtual DiagnosticList | diagnostics_impl () const |
Protected Member Functions inherited from pism::Component | |
| virtual MaxTimestep | max_timestep_impl (double t) const |
| virtual TSDiagnosticList | ts_diagnostics_impl () const |
| void | regrid (const std::string &module_name, array::Array &variable, RegriddingFlag flag=NO_REGRID_WITHOUT_REGRID_VARS) |
Static Protected Member Functions | |
| static void | explicit_driving_stress (const fem::Element &E, const Coefficients *x, Vector2d *result) |
Private Member Functions | |
| void | cache_residual_cfbc (const Inputs &inputs) |
| Compute and cache residual contributions from the integral over the lateral boundary. | |
| void | monitor_jacobian (Mat Jac) |
| void | monitor_function (Vector2d const *const *velocity_global, Vector2d const *const *residual_global) |
Static Private Member Functions | |
| static PetscErrorCode | function_callback (DMDALocalInfo *info, Vector2d const *const *velocity, Vector2d **residual, CallbackData *fe) |
| SNES callbacks. | |
| static PetscErrorCode | jacobian_callback (DMDALocalInfo *info, Vector2d const *const *velocity, Mat A, Mat J, CallbackData *fe) |
Additional Inherited Members | |
Public Attributes inherited from pism::stressbalance::SSA | |
| SSAStrengthExtension * | strength_extension |
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... | |
PISM's SSA solver: the finite element method implementation written by Jed and David.
Jed's original code is in rev 831: src/base/ssaJed/... The SSAFEM duplicates most of the functionality of SSAFD, using the finite element method.