31 #ifndef OOMPH_REFINEABLE_LINEAR_WAVE_ELEMENTS_HEADER 32 #define OOMPH_REFINEABLE_LINEAR_WAVE_ELEMENTS_HEADER 36 #include <oomph-lib-config.h> 40 #include "../generic/refineable_quad_element.h" 41 #include "../generic/refineable_brick_element.h" 42 #include "../generic/error_estimator.h" 51 template <
unsigned DIM>
96 unsigned n_node =
nnode();
111 for(
unsigned l=0;l<n_node;l++)
113 values[0] += this->
nodal_value(l,u_nodal_index)*psi[l];
132 unsigned n_node =
nnode();
142 for(
unsigned l=0;l<n_node;l++)
144 values[0] += this->
nodal_value(t,l,u_nodal_index)*psi[l];
175 template <
unsigned DIM,
unsigned NNODE_1D>
240 template<
unsigned DIM,
unsigned NNODE_1D>
242 public virtual QElement<DIM-1,NNODE_1D>
LinearWaveSourceFctPt & source_fct_pt()
Access function: Pointer to source function.
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
Base class for finite elements that can compute the quantities that are required for the Z2 error est...
void fill_in_generic_residual_contribution_lin_wave(Vector< double > &residuals, DenseMatrix< double > &jacobian, unsigned flag)
Add element's contribution to elemental residual vector and/or Jacobian matrix flag=1: compute both f...
virtual RefineableElement * father_element_pt() const
Return a pointer to the father element.
void rebuild_from_sons(Mesh *&mesh_pt)
Rebuild from sons: empty.
void further_setup_hanging_nodes()
Perform additional hanging node procedures for variables that are not interpolated by all nodes...
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 operator=(const RefineableQLinearWaveElement< DIM, NNODE_1D > &)
Broken assignment operator.
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
unsigned nrecovery_order()
Order of recovery shape functions for Z2 error estimation: Same order as shape functions.
void operator=(const RefineableLinearWaveEquations< DIM > &)
Broken assignment operator.
RefineableQLinearWaveElement(const RefineableQLinearWaveElement< DIM, NNODE_1D > &dummy)
Broken copy constructor.
virtual unsigned u_index_lin_wave() const
Return the index at which the unknown value is stored. The default value, 0, is appropriate for singl...
LinearWaveSourceFctPt Source_fct_pt
Pointer to source function:
void further_build()
Further build: Copy source function pointer from father element.
Refineable version of LinearWave equations.
void get_flux(const Vector< double > &s, Vector< double > &flux) const
Get flux: flux[i] = du/dx_i.
RefineableLinearWaveEquations(const RefineableLinearWaveEquations< DIM > &dummy)
Broken copy constructor.
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...
virtual unsigned nvertex_node() const
RefineableLinearWaveEquations()
Constructor.
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement. ...
double nodal_value(const unsigned &n, const unsigned &i) const
Return the i-th value stored at local node n. Produces suitably interpolated values for hanging nodes...
void broken_assign(const std::string &class_name)
Issue error message and terminate execution.
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
unsigned ncont_interpolated_values() const
Number of continuously interpolated values: 1.
virtual Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element. Broken virtual function in "pure" finite elements...
RefineableQLinearWaveElement()
Constructor.
unsigned nvertex_node() const
Number of vertex nodes in the element.
unsigned nnode() const
Return the number of nodes.
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Get 'flux' for Z2 error recovery: Standard flux.from LinearWave equations.
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...
unsigned num_Z2_flux_terms()
Number of 'flux' terms for Z2 error estimation.