32 #ifndef OOMPH_REFINEABLE_PML_HELMHOLTZ_ELEMENTS_HEADER 33 #define OOMPH_REFINEABLE_PML_HELMHOLTZ_ELEMENTS_HEADER 37 #include <oomph-lib-config.h> 42 #include "../generic/refineable_quad_element.h" 43 #include "../generic/refineable_brick_element.h" 44 #include "../generic/hp_refineable_elements.h" 45 #include "../generic/error_estimator.h" 61 template <
unsigned DIM,
class PML_ELEMENT>
100 for (
unsigned i=0;
i<DIM;
i++)
102 flux[count]=complex_flux[
i].real();
104 flux[count]=complex_flux[
i].imag();
120 unsigned n_node =
nnode();
136 for(
unsigned l=0;l<n_node;l++)
138 values[0] += this->
nodal_value(l,u_nodal_index.real())*psi[l];
139 values[1] += this->
nodal_value(l,u_nodal_index.imag())*psi[l];
154 "Time-dependent version of get_interpolated_values() ";
155 error_message +=
"not implemented for this element \n";
158 "RefineablePMLHelmholtzEquations::get_interpolated_values()",
159 OOMPH_EXCEPTION_LOCATION);
187 const unsigned& flag);
197 template <
unsigned DIM,
unsigned NNODE_1D,
class PML_ELEMENT>
266 template<
unsigned DIM,
unsigned NNODE_1D,
class PML_ELEMENT>
268 public virtual QElement<DIM-1,NNODE_1D>
283 template<
unsigned NNODE_1D,
class PML_ELEMENT>
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
unsigned num_Z2_flux_terms()
Broken assignment operator.
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.
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...
PMLHelmholtzSourceFctPt Source_fct_pt
Pointer to source function:
PMLHelmholtzSourceFctPt & source_fct_pt()
Access function: Pointer to source function.
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 get_flux(const Vector< double > &s, Vector< std::complex< double > > &flux) const
Get flux: flux[i] = du/dx_i for real and imag part.
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
RefineableQPMLHelmholtzElement()
Constructor, simply call the other constructors.
RefineablePMLHelmholtzEquations(const RefineablePMLHelmholtzEquations< DIM, PML_ELEMENT > &dummy)
Broken copy constructor.
void further_build()
Further build: Copy source function pointer from father element.
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement. ...
void fill_in_generic_residual_contribution_helmholtz(Vector< double > &residuals, DenseMatrix< double > &jacobian, const unsigned &flag)
Add element's contribution to elemental residual vector and/or Jacobian matrix flag=1: compute both f...
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
EquivalentQElement()
Constructor: Call the constructor for the appropriate QElement.
virtual unsigned nvertex_node() const
void rebuild_from_sons(Mesh *&mesh_pt)
Rebuild from sons: empty.
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Get 'flux' for Z2 error recovery: Complex flux from PMLHelmholtz equations, strung together...
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 further_setup_hanging_nodes()
Perform additional hanging node procedures for variables that are not interpolated by all nodes...
unsigned nrecovery_order()
Order of recovery shape functions for Z2 error estimation: Same order as shape functions.
std::string string(const unsigned &i)
Return the i-th string or "" if the relevant string hasn't been defined.
virtual std::complex< unsigned > u_index_helmholtz() const
Broken assignment operator.
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...
unsigned nvertex_node() const
Number of vertex nodes in the element.
QPMLHelmholtzElement elements are linear/quadrilateral/ brick-shaped PMLHelmholtz elements with isopa...
RefineableQPMLHelmholtzElement(const RefineableQPMLHelmholtzElement< DIM, NNODE_1D, PML_ELEMENT > &dummy)
Broken copy constructor.
unsigned nnode() const
Return the number of nodes.
unsigned ncont_interpolated_values() const
Broken assignment operator.
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...
RefineablePMLHelmholtzEquations()
Constructor, simply call other constructors.