33 #ifndef OOMPH_REFINEABLE_GEN_AXISYM_ADVECTION_DIFFUSION_ELEMENTS_HEADER 34 #define OOMPH_REFINEABLE_GEN_AXISYM_ADVECTION_DIFFUSION_ELEMENTS_HEADER 38 #include <oomph-lib-config.h> 42 #include "../generic/refineable_quad_element.h" 43 #include "../generic/refineable_brick_element.h" 44 #include "../generic/error_estimator.h" 60 public virtual GeneralisedAxisymAdvectionDiffusionEquations,
68 GeneralisedAxisymAdvectionDiffusionEquations(),
79 "RefineableGeneralisedAxisymAdvectionDiffusionEquations");
112 const unsigned n_node =
nnode();
127 for(
unsigned l=0;l<n_node;l++)
129 values[0] += this->
nodal_value(l,u_nodal_index)*psi[l];
144 const unsigned n_node =
nnode();
159 for(
unsigned l=0;l<n_node;l++)
161 values[0] += this->
nodal_value(t,l,u_nodal_index)*psi[l];
174 cast_father_element_pt
179 this->
Source_fct_pt = cast_father_element_pt->source_fct_pt();
180 this->
Wind_fct_pt = cast_father_element_pt->wind_fct_pt();
183 this->
Diff_fct_pt = cast_father_element_pt->diff_fct_pt();
184 this->
Pe_pt = cast_father_element_pt->pe_pt();
185 this->
PeSt_pt = cast_father_element_pt->pe_st_pt();
210 template <
unsigned NNODE_1D>
233 "RefineableQuadGeneralisedAxisymAdvectionDiffusionElement");
284 template<
unsigned NNODE_1D>
Refineable version of QGeneralisedAxisymAdvectionDiffusionElement. Inherit from the standard QGeneral...
bool ALE_is_disabled
Boolean flag to indicate if ALE formulation is disabled when time-derivatives are computed...
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
GeneralisedAxisymAdvectionDiffusionSourceFctPt Source_fct_pt
Pointer to source function:
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.
GeneralisedAxisymAdvectionDiffusionWindFctPt & conserved_wind_fct_pt()
Access function: Pointer to additional (conservative) wind function.
GeneralisedAxisymAdvectionDiffusionWindFctPt Wind_fct_pt
Pointer to wind function:
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Get 'flux' for Z2 error recovery: Standard flux.from GeneralisedAxisymAdvectionDiffusion equations...
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...
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement. ...
RefineableQGeneralisedAxisymAdvectionDiffusionElement()
Empty Constructor:
unsigned ncont_interpolated_values() const
Broken assignment operator.
RefineableQGeneralisedAxisymAdvectionDiffusionElement(const RefineableQGeneralisedAxisymAdvectionDiffusionElement< NNODE_1D > &dummy)
Broken copy constructor.
void get_flux(const Vector< double > &s, Vector< double > &flux) const
Get flux: .
A version of the GeneralisedAxisymAdvectionDiffusion equations that can be used with non-uniform mesh...
double * PeSt_pt
Pointer to global Peclet number multiplied by Strouhal number.
GeneralisedAxisymAdvectionDiffusionWindFctPt Conserved_wind_fct_pt
Pointer to additional (conservative) wind function:
void fill_in_generic_residual_contribution_cons_axisym_adv_diff(Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix, unsigned flag)
Add the element's contribution to the elemental residual vector and/or Jacobian matrix flag=1: comput...
QGeneralisedAxisymAdvectionDiffusionElement elements are linear/quadrilateral/brick-shaped Advection ...
unsigned nrecovery_order()
Order of recovery shape functions for Z2 error estimation: Same order as shape functions.
unsigned num_Z2_flux_terms()
Broken assignment operator.
RefineableGeneralisedAxisymAdvectionDiffusionEquations(const RefineableGeneralisedAxisymAdvectionDiffusionEquations &dummy)
Broken copy constructor.
GeneralisedAxisymAdvectionDiffusionDiffFctPt Diff_fct_pt
Pointer to diffusivity funciton.
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 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...
void further_build()
Further build: Copy source function pointer from father element.
double geometric_jacobian(const Vector< double > &x)
Fill in the geometric Jacobian, which in this case is r.
unsigned nvertex_node() const
Number of vertex nodes in the element.
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
virtual unsigned u_index_cons_axisym_adv_diff() const
A class for all elements that solve the Advection Diffusion equations in conservative form using isop...
double * Pe_pt
Pointer to global Peclet number.
RefineableGeneralisedAxisymAdvectionDiffusionEquations()
Empty Constructor.
unsigned nnode() const
Return the number of nodes.
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...