33 #ifndef __H__UG__LIB_DISC__FUNCTION_SPACE__GRID_FUNCTION_USER_DATA__
34 #define __H__UG__LIB_DISC__FUNCTION_SPACE__GRID_FUNCTION_USER_DATA__
45 template <
int WDim,
typename TData = number>
47 :
public StdUserData<GlobAttachmentElementUserData<WDim, TData>, TData, WDim>
50 static const int dim = WDim;
69 for (
size_t ip = 0;
ip < nip; ++
ip)
112 UG_ASSERT (refDim ==
dim,
"GlobAttachmentElementUserData: Dimensionality of the element should be equal to the world dimensionality.");
127 UG_ASSERT (elem->
base_object_id() ==
dim,
"GlobAttachmentElementUserData: Dimensionality of the element should be equal to the world dimensionality.");
141 UG_ASSERT (elem->
base_object_id() ==
dim,
"GlobAttachmentElementUserData: Dimensionality of the element should be equal to the world dimensionality.");
154 UG_THROW(
"GlobAttachmentElementUserData: Element required"
155 " for evaluation, but not passed. Cannot evaluate.");
166 UG_THROW(
"GlobAttachmentElementUserData: Element required"
167 " for evaluation, but not passed. Cannot evaluate.");
location name
Definition: checkpoint_util.lua:128
Definition: smart_pointer.h:108
const TData * values(size_t s) const
returns all values for a series
Definition: user_data.h:516
size_t num_ip(size_t s) const
returns the number of integration points
Definition: user_data.h:327
size_t num_series() const
explicitly forward some functions
Definition: user_data.h:324
const TData & value(size_t s, size_t ip) const
returns the value at ip
Definition: user_data.h:512
Definition: glob_attachment_user_data.h:49
void evaluate(data_type vValue[], const MathVector< dim > vGlobIP[], number time, int si, GridObject *elem, const MathVector< dim > vCornerCoords[], const MathVector< refDim > vLocIP[], const size_t nip, LocalVector *u, const MathMatrix< refDim, dim > *vJT=NULL) const
Definition: glob_attachment_user_data.h:100
std::string m_attachment_name
Definition: glob_attachment_user_data.h:56
virtual void const MathVector< dim > vGlobIP[]
Definition: glob_attachment_user_data.h:161
SmartPtr< Grid > m_spGrid
Definition: glob_attachment_user_data.h:57
virtual void compute(LocalVector *u, GridObject *elem, const MathVector< dim > vCornerCoords[], bool bDeriv=false)
compute values (and derivatives iff compDeriv == true)
Definition: glob_attachment_user_data.h:120
attachment_type m_att
Definition: glob_attachment_user_data.h:58
GlobAttachmentElementUserData(SmartPtr< Grid > grid, const char *name)
constructor
Definition: glob_attachment_user_data.h:76
virtual void compute(LocalVectorTimeSeries *u, GridObject *elem, const MathVector< dim > vCornerCoords[], bool bDeriv=false)
compute values (and derivatives iff compDeriv == true, but only for the 'current' time point)
Definition: glob_attachment_user_data.h:134
virtual void const MathVector< dim > number int si
Definition: glob_attachment_user_data.h:162
Attachment< data_type > attachment_type
Definition: glob_attachment_user_data.h:53
virtual void operator()(data_type vValue[]
grid_dim_traits< dim >::grid_base_object elem_type
Definition: glob_attachment_user_data.h:52
virtual bool requires_grid_fct() const
returns if grid function is needed for evaluation
Definition: glob_attachment_user_data.h:92
virtual bool continuous() const
returns if provided data is continuous over geometric object boundaries
Definition: glob_attachment_user_data.h:87
TData data_type
Definition: glob_attachment_user_data.h:51
virtual void const MathVector< dim > number time
Definition: glob_attachment_user_data.h:151
void eval_on_elem(elem_type *elem, const size_t nip, data_type vValue[]) const
Evalutation of the attachment in one element.
Definition: glob_attachment_user_data.h:63
static const int dim
Definition: glob_attachment_user_data.h:50
virtual void const MathVector< dim > & globIP
Definition: glob_attachment_user_data.h:150
Grid::AttachmentAccessor< elem_type, attachment_type > m_aatt
Definition: glob_attachment_user_data.h:59
static bool is_declared(const std::string &name)
Definition: global_attachments.h:111
the generic attachment-accessor for access to grids attachment pipes.
Definition: grid.h:182
The base class for all geometric objects, such as vertices, edges, faces, volumes,...
Definition: grid_base_objects.h:157
virtual int base_object_id() const =0
const MathVector< dim > & ip(size_t s, size_t ip) const
returns global ip
Definition: user_data.h:401
Definition: local_algebra.h:198
time series of local vectors
Definition: solution_time_series.h:167
A class for fixed size, dense matrices.
Definition: math_matrix.h:52
Definition: std_user_data.h:63
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
#define UG_THROW(msg)
Definition: error.h:57
double number
Definition: types.h:124
Definition: grid_dim_traits.h:53