36 template<
unsigned DIM,
unsigned NNODE_1D>
48 template<
unsigned DIM>
77 double J = dshape_and_dtest_eulerian_at_knot_poisson(
85 double interpolated_u = 0.0;
98 for (
unsigned j = 0;
j <
DIM;
j++)
126 for (
unsigned k = 0;
k <
DIM;
k++)
143 for (
unsigned i = 0;
i <
DIM;
i++)
164 template<
unsigned DIM>
207 const double J = dshape_and_dtest_eulerian_at_knot_poisson(
224 for (
unsigned i = 0;
i <
DIM;
i++)
232 for (
unsigned q = 0; q <
n_node; q++)
235 for (
unsigned p = 0;
p <
DIM;
p++)
237 for (
unsigned i = 0;
i <
DIM;
i++)
269 for (
unsigned p = 0;
p <
DIM;
p++)
272 for (
unsigned q = 0; q <
n_node; q++)
277 for (
unsigned i = 0;
i <
DIM;
i++)
297 template<
unsigned DIM>
327 template<
unsigned DIM>
329 const unsigned&
nplot)
344 for (
unsigned i = 0;
i <
DIM;
i++)
348 outfile << interpolated_u_poisson(
s) << std::endl;
363 template<
unsigned DIM>
379 for (
unsigned i = 0;
i <
DIM;
i++)
399 template<
unsigned DIM>
402 const unsigned&
nplot,
431 for (
unsigned i = 0;
i <
DIM;
i++)
446 template<
unsigned DIM>
470 for (
unsigned i = 0;
i <
DIM;
i++)
485 u = this->interpolated_u_poisson(
s);
499 template<
unsigned DIM>
525 outfile <<
"ZONE" << std::endl;
534 for (
unsigned i = 0;
i <
DIM;
i++)
552 double u_fe = interpolated_u_poisson(
s);
558 for (
unsigned i = 0;
i <
DIM;
i++)
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)
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 .
virtual void get_s_plot(const unsigned &i, const unsigned &nplot, Vector< double > &s, const bool &shifted_to_interior=false) const
Get cector of local coordinates of plot point i (when plotting nplot points in each "coordinate direc...
virtual unsigned nplot_points(const unsigned &nplot) const
Return total number of plot points (when plotting nplot points in each "coordinate direction")
double raw_nodal_value(const unsigned &n, const unsigned &i) const
Return the i-th value stored at local node n but do NOT take hanging nodes into account.
double raw_nodal_position(const unsigned &n, const unsigned &i) const
Return the i-th coordinate at local node n. Do not use the hanging node representation....
virtual void write_tecplot_zone_footer(std::ostream &outfile, const unsigned &nplot) const
Add tecplot zone "footer" to output stream (when plotting nplot points in each "coordinate direction"...
virtual unsigned self_test()
Self-test: Check inversion of element & do self-test for GeneralisedElement. Return 0 if OK.
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.
virtual void fill_in_generic_residual_contribution_poisson(Vector< double > &residuals, DenseMatrix< double > &jacobian, const unsigned &flag)
Compute element residual Vector only (if flag=and/or element Jacobian matrix.
unsigned self_test()
Self-test: Return 0 for OK.
void output(std::ostream &outfile)
Output with default number of plot points.
void compute_norm(double &norm)
Compute norm of solution: square of the L2 norm.
virtual void get_dresidual_dnodal_coordinates(RankThreeTensor< double > &dresidual_dnodal_coordinates)
Compute derivatives of elemental residual vector with respect to nodal coordinates....
void compute_error(std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error, double &norm)
Get error against and norm of exact solution.
void output_fct(std::ostream &outfile, const unsigned &n_plot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
Output exact soln: x,y,u_exact or x,y,z,u_exact at n_plot^DIM plot points.
static const unsigned Initial_Nvalue
Static int that holds the number of variables at nodes: always the same.
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...
TAdvectionDiffusionReactionElement()
Constructor: Call constructors for TElement and AdvectionDiffusionReaction equations.
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).