PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
◆ assemble_rhs()
Computes the right-hand side ("rhs") of the linear problem for the Picard iteration and finite-difference implementation of the SSA equations. The right side of the SSA equations is just the driving stress term - \rho g H \nabla h. The basal stress is put on the left side of the system. This method builds the discrete approximation of the right side. For more about the discretization of the SSA equations, see comments for assemble_matrix(). The values of the driving stress on the i,j grid come from a call to compute_driving_stress(). In the case of Dirichlet boundary conditions, the entries on the right-hand side come from known velocity values. The fields bc_values and m_bc_mask are used for this. Definition at line 304 of file SSAFDBase.cc. References pism::array::Array2D< T >::add(), pism::array::Scalar::as_int(), pism::average_water_column_pressure(), pism::stressbalance::Inputs::bc_mask, pism::stressbalance::Inputs::bc_values, pism::Geometry::bed_elevation, pism::grid::domain_edge(), driving_stress(), pism::stressbalance::Inputs::geometry, pism::mask::grounded(), pism::mask::ice_free(), pism::mask::ice_free_land(), pism::mask::ice_free_ocean(), pism::Geometry::ice_surface_elevation, pism::Geometry::ice_thickness, pism::stressbalance::is_marginal(), pism::Component::m_config, pism::Component::m_grid, rho_ice, S(), pism::Geometry::sea_level_elevation, pism::array::Array::set(), pism::array::Array2D< T >::star(), pism::array::CellType1::star_int(), pism::Vector2d::u, pism::Vector2d::v, and pism::stressbalance::Inputs::water_column_pressure. Referenced by initialize_iterations(). |