39 template<
unsigned SPATIAL_DIM>
44 template<
unsigned SPATIAL_DIM>
51 template<
unsigned SPATIAL_DIM,
unsigned NNODE_1D>
63 template<
unsigned SPATIAL_DIM>
120 double J = dshape_and_dtest_eulerian_at_knot_ust_heat(
130 double interpolated_u = 0.0;
240 template<
unsigned SPATIAL_DIM>
281 double u = interpolated_u_ust_heat(
s);
291 template<
unsigned SPATIAL_DIM>
323 template<
unsigned SPATIAL_DIM>
350 outfile << interpolated_u_ust_heat(
s) << std::endl;
362 template<
unsigned SPATIAL_DIM>
401 template<
unsigned SPATIAL_DIM>
404 const unsigned&
nplot,
457 template<
unsigned SPATIAL_DIM>
460 const unsigned&
nplot,
521 template<
unsigned SPATIAL_DIM>
550 outfile <<
"ZONE" << std::endl;
575 double u_fe = interpolated_u_ust_heat(
s);
610 template<
unsigned SPATIAL_DIM>
643 outfile <<
"ZONE" << std::endl;
667 double u_fe = interpolated_u_ust_heat(
s);
704 template<
unsigned SPATIAL_DIM>
709 file_out.setf(std::ios_base::uppercase);
722 file_out <<
"<?xml version=\"1.0\"?>\n"
723 <<
"<VTKFile type=\"UnstructuredGrid\" version=\"0.1\" "
724 <<
"byte_order=\"LittleEndian\">\n"
725 <<
"<UnstructuredGrid>\n"
736 file_out <<
"<PointData ";
744 for (
unsigned i = 0;
i <
ndof;
i++)
746 file_out <<
"<DataArray type=\"Float32\" "
748 <<
"format=\"ascii\""
766 <<
"<DataArray type=\"Float32\""
767 <<
" NumberOfComponents=\"" << 3 <<
"\" "
768 <<
"format=\"ascii\">\n";
781 <<
"<DataArray type=\"Int32\" Name=\""
782 <<
"connectivity\" format=\"ascii\">\n";
793 <<
"<DataArray type=\"Int32\" "
794 <<
"Name=\"offsets\" format=\"ascii\">\n";
804 <<
"<DataArray type=\"UInt8\" Name=\"types\">\n";
817 <<
"</UnstructuredGrid>\n"
A Class for the derivatives of shape functions The class design is essentially the same as Shape,...
virtual void scalar_value_paraview(std::ofstream &file_out, const unsigned &i, const unsigned &nplot) const
Write values of the i-th scalar field at the plot points. Broken virtual. Needs to be implemented for...
virtual unsigned nplot_points_paraview(const unsigned &nplot) const
Return the number of actual plot points for paraview plot with parameter nplot. Broken virtual; can b...
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 std::string scalar_name_paraview(const unsigned &i) const
Name of the i-th scalar field. Default implementation returns V1 for the first one,...
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.
virtual void write_paraview_type(std::ofstream &file_out, const unsigned &nplot) const
Return the paraview element type. Broken virtual. Needs to be implemented for each new geometric elem...
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 nscalar_paraview() const
Number of scalars/fields output by this element. Broken virtual. Needs to be implemented for each new...
virtual unsigned nplot_points(const unsigned &nplot) const
Return total number of plot points (when plotting nplot points in each "coordinate direction")
virtual unsigned nsub_elements_paraview(const unsigned &nplot) const
Return the number of local sub-elements for paraview plot with parameter nplot. Broken virtual; can b...
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"...
void output_paraview(std::ofstream &file_out, const unsigned &nplot) const
Paraview output – this outputs the coordinates at the plot points (for parameter nplot) to specified ...
void(* UnsteadyExactSolutionFctPt)(const double &, const Vector< double > &, Vector< double > &)
Function pointer for function that computes Vector-valued time-dependent function as .
virtual void write_paraview_offsets(std::ofstream &file_out, const unsigned &nplot, unsigned &offset_sum) const
Return the offsets for the paraview sub-elements. Broken virtual. Needs to be implemented for each ne...
virtual unsigned self_test()
Self-test: Check inversion of element & do self-test for GeneralisedElement. Return 0 if OK.
virtual void write_paraview_output_offset_information(std::ofstream &file_out, const unsigned &nplot, unsigned &counter) const
Fill in the offset information for paraview plot. Broken virtual. Needs to be implemented for each ne...
unsigned ndof() const
Return the number of equations/dofs in the element.
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.
static const unsigned Initial_Nvalue
Static array of ints to hold number of variables at nodes: Initial_Nvalue[n].
A Class for shape functions. In simple cases, the shape functions have only one index that can be tho...
void output_fct(std::ostream &outfile, const unsigned &nplot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
Output exact soln: x,y,u_exact or x,y,z,u_exact at nplot^SPATIAL_DIM plot points.
void compute_error(std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error, double &norm)
Get error and norm against exact solution.
void compute_norm(double &norm)
Compute norm of FE solution.
unsigned self_test()
Self-test: Return 0 for OK.
static double Default_beta_parameter
Static default value for the Beta parameter (thermal conductivity): One for natural scaling.
void output(std::ostream &outfile)
Output with default number of plot points.
virtual void fill_in_generic_residual_contribution_ust_heat(Vector< double > &residuals, DenseMatrix< double > &jacobian, const unsigned &flag)
Compute element residual Vector only (if flag=and/or element Jacobian matrix.
void output_element_paraview(std::ofstream &outfile, const unsigned &nplot)
C-style output FE representation of soln: x,y,u or x,y,z,u at nplot^SPATIAL_DIM plot points.
static double Default_alpha_parameter
Static default value for the Alpha parameter (thermal inertia): One for natural scaling.
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).