33 #ifndef __H__UG__LIB_DISC__SPATIAL_DISC__ELEM_DISC__NEUMANN_BOUNDARY___NEUMANN_BOUNDARY_FV1__
34 #define __H__UG__LIB_DISC__SPATIAL_DISC__ELEM_DISC__NEUMANN_BOUNDARY___NEUMANN_BOUNDARY_FV1__
40 #include "../neumann_boundary_base.h"
44 template<
typename TDomain>
74 using typename base_type::Data;
80 std::string BndSubsets, std::string InnerSubsets)
83 import.set_data(data);
86 template<
typename TElem,
typename TFVGeom>
89 template <
typename TElem,
typename TFVGeom>
91 std::vector<std::vector<number> > vvvLinDef[],
96 {
import.template set_local_ips<refDim>(ips, nIPs);}
99 {
import.set_global_ips(ips, nIPs);}
101 template <
int refDim>
102 std::vector<MathVector<refDim> >*
local_ips();
115 std::string BndSubsets, std::string InnerSubsets)
125 std::string BndSubsets, std::string InnerSubsets)
143 virtual void prepare_setting(
const std::vector<LFEID>& vLfeID,
bool bNonRegularGrid);
148 template<
typename TElem,
typename TFVGeom>
150 template<
typename TElem,
typename TFVGeom>
152 template<
typename TElem,
typename TFVGeom>
154 template<
typename TElem,
typename TFVGeom>
158 template <
typename TElem,
typename TFVGeom>
162 template <
typename TElem,
typename TFVGeom>
166 template <
typename TElem,
typename TFVGeom>
170 template <
typename TElem,
typename TFVGeom>
180 template <
typename TElem,
typename TFVGeom>
void register_func();
Definition: smart_pointer.h:108
Type based UserData.
Definition: user_data.h:501
The base class for all geometric objects, such as vertices, edges, faces, volumes,...
Definition: grid_base_objects.h:157
Definition: elem_disc_interface.h:760
Definition: local_algebra.h:198
Definition: neumann_boundary_base.h:47
static const int dim
World dimension.
Definition: neumann_boundary_base.h:57
void update_subset_groups(Data &userData)
method used to extract subsets id
Definition: neumann_boundary_base.cpp:60
Definition: neumann_boundary_fv1.h:47
int m_si
current inner subset
Definition: neumann_boundary_fv1.h:139
void prep_err_est_elem_loop(const ReferenceObjectID roid, const int si)
prepares the loop over all elements of one type for the computation of the error estimator
Definition: neumann_boundary_fv1.cpp:284
SideAndElemErrEstData< TDomain > err_est_type
error estimator type
Definition: neumann_boundary_fv1.h:56
void prep_err_est_elem(const LocalVector &u, GridObject *elem, const MathVector< dim > vCornerCoords[])
prepares the element for assembling the error estimator
Definition: neumann_boundary_fv1.cpp:346
void add_rhs_elem(LocalVector &d, GridObject *elem, const MathVector< dim > vCornerCoords[])
Definition: neumann_boundary_fv1.cpp:179
NeumannBoundaryFV1< TDomain > this_type
Base class type.
Definition: neumann_boundary_fv1.h:53
void register_all_funcs(bool bHang)
void add(SmartPtr< CplUserData< number, dim > > data, const char *BndSubsets, const char *InnerSubsets)
Definition: neumann_boundary_fv1.cpp:67
static const int dim
World dimension.
Definition: neumann_boundary_fv1.h:60
void prep_elem(const LocalVector &u, GridObject *elem, const ReferenceObjectID roid, const MathVector< dim > vCornerCoords[])
Definition: neumann_boundary_fv1.cpp:161
std::vector< NumberData > m_vNumberData
Definition: neumann_boundary_fv1.h:131
NeumannBoundaryBase< TDomain > base_type
Base class type.
Definition: neumann_boundary_fv1.h:50
void prep_elem_loop(const ReferenceObjectID roid, const int si)
Definition: neumann_boundary_fv1.cpp:107
std::vector< VectorData > m_vVectorData
Definition: neumann_boundary_fv1.h:133
void compute_err_est_rhs_elem(GridObject *elem, const MathVector< dim > vCornerCoords[], const number &scale)
computes the error estimator contribution for one element
Definition: neumann_boundary_fv1.cpp:373
void fsh_elem_loop()
Definition: neumann_boundary_fv1.cpp:239
NeumannBoundaryFV1(const char *function)
default constructor
Definition: neumann_boundary_fv1.cpp:45
virtual void prepare_setting(const std::vector< LFEID > &vLfeID, bool bNonRegularGrid)
type of trial space for each function used
Definition: neumann_boundary_fv1.cpp:53
void fsh_err_est_elem_loop()
postprocesses the loop over all elements of one type in the computation of the error estimator
Definition: neumann_boundary_fv1.cpp:490
void register_func()
Definition: neumann_boundary_fv1.cpp:619
std::vector< BNDNumberData > m_vBNDNumberData
Definition: neumann_boundary_fv1.h:132
void update_subset_groups()
Definition: neumann_boundary_fv1.cpp:90
static const int _C_
Definition: neumann_boundary_fv1.h:176
Error estimator data class storing a number vector per side and per element.
Definition: err_est_data.h:221
double number
Definition: types.h:124
ReferenceObjectID
these ids are used to identify the shape of a geometric object.
Definition: grid_base_objects.h:74
base class for user data
Definition: neumann_boundary_base.h:87
Conditional scalar user data.
Definition: neumann_boundary_fv1.h:113
SmartPtr< CplUserData< number, dim, bool > > functor
Definition: neumann_boundary_fv1.h:118
BNDNumberData(SmartPtr< CplUserData< number, dim, bool > > functor_, std::string BndSubsets, std::string InnerSubsets)
Definition: neumann_boundary_fv1.h:114
Unconditional scalar user data.
Definition: neumann_boundary_fv1.h:78
std::vector< MathVector< 1 > > vLocIP_dim1
Definition: neumann_boundary_fv1.h:107
std::vector< MathVector< 3 > > vLocIP_dim3
Definition: neumann_boundary_fv1.h:105
std::vector< MathVector< refDim > > * local_ips()
Definition: neumann_boundary_fv1.cpp:567
void lin_def(const LocalVector &u, std::vector< std::vector< number > > vvvLinDef[], const size_t nip)
Definition: neumann_boundary_fv1.cpp:508
void set_local_ips(const MathVector< refDim > *ips, std::size_t nIPs)
Definition: neumann_boundary_fv1.h:95
void extract_bip(const TFVGeom &geo)
Definition: neumann_boundary_fv1.cpp:530
std::vector< MathVector< 2 > > vLocIP_dim2
Definition: neumann_boundary_fv1.h:106
NumberData(SmartPtr< CplUserData< number, dim > > data, std::string BndSubsets, std::string InnerSubsets)
Definition: neumann_boundary_fv1.h:79
void set_global_ips(const MathVector< dim > *ips, std::size_t nIPs)
Definition: neumann_boundary_fv1.h:98
std::vector< MathVector< dim > > vGloIP
Definition: neumann_boundary_fv1.h:108
Unconditional vector user data.
Definition: neumann_boundary_fv1.h:123
VectorData(SmartPtr< CplUserData< MathVector< dim >, dim > > functor_, std::string BndSubsets, std::string InnerSubsets)
Definition: neumann_boundary_fv1.h:124
SmartPtr< CplUserData< MathVector< dim >, dim > > functor
Definition: neumann_boundary_fv1.h:128