33 #ifndef __H__UG__LIB_ALGEBRA__OPERATOR__PRECONDITIONER__PROJECTED_GAUSS_SEIDEL__OBSTACLE_IN_NORMAL_DIR__
34 #define __H__UG__LIB_ALGEBRA__OPERATOR__PRECONDITIONER__PROJECTED_GAUSS_SEIDEL__OBSTACLE_IN_NORMAL_DIR__
59 template <
typename TDomain,
typename TAlgebra>
99 UG_LOG(
"In ObstacleInNormalDir::constructor u hat "<<u.size()<<
"Eintraege \n");
124 template <
typename TElem,
typename TIterator>
Definition: smart_pointer.h:296
represents numerical solutions on a grid using an algebraic vector
Definition: grid_function.h:121
SmartPtr< TDomain > domain()
returns domain
Definition: grid_function.h:342
SmartPtr< DoFDistribution > dof_distribution()
Definition: grid_function.h:236
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< int > m_vObsSubsets
stores the subset-indices of the obstacle subsets
Definition: obstacle_constraint_interface.h:262
vector< DoFIndex > m_vActiveDofs
stores the dofs, which satisfy the constraints with equality
Definition: obstacle_constraint_interface.h:265
Definition: multi_index.h:50
Obstacle Class for Obstacle in normal direction.
Definition: obstacle_in_normal_dir.h:62
ConstSmartPtr< TDomain > m_spDomain
pointer to the domain
Definition: obstacle_in_normal_dir.h:142
ObstacleInNormalDir()
constructor
Definition: obstacle_in_normal_dir.h:104
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: obstacle_in_normal_dir_impl.h:199
TDomain domain_type
Domain type.
Definition: obstacle_in_normal_dir.h:83
void transform_eulerian_coord_sys(MathVector< dim > transformedONB[], const MathVector< dim > &firstTransformedBaseVec)
Definition: obstacle_in_normal_dir_impl.h:61
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: obstacle_in_normal_dir_impl.h:237
algebra_type::matrix_type matrix_type
Matrix type.
Definition: obstacle_in_normal_dir.h:71
TAlgebra algebra_type
Algebra type.
Definition: obstacle_in_normal_dir.h:68
algebra_type::vector_type vector_type
Vector type.
Definition: obstacle_in_normal_dir.h:74
static const int dim
World dimension.
Definition: obstacle_in_normal_dir.h:86
vector_type::value_type value_type
Value type.
Definition: obstacle_in_normal_dir.h:77
domain_type::position_type position_type
Type of position coordinates (e.g. position_type)
Definition: obstacle_in_normal_dir.h:89
ConstSmartPtr< DoFDistribution > m_spDD
pointer to the DofDistribution on the whole domain
Definition: obstacle_in_normal_dir.h:139
ObstacleInNormalDir(const function_type &u)
Definition: obstacle_in_normal_dir.h:94
IObstacleConstraint< TDomain, TAlgebra > base_type
Base class type.
Definition: obstacle_in_normal_dir.h:65
void preprocess()
preprocess is useful to attach the normals for every obstacle DoF
Definition: obstacle_in_normal_dir_impl.h:46
GridFunction< TDomain, TAlgebra > function_type
Type of grid function.
Definition: obstacle_in_normal_dir.h:80
void restrict_obs_values()
restricts the obstacle values to a coarser grid in a multigrid hierarchy
Definition: obstacle_in_normal_dir_impl.h:253
void adjust_sol_and_cor_elem(TIterator iterBegin, TIterator iterEnd, value_type &sol_i, value_type &c_i, bool &dofIsAdmissible, const DoFIndex &dof)
Definition: obstacle_in_normal_dir_impl.h:126
~ObstacleInNormalDir()
Destructor.
Definition: obstacle_in_normal_dir.h:118
#define UG_LOG(msg)
Definition: log.h:367
double number
Definition: types.h:124
CPUAlgebra::vector_type vector_type
T value_type
Definition: sparsematrix_interface.h:2
struct to store data for a specific obstacle DoF
Definition: obstacle_in_normal_dir.h:145
number obsVal
Definition: obstacle_in_normal_dir.h:146
MathVector< dim > transformedONB[dim]
Definition: obstacle_in_normal_dir.h:147