27 #ifndef OOMPH_SPECTRAL_POISSON_ELEMENTS_HEADER
28 #define OOMPH_SPECTRAL_POISSON_ELEMENTS_HEADER
32 #include <oomph-lib-config.h>
37 #include "../generic/Qspectral_elements.h"
48 template<
unsigned DIM,
unsigned NNODE_1D>
95 void output(std::ostream& outfile,
const unsigned& n_plot)
111 void output(FILE* file_pt,
const unsigned& n_plot)
120 const unsigned& n_plot,
131 const unsigned& n_plot,
182 template<
unsigned DIM,
unsigned NNODE_1D>
191 double J = this->dshape_eulerian(
s, psi, dpsidx);
195 unsigned nnod = this->nnode();
196 for (
unsigned i = 0;
i < nnod;
i++)
199 for (
unsigned j = 0; j < DIM; j++)
201 dtestdx(
i, j) = dpsidx(
i, j);
215 template<
unsigned DIM,
unsigned NNODE_1D>
224 double J = this->dshape_eulerian_at_knot(ipt, psi, dpsidx);
242 template<
unsigned DIM,
unsigned NNODE_1D>
255 const double J = this->dshape_eulerian_at_knot(
256 ipt, psi, dpsidx, djacobian_dX, d_dpsidx_dX);
261 d_dtestdx_dX = d_dpsidx_dX;
278 template<
unsigned DIM,
unsigned NNODE_1D>
292 template<
unsigned NNODE_1D>
A Class for the derivatives of shape functions The class design is essentially the same as Shape,...
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement.
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement.
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
void(* SteadyExactSolutionFctPt)(const Vector< double > &, Vector< double > &)
Function pointer for function that computes vector-valued steady "exact solution" as .
void(* UnsteadyExactSolutionFctPt)(const double &, const Vector< double > &, Vector< double > &)
Function pointer for function that computes Vector-valued time-dependent function as .
/////////////////////////////////////////////////////////////////////// /////////////////////////////...
A class for all isoparametric elements that solve the Poisson equations.
void output(std::ostream &outfile)
Output with default number of plot points.
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.
General QLegendreElement class.
QSpectralPoissonElement elements are linear/quadrilateral/brick-shaped Poisson elements with isoparam...
void output(std::ostream &outfile, const unsigned &n_plot)
Output function: x,y,u or x,y,z,u at n_plot^DIM plot points.
void output_fct(std::ostream &outfile, const unsigned &n_plot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
Output function for an exact solution: x,y,u_exact or x,y,z,u_exact at n_plot^DIM plot points.
QSpectralPoissonElement()
Constructor: Call constructors for QSpectralElement and Poisson equations.
double dshape_and_dtest_eulerian_at_knot_poisson(const unsigned &ipt, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const
Shape, test functions & derivs. w.r.t. to global coords. at integration point ipt....
QSpectralPoissonElement(const QSpectralPoissonElement< DIM, NNODE_1D > &dummy)=delete
Broken copy constructor.
unsigned required_nvalue(const unsigned &n) const
Broken assignment operator.
void output(std::ostream &outfile)
Output function: x,y,u or x,y,z,u.
void output_fct(std::ostream &outfile, const unsigned &n_plot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt)
Output function for a time-dependent exact solution. x,y,u_exact or x,y,z,u_exact at n_plot^DIM plot ...
void output(FILE *file_pt, const unsigned &n_plot)
C-style output function: x,y,u or x,y,z,u at n_plot^DIM plot points.
static const unsigned Initial_Nvalue
Static array of ints to hold number of variables at nodes: Initial_Nvalue[n].
double dshape_and_dtest_eulerian_poisson(const Vector< double > &s, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const
Shape, test functions & derivs. w.r.t. to global coords. Return Jacobian.
void output(FILE *file_pt)
C-style output function: x,y,u or x,y,z,u.
////////////////////////////////////////////////////////////////// //////////////////////////////////...
A Class for shape functions. In simple cases, the shape functions have only one index that can be tho...
//////////////////////////////////////////////////////////////////// ////////////////////////////////...