33#ifndef __H__UG__LIB_ALGEBRA__OPERATOR__PRECONDITIONER__PROJECTED_GAUSS_SEIDEL__SCALAR_LOWER_OBSTACLE__
34#define __H__UG__LIB_ALGEBRA__OPERATOR__PRECONDITIONER__PROJECTED_GAUSS_SEIDEL__SCALAR_LOWER_OBSTACLE__
59template <
typename TDomain,
typename TAlgebra>
110template <
typename TDomain,
typename TAlgebra>
represents numerical solutions on a grid using an algebraic vector
Definition grid_function.h:121
Interface for Obstacle Constraints.
Definition obstacle_constraint_interface.h:73
map< DoFIndex, number > m_mObstacleValues
map to store obstacle values with its corresponding DoFs
Definition obstacle_constraint_interface.h:259
vector< DoFIndex > m_vActiveDofs
stores the dofs, which satisfy the constraints with equality
Definition obstacle_constraint_interface.h:265
Definition multi_index.h:50
Scalar Lower Obstacles.
Definition scalar_obstacle.h:62
vector_type::value_type value_type
Value type.
Definition scalar_obstacle.h:77
algebra_type::vector_type vector_type
Vector type.
Definition scalar_obstacle.h:74
algebra_type::matrix_type matrix_type
Matrix type.
Definition scalar_obstacle.h:71
~ScalarLowerObstacle()
Destructor.
Definition scalar_obstacle.h:100
IObstacleConstraint< TDomain, TAlgebra > base_type
Base class type.
Definition scalar_obstacle.h:65
void restrict_obs_values()
restricts the obstacle values to a coarser grid in a multigrid hierarchy
Definition scalar_obstacle_impl.h:90
ScalarLowerObstacle()
default constructor
Definition scalar_obstacle.h:88
TAlgebra algebra_type
Algebra type.
Definition scalar_obstacle.h:68
ScalarLowerObstacle(const function_type &u)
constructor for a scalar obstacle
Definition scalar_obstacle.h:84
GridFunction< TDomain, TAlgebra > function_type
Type of grid function.
Definition scalar_obstacle.h:80
void adjust_defect_to_constraint(vector_type &d)
the defect needs to be adjusted for the active indices (those indices, which are in contact)
Definition scalar_obstacle_impl.h:74
void adjust_sol_and_cor(value_type &sol_i, value_type &c_i, bool &dofIsActive, const DoFIndex &dof)
projects the i-th index of the solution onto the admissible set and adjusts the correction
Definition scalar_obstacle_impl.h:47
Definition scalar_obstacle.h:113
ScalarUpperObstacle()
default constructor
Definition scalar_obstacle.h:139
vector_type::value_type value_type
Value type.
Definition scalar_obstacle.h:128
GridFunction< TDomain, TAlgebra > function_type
Type of grid function.
Definition scalar_obstacle.h:131
ScalarUpperObstacle(const function_type &u)
constructor for a scalar obstacle
Definition scalar_obstacle.h:135
algebra_type::vector_type vector_type
Vector type.
Definition scalar_obstacle.h:125
void adjust_defect_to_constraint(vector_type &d)
the defect needs to be adjusted for the active indices (those indices, which are in contact)
Definition scalar_obstacle_impl.h:128
~ScalarUpperObstacle()
Destructor.
Definition scalar_obstacle.h:151
TAlgebra algebra_type
Algebra type.
Definition scalar_obstacle.h:119
void restrict_obs_values()
restricts the obstacle values to a coarser grid in a multigrid hierarchy
Definition scalar_obstacle_impl.h:148
void adjust_sol_and_cor(value_type &sol_i, value_type &c_i, bool &dofIsActive, const DoFIndex &dof)
projects the i-th index of the solution onto the admissible set and adjusts the correction
Definition scalar_obstacle_impl.h:100
algebra_type::matrix_type matrix_type
Matrix type.
Definition scalar_obstacle.h:122
IObstacleConstraint< TDomain, TAlgebra > base_type
Base class type.
Definition scalar_obstacle.h:116
Definition smart_pointer.h:814
T value_type
Definition sparsematrix_interface.h:2