29 #ifndef OOMPH_REFINEABLE_SPHERICAL_ADVECTION_DIFFUSION_ELEMENTS_HEADER
30 #define OOMPH_REFINEABLE_SPHERICAL_ADVECTION_DIFFUSION_ELEMENTS_HEADER
34 #include <oomph-lib-config.h>
38 #include "../generic/refineable_quad_element.h"
39 #include "../generic/refineable_brick_element.h"
40 #include "../generic/error_estimator.h"
102 unsigned n_node =
nnode();
117 for (
unsigned l = 0; l < n_node; l++)
119 values[0] += this->
nodal_value(l, u_nodal_index) * psi[l];
135 const unsigned n_node =
nnode();
150 for (
unsigned l = 0; l < n_node; l++)
152 values[0] += this->
nodal_value(t, l, u_nodal_index) * psi[l];
159 "Time-dependent version of get_interpolated_values() ";
160 error_message +=
"not implemented for this element \n";
162 "RefineableSphericalAdvectionDiffusionEquations::"
163 "get_interpolated_values()",
178 return x[0] *
x[0] *
sin(
x[1]);
191 this->
Pe_pt = cast_father_element_pt->
pe_pt();
209 unsigned n_node = this->
nnode();
224 unsigned n_u_dof = 0;
225 for (
unsigned l = 0; l < n_node; l++)
227 unsigned n_master = 1;
236 n_master = hang_info_pt->
nmaster();
245 for (
unsigned m = 0;
m < n_master;
m++)
269 du_ddata.resize(n_u_dof, 0.0);
270 global_eqn_number.resize(n_u_dof, 0);
275 for (
unsigned l = 0; l < n_node; l++)
277 unsigned n_master = 1;
278 double hang_weight = 1.0;
287 n_master = hang_info_pt->
nmaster();
296 for (
unsigned m = 0;
m < n_master;
m++)
326 global_eqn_number[count] = global_eqn;
328 du_ddata[count] = psi[l] * hang_weight;
355 template<
unsigned NNODE_1D>
406 return (NNODE_1D - 1);
426 template<
unsigned NNODE_1D>
428 :
public virtual QElement<1, NNODE_1D>
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137
long & eqn_number(const unsigned &i)
Return the equation number of the i-th stored variable.
Definition: nodes.h:367
Definition: error_estimator.h:79
FaceGeometry()
Definition: refineable_spherical_advection_diffusion_elements.h:433
Definition: elements.h:4998
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Definition: elements.h:2175
double nodal_value(const unsigned &n, const unsigned &i) const
Definition: elements.h:2593
virtual void shape(const Vector< double > &s, Shape &psi) const =0
unsigned nnode() const
Return the number of nodes.
Definition: elements.h:2210
double const & master_weight(const unsigned &i) const
Return weight for dofs on i-th master node.
Definition: nodes.h:808
Node *const & master_node_pt(const unsigned &i) const
Return a pointer to the i-th master node.
Definition: nodes.h:791
unsigned nmaster() const
Return the number of master nodes.
Definition: nodes.h:785
HangInfo *const & hanging_pt() const
Definition: nodes.h:1228
bool is_hanging() const
Test whether the node is geometrically hanging.
Definition: nodes.h:1285
Definition: oomph_definitions.h:222
unsigned nvertex_node() const
Number of vertex nodes in the element.
Definition: Qelements.h:907
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
Definition: Qelements.h:913
Definition: Qelements.h:459
Definition: spherical_advection_diffusion_elements.h:486
Definition: refineable_elements.h:97
virtual RefineableElement * father_element_pt() const
Return a pointer to the father element.
Definition: refineable_elements.h:539
Definition: Qelements.h:2259
Definition: refineable_spherical_advection_diffusion_elements.h:360
void further_setup_hanging_nodes()
Definition: refineable_spherical_advection_diffusion_elements.h:411
unsigned ncont_interpolated_values() const
Number of continuously interpolated values: 1.
Definition: refineable_spherical_advection_diffusion_elements.h:382
RefineableQSphericalAdvectionDiffusionElement(const RefineableQSphericalAdvectionDiffusionElement< NNODE_1D > &dummy)=delete
Broken copy constructor.
void operator=(const RefineableQSphericalAdvectionDiffusionElement< NNODE_1D > &)=delete
Broken assignment operator.
unsigned nrecovery_order()
Definition: refineable_spherical_advection_diffusion_elements.h:404
void rebuild_from_sons(Mesh *&mesh_pt)
Rebuild from sons: empty.
Definition: refineable_spherical_advection_diffusion_elements.h:400
RefineableQSphericalAdvectionDiffusionElement()
Empty Constructor:
Definition: refineable_spherical_advection_diffusion_elements.h:363
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
Definition: refineable_spherical_advection_diffusion_elements.h:394
unsigned nvertex_node() const
Number of vertex nodes in the element.
Definition: refineable_spherical_advection_diffusion_elements.h:388
Definition: refineable_spherical_advection_diffusion_elements.h:58
void fill_in_generic_residual_contribution_spherical_adv_diff(Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix, unsigned flag)
Definition: refineable_spherical_advection_diffusion_elements.cc:37
void get_interpolated_values(const unsigned &t, const Vector< double > &s, Vector< double > &values)
Definition: refineable_spherical_advection_diffusion_elements.h:127
void further_build()
Further build: Copy source function pointer from father element.
Definition: refineable_spherical_advection_diffusion_elements.h:182
RefineableSphericalAdvectionDiffusionEquations()
Empty Constructor.
Definition: refineable_spherical_advection_diffusion_elements.h:61
unsigned num_Z2_flux_terms()
Number of 'flux' terms for Z2 error estimation.
Definition: refineable_spherical_advection_diffusion_elements.h:78
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Definition: refineable_spherical_advection_diffusion_elements.h:85
void dinterpolated_u_adv_diff_ddata(const Vector< double > &s, Vector< double > &du_ddata, Vector< unsigned > &global_eqn_number)
Definition: refineable_spherical_advection_diffusion_elements.h:204
RefineableSphericalAdvectionDiffusionEquations(const RefineableSphericalAdvectionDiffusionEquations &dummy)=delete
Broken copy constructor.
double geometric_jacobian(const Vector< double > &x)
Fill in the geometric Jacobian, which in this case is r*r*sin(theta)
Definition: refineable_spherical_advection_diffusion_elements.h:176
void operator=(const RefineableSphericalAdvectionDiffusionEquations &)=delete
Broken assignment operator.
void get_interpolated_values(const Vector< double > &s, Vector< double > &values)
Definition: refineable_spherical_advection_diffusion_elements.h:95
Definition: spherical_advection_diffusion_elements.h:54
double * PeSt_pt
Pointer to global Peclet number multiplied by Strouhal number.
Definition: spherical_advection_diffusion_elements.h:456
void get_flux(const Vector< double > &s, Vector< double > &flux) const
Definition: spherical_advection_diffusion_elements.h:264
SphericalAdvectionDiffusionSourceFctPt Source_fct_pt
Pointer to source function:
Definition: spherical_advection_diffusion_elements.h:459
SphericalAdvectionDiffusionWindFctPt Wind_fct_pt
Pointer to wind function:
Definition: spherical_advection_diffusion_elements.h:462
double *& pe_st_pt()
Pointer to Peclet number multipled by Strouha number.
Definition: spherical_advection_diffusion_elements.h:212
SphericalAdvectionDiffusionSourceFctPt & source_fct_pt()
Access function: Pointer to source function.
Definition: spherical_advection_diffusion_elements.h:165
virtual unsigned u_index_spherical_adv_diff() const
Definition: spherical_advection_diffusion_elements.h:91
double * Pe_pt
Pointer to global Peclet number.
Definition: spherical_advection_diffusion_elements.h:453
double *& pe_pt()
Pointer to Peclet number.
Definition: spherical_advection_diffusion_elements.h:200
SphericalAdvectionDiffusionWindFctPt & wind_fct_pt()
Access function: Pointer to wind function.
Definition: spherical_advection_diffusion_elements.h:179
RealScalar s
Definition: level1_cplx_impl.h:130
int * m
Definition: level2_cplx_impl.h:294
void flux(const double &time, const Vector< double > &x, double &flux)
Get flux applied along boundary x=0.
Definition: pretend_melt.cc:59
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2