36 template<
unsigned DIM>
72 for (
unsigned i = 0;
i <
DIM;
i++)
99 for (
unsigned i = 0;
i <
DIM;
i++)
105 for (
unsigned i = 0;
i <
DIM;
i++)
111 for (
unsigned i = 0;
i <
DIM;
i++)
120 for (
unsigned i = 0;
i <
DIM;
i++)
138 template<
unsigned DIM>
142 const unsigned&
flag)
170 double J = this->dshape_and_dtest_eulerian_at_knot_poisson(
191 for (
unsigned j = 0;
j <
DIM;
j++)
259 for (
unsigned k = 0;
k <
DIM;
k++)
319 for (
unsigned i = 0;
i <
DIM;
i++)
344 template<
unsigned DIM>
395 const double J = this->dshape_and_dtest_eulerian_at_knot_poisson(
412 for (
unsigned i = 0;
i <
DIM;
i++)
425 for (
unsigned p = 0;
p <
DIM;
p++)
427 for (
unsigned i = 0;
i <
DIM;
i++)
501 for (
unsigned p = 0;
p <
DIM;
p++)
509 for (
unsigned i = 0;
i <
DIM;
i++)
528 template<
unsigned DIM>
569 for (
unsigned i = 0;
i <
DIM;
i++)
594 for (
unsigned i = 0;
i <
DIM;
i++)
598 for (
unsigned i = 0;
i <
DIM;
i++)
605 for (
unsigned i = 0;
i <
DIM;
i++)
614 template<
unsigned DIM>
617 if (this->tree_pt()->father_pt() != 0)
A Class for the derivatives of shape functions The class design is essentially the same as Shape,...
virtual double J_eulerian(const Vector< double > &s) const
Return the Jacobian of mapping from local to global coordinates at local position s.
Integral *const & integral_pt() const
Return the pointer to the integration scheme (const version)
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...
virtual std::string tecplot_zone_string(const unsigned &nplot) const
Return string for tecplot zone header (when plotting nplot points in each "coordinate direction")
virtual double interpolated_x(const Vector< double > &s, const unsigned &i) const
Return FE interpolated coordinate x[i] at local coordinate s.
int nodal_local_eqn(const unsigned &n, const unsigned &i) const
Return the local equation number corresponding to the i-th value at the n-th local node.
unsigned nnode() const
Return the number of nodes.
void(* SteadyExactSolutionFctPt)(const Vector< double > &, Vector< double > &)
Function pointer for function that computes vector-valued steady "exact solution" as .
double nodal_position(const unsigned &n, const unsigned &i) const
Return the i-th coordinate at local node n. If the node is hanging, the appropriate interpolation is ...
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Class that contains data for hanging nodes.
virtual double knot(const unsigned &i, const unsigned &j) const =0
Return local coordinate s[j] of i-th integration point.
virtual unsigned nweight() const =0
Return the number of integration points of the scheme.
virtual double weight(const unsigned &i) const =0
Return weight of i-th integration point.
bool is_hanging() const
Test whether the node is geometrically hanging.
HangInfo *const & hanging_pt() const
Return pointer to hanging node data (this refers to the geometric hanging node status) (const version...
A class that is used to template the p-refineable Q elements by dimension. It's really nothing more t...
void further_build()
Further build: e.g. deal with interpolation of internal values.
void compute_energy_error(std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_grad_pt, double &error, double &norm)
Get error against and norm of exact solution.
void get_flux(const Vector< double > &s, Vector< double > &flux) const
Get flux: flux[i] = du/dx_i.
virtual void get_dresidual_dnodal_coordinates(RankThreeTensor< double > &dresidual_dnodal_coordinates)
Compute derivatives of elemental residual vector with respect to nodal coordinates....
void fill_in_generic_residual_contribution_poisson(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...
void compute_exact_Z2_error(std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_flux_pt, double &error, double &norm)
Get error against and norm of exact flux.
void further_build()
Further build: Copy source function pointer from father element.
A Class for shape functions. In simple cases, the shape functions have only one index that can be tho...
TAdvectionDiffusionReactionElement<NREAGENT,DIM,NNODE_1D> elements are isoparametric triangular DIM-d...
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Get 'flux' for Z2 error recovery: Standard flux.from AdvectionDiffusionReaction equations.
TAdvectionDiffusionReactionElement()
Constructor: Call constructors for TElement and AdvectionDiffusionReaction equations.
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).