31 #ifndef OOMPH_REFINEABLE_YOUNGLAPLACE_ELEMENTS_HEADER 32 #define OOMPH_REFINEABLE_YOUNGLAPLACE_ELEMENTS_HEADER 36 #include <oomph-lib-config.h> 41 #include "../generic/refineable_quad_element.h" 42 #include "../generic/error_estimator.h" 108 unsigned n_node =
nnode();
120 for(
unsigned l=0;l<n_node;l++)
122 values[0] += this->
u(l)*psi[l];
137 "These equations are steady => No time dependence",
138 OOMPH_CURRENT_FUNCTION,
139 OOMPH_EXCEPTION_LOCATION);
155 this->
set_kappa(dynamic_cast<RefineableYoungLaplaceEquations*>(
174 template <
unsigned NNODE_1D>
240 template<
unsigned NNODE_1D>
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
RefineableYoungLaplaceEquations(const RefineableYoungLaplaceEquations &dummy)
Broken copy constructor.
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
void get_flux(const Vector< double > &s, Vector< double > &flux) const
Get flux: flux[i] = du/dx_i: Mainly used for error estimation.
Base class for finite elements that can compute the quantities that are required for the Z2 error est...
virtual RefineableElement * father_element_pt() const
Return a pointer to the father element.
unsigned nrecovery_order()
Order of recovery shape functions for Z2 error estimation: Same order as shape functions.
SpineBaseFctPt & spine_base_fct_pt()
Access function to function pointer that specifies spine base vector field.
Data * kappa_pt()
Access function: Pointer Data object that stores kappa (const version – kappa must be set with set_k...
void operator=(const RefineableQYoungLaplaceElement< NNODE_1D > &)
Broken assignment operator.
unsigned nvertex_node() const
Number of vertex nodes in the element.
void operator=(const RefineableYoungLaplaceEquations &)
Broken assignment operator.
void rebuild_from_sons(Mesh *&mesh_pt)
Rebuild from sons: empty.
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
void get_interpolated_values(const unsigned &t, const Vector< double > &s, Vector< double > &values)
Get the function value u in Vector. Note: Given the generality of the interface (this function is usu...
void fill_in_contribution_to_residuals(Vector< double > &residuals)
Compute element residual vector taking hanging nodes into account.
void get_interpolated_values(const Vector< double > &s, Vector< double > &values)
Get the function value u in Vector. Note: Given the generality of the interface (this function is usu...
RefineableQYoungLaplaceElement()
Constructor: Pass refinement level to refineable quad element (default 0 = root)
SpineFctPt & spine_fct_pt()
Access function to function pointer that specifies spine vector field.
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement. ...
unsigned nvertex_node() const
Number of vertex nodes in the element.
unsigned ncont_interpolated_values() const
Number of continuously interpolated values: 1.
void further_setup_hanging_nodes()
Perform additional hanging node procedures for variables that are not interpolated by all nodes...
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Get 'flux' for Z2 error recovery: Standard flux from YoungLaplace equations.
virtual double u(const unsigned &n) const
void further_build()
Further build: Copy function pointers to spine and spine base functions from father. Kappa is passed across with set_kappa(...) to ensure that it's added to the element's external Data.
void broken_assign(const std::string &class_name)
Issue error message and terminate execution.
unsigned num_Z2_flux_terms()
Number of 'flux' terms for Z2 error estimation.
SpineBaseFctPt Spine_base_fct_pt
Pointer to spine base function:
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
RefineableQYoungLaplaceElement(const RefineableQYoungLaplaceElement< NNODE_1D > &dummy)
Broken copy constructor.
void set_kappa(Data *kappa_pt)
Set curvature data (and add it to the element's external Data)
unsigned nnode() const
Return the number of nodes.
SpineFctPt Spine_fct_pt
Pointer to spine function:
virtual void shape(const Vector< double > &s, Shape &psi) const =0
Calculate the geometric shape functions at local coordinate s. This function must be overloaded for e...
RefineableYoungLaplaceEquations(const int &refine_level=0)
Constructor: Pass refinement level to refineable element (default 0 = root)