oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D > Class Template Reference

#include <discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.h>

+ Inheritance diagram for oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >:

Public Member Functions

 QUnsteadyHeatMixedOrderSpaceTimeElement ()
 
 QUnsteadyHeatMixedOrderSpaceTimeElement (const QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D > &dummy)=delete
 Broken copy constructor. More...
 
unsigned required_nvalue (const unsigned &n) const
 Required number of 'values' (pinned or dofs) at node n. More...
 
void output (std::ostream &outfile)
 
void output (std::ostream &outfile, const unsigned &n_plot)
 
void output (FILE *file_pt)
 
void output (FILE *file_pt, const unsigned &n_plot)
 
void output_fct (std::ostream &outfile, const unsigned &n_plot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
 
void output_fct (std::ostream &outfile, const unsigned &n_plot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt)
 
double dshape_and_dtest_eulerian_ust_heat (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. More...
 
double dshape_and_dtest_eulerian_at_knot_ust_heat (const unsigned &ipt, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const
 
- Public Member Functions inherited from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >
 SpaceTimeUnsteadyHeatMixedOrderEquations ()
 
 SpaceTimeUnsteadyHeatMixedOrderEquations (const SpaceTimeUnsteadyHeatMixedOrderEquations &dummy)=delete
 Broken copy constructor. More...
 
void disable_ALE ()
 
void enable_ALE ()
 
void compute_norm (double &norm)
 Compute norm of FE solution. More...
 
void compute_error (std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error, double &norm)
 Get error and norm against exact solution. More...
 
void compute_error (std::ostream &outfile, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt, const double &time, double &error, double &norm)
 Get error and norm against exact solution. More...
 
void output_element_paraview (std::ofstream &outfile, const unsigned &nplot)
 
unsigned nscalar_paraview () const
 
void scalar_value_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot) const
 
void scalar_value_fct_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt) const
 
void scalar_value_fct_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt) const
 
std::string scalar_name_paraview (const unsigned &i) const
 
SpaceTimeUnsteadyHeatSourceFctPtsource_fct_pt ()
 Access function: Pointer to source function. More...
 
SpaceTimeUnsteadyHeatSourceFctPt source_fct_pt () const
 Access function: Pointer to source function. Const version. More...
 
virtual void get_source_ust_heat (const double &t, const unsigned &ipt, const Vector< double > &x, double &source) const
 
const doublealpha () const
 Alpha parameter (thermal inertia) More...
 
double *& alpha_pt ()
 Pointer to Alpha parameter (thermal inertia) More...
 
const doublebeta () const
 Beta parameter (thermal conductivity) More...
 
double *& beta_pt ()
 Pointer to Beta parameter (thermal conductivity) More...
 
void get_flux (const Vector< double > &s, Vector< double > &flux) const
 Get flux: flux[i]=du/dx_i. More...
 
void fill_in_contribution_to_residuals (Vector< double > &residuals)
 Compute element residual Vector (wrapper) More...
 
void fill_in_contribution_to_jacobian (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 Compute element residual Vector and element Jacobian matrix (wrapper) More...
 
double interpolated_u_ust_heat (const Vector< double > &s) const
 Return FE representation of function value u(s) at local coordinate s. More...
 
virtual unsigned u_index_ust_heat () const
 
double interpolated_u_ust_heat (const unsigned &t, const Vector< double > &s) const
 
double du_dt_ust_heat (const unsigned &n) const
 
double interpolated_du_dt_ust_heat (const Vector< double > &s) const
 
unsigned self_test ()
 Self-test: Return 0 for OK. More...
 
- Public Member Functions inherited from oomph::FiniteElement
void set_dimension (const unsigned &dim)
 
void set_nodal_dimension (const unsigned &nodal_dim)
 
void set_nnodal_position_type (const unsigned &nposition_type)
 Set the number of types required to interpolate the coordinate. More...
 
void set_n_node (const unsigned &n)
 
int nodal_local_eqn (const unsigned &n, const unsigned &i) const
 
double dJ_eulerian_at_knot (const unsigned &ipt, Shape &psi, DenseMatrix< double > &djacobian_dX) const
 
 FiniteElement ()
 Constructor. More...
 
virtual ~FiniteElement ()
 
 FiniteElement (const FiniteElement &)=delete
 Broken copy constructor. More...
 
virtual bool local_coord_is_valid (const Vector< double > &s)
 Broken assignment operator. More...
 
virtual void move_local_coord_back_into_element (Vector< double > &s) const
 
void get_centre_of_gravity_and_max_radius_in_terms_of_zeta (Vector< double > &cog, double &max_radius) const
 
virtual void local_coordinate_of_node (const unsigned &j, Vector< double > &s) const
 
virtual void local_fraction_of_node (const unsigned &j, Vector< double > &s_fraction)
 
virtual double local_one_d_fraction_of_node (const unsigned &n1d, const unsigned &i)
 
virtual void set_macro_elem_pt (MacroElement *macro_elem_pt)
 
MacroElementmacro_elem_pt ()
 Access function to pointer to macro element. More...
 
void get_x (const Vector< double > &s, Vector< double > &x) const
 
void get_x (const unsigned &t, const Vector< double > &s, Vector< double > &x)
 
virtual void get_x_from_macro_element (const Vector< double > &s, Vector< double > &x) const
 
virtual void get_x_from_macro_element (const unsigned &t, const Vector< double > &s, Vector< double > &x)
 
virtual void set_integration_scheme (Integral *const &integral_pt)
 Set the spatial integration scheme. More...
 
Integral *const & integral_pt () const
 Return the pointer to the integration scheme (const version) More...
 
virtual void shape (const Vector< double > &s, Shape &psi) const =0
 
virtual void shape_at_knot (const unsigned &ipt, Shape &psi) const
 
virtual void dshape_local (const Vector< double > &s, Shape &psi, DShape &dpsids) const
 
virtual void dshape_local_at_knot (const unsigned &ipt, Shape &psi, DShape &dpsids) const
 
virtual void d2shape_local (const Vector< double > &s, Shape &psi, DShape &dpsids, DShape &d2psids) const
 
virtual void d2shape_local_at_knot (const unsigned &ipt, Shape &psi, DShape &dpsids, DShape &d2psids) const
 
virtual double J_eulerian (const Vector< double > &s) const
 
virtual double J_eulerian_at_knot (const unsigned &ipt) const
 
void check_J_eulerian_at_knots (bool &passed) const
 
void check_jacobian (const double &jacobian) const
 
double dshape_eulerian (const Vector< double > &s, Shape &psi, DShape &dpsidx) const
 
virtual double dshape_eulerian_at_knot (const unsigned &ipt, Shape &psi, DShape &dpsidx) const
 
virtual double dshape_eulerian_at_knot (const unsigned &ipt, Shape &psi, DShape &dpsi, DenseMatrix< double > &djacobian_dX, RankFourTensor< double > &d_dpsidx_dX) const
 
double d2shape_eulerian (const Vector< double > &s, Shape &psi, DShape &dpsidx, DShape &d2psidx) const
 
virtual double d2shape_eulerian_at_knot (const unsigned &ipt, Shape &psi, DShape &dpsidx, DShape &d2psidx) const
 
virtual void assign_nodal_local_eqn_numbers (const bool &store_local_dof_pt)
 
virtual void describe_local_dofs (std::ostream &out, const std::string &current_string) const
 
virtual void describe_nodal_local_dofs (std::ostream &out, const std::string &current_string) const
 
virtual void assign_all_generic_local_eqn_numbers (const bool &store_local_dof_pt)
 
Node *& node_pt (const unsigned &n)
 Return a pointer to the local node n. More...
 
Node *const & node_pt (const unsigned &n) const
 Return a pointer to the local node n (const version) More...
 
unsigned nnode () const
 Return the number of nodes. More...
 
virtual unsigned nnode_1d () const
 
double raw_nodal_position (const unsigned &n, const unsigned &i) const
 
double raw_nodal_position (const unsigned &t, const unsigned &n, const unsigned &i) const
 
double raw_dnodal_position_dt (const unsigned &n, const unsigned &i) const
 
double raw_dnodal_position_dt (const unsigned &n, const unsigned &j, const unsigned &i) const
 
double raw_nodal_position_gen (const unsigned &n, const unsigned &k, const unsigned &i) const
 
double raw_nodal_position_gen (const unsigned &t, const unsigned &n, const unsigned &k, const unsigned &i) const
 
double raw_dnodal_position_gen_dt (const unsigned &n, const unsigned &k, const unsigned &i) const
 
double raw_dnodal_position_gen_dt (const unsigned &j, const unsigned &n, const unsigned &k, const unsigned &i) const
 
double nodal_position (const unsigned &n, const unsigned &i) const
 
double nodal_position (const unsigned &t, const unsigned &n, const unsigned &i) const
 
double dnodal_position_dt (const unsigned &n, const unsigned &i) const
 Return the i-th component of nodal velocity: dx/dt at local node n. More...
 
double dnodal_position_dt (const unsigned &n, const unsigned &j, const unsigned &i) const
 
double nodal_position_gen (const unsigned &n, const unsigned &k, const unsigned &i) const
 
double nodal_position_gen (const unsigned &t, const unsigned &n, const unsigned &k, const unsigned &i) const
 
double dnodal_position_gen_dt (const unsigned &n, const unsigned &k, const unsigned &i) const
 
double dnodal_position_gen_dt (const unsigned &j, const unsigned &n, const unsigned &k, const unsigned &i) const
 
virtual void get_dresidual_dnodal_coordinates (RankThreeTensor< double > &dresidual_dnodal_coordinates)
 
unsigned nnodal_position_type () const
 
bool has_hanging_nodes () const
 
unsigned nodal_dimension () const
 Return the required Eulerian dimension of the nodes in this element. More...
 
virtual unsigned nvertex_node () const
 
virtual Nodevertex_node_pt (const unsigned &j) const
 
virtual Nodeconstruct_node (const unsigned &n)
 
virtual Nodeconstruct_node (const unsigned &n, TimeStepper *const &time_stepper_pt)
 
virtual Nodeconstruct_boundary_node (const unsigned &n)
 
virtual Nodeconstruct_boundary_node (const unsigned &n, TimeStepper *const &time_stepper_pt)
 
int get_node_number (Node *const &node_pt) const
 
virtual Nodeget_node_at_local_coordinate (const Vector< double > &s) const
 
double raw_nodal_value (const unsigned &n, const unsigned &i) const
 
double raw_nodal_value (const unsigned &t, const unsigned &n, const unsigned &i) const
 
double nodal_value (const unsigned &n, const unsigned &i) const
 
double nodal_value (const unsigned &t, const unsigned &n, const unsigned &i) const
 
unsigned dim () const
 
virtual ElementGeometry::ElementGeometry element_geometry () const
 Return the geometry type of the element (either Q or T usually). More...
 
virtual double interpolated_x (const Vector< double > &s, const unsigned &i) const
 Return FE interpolated coordinate x[i] at local coordinate s. More...
 
virtual double interpolated_x (const unsigned &t, const Vector< double > &s, const unsigned &i) const
 
virtual void interpolated_x (const Vector< double > &s, Vector< double > &x) const
 Return FE interpolated position x[] at local coordinate s as Vector. More...
 
virtual void interpolated_x (const unsigned &t, const Vector< double > &s, Vector< double > &x) const
 
virtual double interpolated_dxdt (const Vector< double > &s, const unsigned &i, const unsigned &t)
 
virtual void interpolated_dxdt (const Vector< double > &s, const unsigned &t, Vector< double > &dxdt)
 
unsigned ngeom_data () const
 
Datageom_data_pt (const unsigned &j)
 
void position (const Vector< double > &zeta, Vector< double > &r) const
 
void position (const unsigned &t, const Vector< double > &zeta, Vector< double > &r) const
 
void dposition_dt (const Vector< double > &zeta, const unsigned &t, Vector< double > &drdt)
 
virtual double zeta_nodal (const unsigned &n, const unsigned &k, const unsigned &i) const
 
void interpolated_zeta (const Vector< double > &s, Vector< double > &zeta) const
 
void locate_zeta (const Vector< double > &zeta, GeomObject *&geom_object_pt, Vector< double > &s, const bool &use_coordinate_as_initial_guess=false)
 
virtual void node_update ()
 
virtual void identify_field_data_for_interactions (std::set< std::pair< Data *, unsigned >> &paired_field_data)
 
virtual void identify_geometric_data (std::set< Data * > &geometric_data_pt)
 
virtual double s_min () const
 Min value of local coordinate. More...
 
virtual double s_max () const
 Max. value of local coordinate. More...
 
double size () const
 
virtual double compute_physical_size () const
 
virtual void point_output_data (const Vector< double > &s, Vector< double > &data)
 
void point_output (std::ostream &outfile, const Vector< double > &s)
 
virtual unsigned nplot_points_paraview (const unsigned &nplot) const
 
virtual unsigned nsub_elements_paraview (const unsigned &nplot) const
 
void output_paraview (std::ofstream &file_out, const unsigned &nplot) const
 
virtual void write_paraview_output_offset_information (std::ofstream &file_out, const unsigned &nplot, unsigned &counter) const
 
virtual void write_paraview_type (std::ofstream &file_out, const unsigned &nplot) const
 
virtual void write_paraview_offsets (std::ofstream &file_out, const unsigned &nplot, unsigned &offset_sum) const
 
virtual void output (const unsigned &t, std::ostream &outfile, const unsigned &n_plot) const
 
virtual void output_fct (std::ostream &outfile, const unsigned &n_plot, const double &time, const SolutionFunctorBase &exact_soln) const
 Output a time-dependent exact solution over the element. More...
 
virtual void get_s_plot (const unsigned &i, const unsigned &nplot, Vector< double > &s, const bool &shifted_to_interior=false) const
 
virtual std::string tecplot_zone_string (const unsigned &nplot) const
 
virtual void write_tecplot_zone_footer (std::ostream &outfile, const unsigned &nplot) const
 
virtual void write_tecplot_zone_footer (FILE *file_pt, const unsigned &nplot) const
 
virtual unsigned nplot_points (const unsigned &nplot) const
 
virtual void compute_error (FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error, double &norm)
 Calculate the norm of the error and that of the exact solution. More...
 
virtual void compute_error (FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt, const double &time, double &error, double &norm)
 Calculate the norm of the error and that of the exact solution. More...
 
virtual void compute_error (FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, Vector< double > &error, Vector< double > &norm)
 
virtual void compute_error (FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt, const double &time, Vector< double > &error, Vector< double > &norm)
 
virtual void compute_error (std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, Vector< double > &error, Vector< double > &norm)
 
virtual void compute_error (std::ostream &outfile, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt, const double &time, Vector< double > &error, Vector< double > &norm)
 
virtual void compute_abs_error (std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error)
 
void integrate_fct (FiniteElement::SteadyExactSolutionFctPt integrand_fct_pt, Vector< double > &integral)
 Integrate Vector-valued function over element. More...
 
void integrate_fct (FiniteElement::UnsteadyExactSolutionFctPt integrand_fct_pt, const double &time, Vector< double > &integral)
 Integrate Vector-valued time-dep function over element. More...
 
virtual void build_face_element (const int &face_index, FaceElement *face_element_pt)
 
virtual unsigned get_bulk_node_number (const int &face_index, const unsigned &i) const
 
virtual int face_outer_unit_normal_sign (const int &face_index) const
 Get the sign of the outer unit normal on the face given by face_index. More...
 
virtual unsigned nnode_on_face () const
 
void face_node_number_error_check (const unsigned &i) const
 Range check for face node numbers. More...
 
virtual CoordinateMappingFctPt face_to_bulk_coordinate_fct_pt (const int &face_index) const
 
virtual BulkCoordinateDerivativesFctPt bulk_coordinate_derivatives_fct_pt (const int &face_index) const
 
- Public Member Functions inherited from oomph::GeneralisedElement
 GeneralisedElement ()
 Constructor: Initialise all pointers and all values to zero. More...
 
virtual ~GeneralisedElement ()
 Virtual destructor to clean up any memory allocated by the object. More...
 
 GeneralisedElement (const GeneralisedElement &)=delete
 Broken copy constructor. More...
 
void operator= (const GeneralisedElement &)=delete
 Broken assignment operator. More...
 
Data *& internal_data_pt (const unsigned &i)
 Return a pointer to i-th internal data object. More...
 
Data *const & internal_data_pt (const unsigned &i) const
 Return a pointer to i-th internal data object (const version) More...
 
Data *& external_data_pt (const unsigned &i)
 Return a pointer to i-th external data object. More...
 
Data *const & external_data_pt (const unsigned &i) const
 Return a pointer to i-th external data object (const version) More...
 
unsigned long eqn_number (const unsigned &ieqn_local) const
 
int local_eqn_number (const unsigned long &ieqn_global) const
 
unsigned add_external_data (Data *const &data_pt, const bool &fd=true)
 
bool external_data_fd (const unsigned &i) const
 
void exclude_external_data_fd (const unsigned &i)
 
void include_external_data_fd (const unsigned &i)
 
void flush_external_data ()
 Flush all external data. More...
 
void flush_external_data (Data *const &data_pt)
 Flush the object addressed by data_pt from the external data array. More...
 
unsigned ninternal_data () const
 Return the number of internal data objects. More...
 
unsigned nexternal_data () const
 Return the number of external data objects. More...
 
unsigned ndof () const
 Return the number of equations/dofs in the element. More...
 
void dof_vector (const unsigned &t, Vector< double > &dof)
 Return the vector of dof values at time level t. More...
 
void dof_pt_vector (Vector< double * > &dof_pt)
 Return the vector of pointers to dof values. More...
 
void set_internal_data_time_stepper (const unsigned &i, TimeStepper *const &time_stepper_pt, const bool &preserve_existing_data)
 
void assign_internal_eqn_numbers (unsigned long &global_number, Vector< double * > &Dof_pt)
 
void describe_dofs (std::ostream &out, const std::string &current_string) const
 
void add_internal_value_pt_to_map (std::map< unsigned, double * > &map_of_value_pt)
 
virtual void assign_local_eqn_numbers (const bool &store_local_dof_pt)
 
virtual void complete_setup_of_dependencies ()
 
virtual void get_residuals (Vector< double > &residuals)
 
virtual void get_jacobian (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
virtual void get_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &mass_matrix)
 
virtual void get_jacobian_and_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix)
 
virtual void get_dresiduals_dparameter (double *const &parameter_pt, Vector< double > &dres_dparam)
 
virtual void get_djacobian_dparameter (double *const &parameter_pt, Vector< double > &dres_dparam, DenseMatrix< double > &djac_dparam)
 
virtual void get_djacobian_and_dmass_matrix_dparameter (double *const &parameter_pt, Vector< double > &dres_dparam, DenseMatrix< double > &djac_dparam, DenseMatrix< double > &dmass_matrix_dparam)
 
virtual void get_hessian_vector_products (Vector< double > const &Y, DenseMatrix< double > const &C, DenseMatrix< double > &product)
 
virtual void get_inner_products (Vector< std::pair< unsigned, unsigned >> const &history_index, Vector< double > &inner_product)
 
virtual void get_inner_product_vectors (Vector< unsigned > const &history_index, Vector< Vector< double >> &inner_product_vector)
 
virtual void compute_norm (Vector< double > &norm)
 
virtual unsigned ndof_types () const
 
virtual void get_dof_numbers_for_unknowns (std::list< std::pair< unsigned long, unsigned >> &dof_lookup_list) const
 
- Public Member Functions inherited from oomph::GeomObject
 GeomObject ()
 Default constructor. More...
 
 GeomObject (const unsigned &ndim)
 
 GeomObject (const unsigned &nlagrangian, const unsigned &ndim)
 
 GeomObject (const unsigned &nlagrangian, const unsigned &ndim, TimeStepper *time_stepper_pt)
 
 GeomObject (const GeomObject &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const GeomObject &)=delete
 Broken assignment operator. More...
 
virtual ~GeomObject ()
 (Empty) destructor More...
 
unsigned nlagrangian () const
 Access function to # of Lagrangian coordinates. More...
 
unsigned ndim () const
 Access function to # of Eulerian coordinates. More...
 
void set_nlagrangian_and_ndim (const unsigned &n_lagrangian, const unsigned &n_dim)
 Set # of Lagrangian and Eulerian coordinates. More...
 
TimeStepper *& time_stepper_pt ()
 
TimeSteppertime_stepper_pt () const
 
virtual void position (const double &t, const Vector< double > &zeta, Vector< double > &r) const
 
virtual void dposition (const Vector< double > &zeta, DenseMatrix< double > &drdzeta) const
 
virtual void d2position (const Vector< double > &zeta, RankThreeTensor< double > &ddrdzeta) const
 
virtual void d2position (const Vector< double > &zeta, Vector< double > &r, DenseMatrix< double > &drdzeta, RankThreeTensor< double > &ddrdzeta) const
 

Protected Member Functions

void shape_ust_heat (const Vector< double > &s, Shape &psi) const
 Shape functions w.r.t. to local coords. More...
 
void dshape_local_ust_heat (const Vector< double > &s, Shape &psi, DShape &dpsidx) const
 Shape functions & derivs. w.r.t. to local coords. More...
 
void dtest_local_ust_heat (const Vector< double > &s, Shape &test, DShape &dtestdx) const
 Test functions & derivs. w.r.t. to local coords. More...
 
- Protected Member Functions inherited from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >
virtual void fill_in_generic_residual_contribution_ust_heat (Vector< double > &residuals, DenseMatrix< double > &jacobian, const unsigned &flag)
 
- Protected Member Functions inherited from oomph::FiniteElement
virtual void assemble_local_to_eulerian_jacobian (const DShape &dpsids, DenseMatrix< double > &jacobian) const
 
virtual void assemble_local_to_eulerian_jacobian2 (const DShape &d2psids, DenseMatrix< double > &jacobian2) const
 
virtual void assemble_eulerian_base_vectors (const DShape &dpsids, DenseMatrix< double > &interpolated_G) const
 
template<unsigned DIM>
double invert_jacobian (const DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 
virtual double invert_jacobian_mapping (const DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 
virtual double local_to_eulerian_mapping (const DShape &dpsids, DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 
double local_to_eulerian_mapping (const DShape &dpsids, DenseMatrix< double > &inverse_jacobian) const
 
virtual double local_to_eulerian_mapping_diagonal (const DShape &dpsids, DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 
virtual void dJ_eulerian_dnodal_coordinates (const DenseMatrix< double > &jacobian, const DShape &dpsids, DenseMatrix< double > &djacobian_dX) const
 
template<unsigned DIM>
void dJ_eulerian_dnodal_coordinates_templated_helper (const DenseMatrix< double > &jacobian, const DShape &dpsids, DenseMatrix< double > &djacobian_dX) const
 
virtual void d_dshape_eulerian_dnodal_coordinates (const double &det_jacobian, const DenseMatrix< double > &jacobian, const DenseMatrix< double > &djacobian_dX, const DenseMatrix< double > &inverse_jacobian, const DShape &dpsids, RankFourTensor< double > &d_dpsidx_dX) const
 
template<unsigned DIM>
void d_dshape_eulerian_dnodal_coordinates_templated_helper (const double &det_jacobian, const DenseMatrix< double > &jacobian, const DenseMatrix< double > &djacobian_dX, const DenseMatrix< double > &inverse_jacobian, const DShape &dpsids, RankFourTensor< double > &d_dpsidx_dX) const
 
virtual void transform_derivatives (const DenseMatrix< double > &inverse_jacobian, DShape &dbasis) const
 
void transform_derivatives_diagonal (const DenseMatrix< double > &inverse_jacobian, DShape &dbasis) const
 
virtual void transform_second_derivatives (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
template<unsigned DIM>
void transform_second_derivatives_template (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
template<unsigned DIM>
void transform_second_derivatives_diagonal (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
virtual void fill_in_jacobian_from_nodal_by_fd (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
void fill_in_jacobian_from_nodal_by_fd (DenseMatrix< double > &jacobian)
 
virtual void update_before_nodal_fd ()
 
virtual void reset_after_nodal_fd ()
 
virtual void update_in_nodal_fd (const unsigned &i)
 
virtual void reset_in_nodal_fd (const unsigned &i)
 
template<>
double invert_jacobian (const DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 Zero-d specialisation of function to calculate inverse of jacobian mapping. More...
 
template<>
double invert_jacobian (const DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 One-d specialisation of function to calculate inverse of jacobian mapping. More...
 
template<>
double invert_jacobian (const DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 Two-d specialisation of function to calculate inverse of jacobian mapping. More...
 
template<>
double invert_jacobian (const DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
 
template<>
void dJ_eulerian_dnodal_coordinates_templated_helper (const DenseMatrix< double > &jacobian, const DShape &dpsids, DenseMatrix< double > &djacobian_dX) const
 
template<>
void dJ_eulerian_dnodal_coordinates_templated_helper (const DenseMatrix< double > &jacobian, const DShape &dpsids, DenseMatrix< double > &djacobian_dX) const
 
template<>
void dJ_eulerian_dnodal_coordinates_templated_helper (const DenseMatrix< double > &jacobian, const DShape &dpsids, DenseMatrix< double > &djacobian_dX) const
 
template<>
void dJ_eulerian_dnodal_coordinates_templated_helper (const DenseMatrix< double > &jacobian, const DShape &dpsids, DenseMatrix< double > &djacobian_dX) const
 
template<>
void d_dshape_eulerian_dnodal_coordinates_templated_helper (const double &det_jacobian, const DenseMatrix< double > &jacobian, const DenseMatrix< double > &djacobian_dX, const DenseMatrix< double > &inverse_jacobian, const DShape &dpsids, RankFourTensor< double > &d_dpsidx_dX) const
 
template<>
void d_dshape_eulerian_dnodal_coordinates_templated_helper (const double &det_jacobian, const DenseMatrix< double > &jacobian, const DenseMatrix< double > &djacobian_dX, const DenseMatrix< double > &inverse_jacobian, const DShape &dpsids, RankFourTensor< double > &d_dpsidx_dX) const
 
template<>
void d_dshape_eulerian_dnodal_coordinates_templated_helper (const double &det_jacobian, const DenseMatrix< double > &jacobian, const DenseMatrix< double > &djacobian_dX, const DenseMatrix< double > &inverse_jacobian, const DShape &dpsids, RankFourTensor< double > &d_dpsidx_dX) const
 
template<>
void d_dshape_eulerian_dnodal_coordinates_templated_helper (const double &det_jacobian, const DenseMatrix< double > &jacobian, const DenseMatrix< double > &djacobian_dX, const DenseMatrix< double > &inverse_jacobian, const DShape &dpsids, RankFourTensor< double > &d_dpsidx_dX) const
 
template<>
void transform_second_derivatives_template (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
template<>
void transform_second_derivatives_template (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
template<>
void transform_second_derivatives_diagonal (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
template<>
void transform_second_derivatives_diagonal (const DenseMatrix< double > &jacobian, const DenseMatrix< double > &inverse_jacobian, const DenseMatrix< double > &jacobian2, DShape &dbasis, DShape &d2basis) const
 
- Protected Member Functions inherited from oomph::GeneralisedElement
unsigned add_internal_data (Data *const &data_pt, const bool &fd=true)
 
bool internal_data_fd (const unsigned &i) const
 
void exclude_internal_data_fd (const unsigned &i)
 
void include_internal_data_fd (const unsigned &i)
 
void clear_global_eqn_numbers ()
 
void add_global_eqn_numbers (std::deque< unsigned long > const &global_eqn_numbers, std::deque< double * > const &global_dof_pt)
 
virtual void assign_internal_and_external_local_eqn_numbers (const bool &store_local_dof_pt)
 
virtual void assign_additional_local_eqn_numbers ()
 
int internal_local_eqn (const unsigned &i, const unsigned &j) const
 
int external_local_eqn (const unsigned &i, const unsigned &j)
 
void fill_in_jacobian_from_internal_by_fd (Vector< double > &residuals, DenseMatrix< double > &jacobian, const bool &fd_all_data=false)
 
void fill_in_jacobian_from_internal_by_fd (DenseMatrix< double > &jacobian, const bool &fd_all_data=false)
 
void fill_in_jacobian_from_external_by_fd (Vector< double > &residuals, DenseMatrix< double > &jacobian, const bool &fd_all_data=false)
 
void fill_in_jacobian_from_external_by_fd (DenseMatrix< double > &jacobian, const bool &fd_all_data=false)
 
virtual void update_before_internal_fd ()
 
virtual void reset_after_internal_fd ()
 
virtual void update_in_internal_fd (const unsigned &i)
 
virtual void reset_in_internal_fd (const unsigned &i)
 
virtual void update_before_external_fd ()
 
virtual void reset_after_external_fd ()
 
virtual void update_in_external_fd (const unsigned &i)
 
virtual void reset_in_external_fd (const unsigned &i)
 
virtual void fill_in_contribution_to_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &mass_matrix)
 
virtual void fill_in_contribution_to_jacobian_and_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix)
 
virtual void fill_in_contribution_to_dresiduals_dparameter (double *const &parameter_pt, Vector< double > &dres_dparam)
 
virtual void fill_in_contribution_to_djacobian_dparameter (double *const &parameter_pt, Vector< double > &dres_dparam, DenseMatrix< double > &djac_dparam)
 
virtual void fill_in_contribution_to_djacobian_and_dmass_matrix_dparameter (double *const &parameter_pt, Vector< double > &dres_dparam, DenseMatrix< double > &djac_dparam, DenseMatrix< double > &dmass_matrix_dparam)
 
virtual void fill_in_contribution_to_hessian_vector_products (Vector< double > const &Y, DenseMatrix< double > const &C, DenseMatrix< double > &product)
 
virtual void fill_in_contribution_to_inner_products (Vector< std::pair< unsigned, unsigned >> const &history_index, Vector< double > &inner_product)
 
virtual void fill_in_contribution_to_inner_product_vectors (Vector< unsigned > const &history_index, Vector< Vector< double >> &inner_product_vector)
 

Static Private Attributes

static const unsigned Initial_Nvalue = 1
 

Additional Inherited Members

- Public Types inherited from oomph::SpaceTimeUnsteadyHeatEquationsBase
typedef void(* SpaceTimeUnsteadyHeatSourceFctPt) (const double &time, const Vector< double > &x, double &u)
 
typedef void(* SpaceTimeUnsteadyHeatSourceFctPt) (const double &time, const Vector< double > &x, double &u)
 
typedef void(* SpaceTimeUnsteadyHeatSourceFctPt) (const double &time, const Vector< double > &x, double &u)
 
- Public Types inherited from oomph::FiniteElement
typedef void(* SteadyExactSolutionFctPt) (const Vector< double > &, Vector< double > &)
 
typedef void(* UnsteadyExactSolutionFctPt) (const double &, const Vector< double > &, Vector< double > &)
 
- Static Public Attributes inherited from oomph::FiniteElement
static double Tolerance_for_singular_jacobian = 1.0e-16
 Tolerance below which the jacobian is considered singular. More...
 
static bool Accept_negative_jacobian = false
 
static bool Suppress_output_while_checking_for_inverted_elements
 
- Static Public Attributes inherited from oomph::GeneralisedElement
static bool Suppress_warning_about_repeated_internal_data
 
static bool Suppress_warning_about_repeated_external_data = true
 
static double Default_fd_jacobian_step = 1.0e-8
 
- Protected Attributes inherited from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >
SpaceTimeUnsteadyHeatSourceFctPt Source_fct_pt
 Pointer to source function: More...
 
bool ALE_is_disabled
 
doubleAlpha_pt
 Pointer to Alpha parameter (thermal inertia) More...
 
doubleBeta_pt
 Pointer to Beta parameter (thermal conductivity) More...
 
- Protected Attributes inherited from oomph::FiniteElement
MacroElementMacro_elem_pt
 Pointer to the element's macro element (NULL by default) More...
 
- Protected Attributes inherited from oomph::GeomObject
unsigned NLagrangian
 Number of Lagrangian (intrinsic) coordinates. More...
 
unsigned Ndim
 Number of Eulerian coordinates. More...
 
TimeStepperGeom_object_time_stepper_pt
 
- Static Protected Attributes inherited from oomph::FiniteElement
static const unsigned Default_Initial_Nvalue = 0
 Default value for the number of values at a node. More...
 
static const double Node_location_tolerance = 1.0e-14
 
static const unsigned N2deriv [] = {0, 1, 3, 6}
 
- Static Protected Attributes inherited from oomph::GeneralisedElement
static DenseMatrix< doubleDummy_matrix
 
static std::deque< double * > Dof_pt_deque
 

Detailed Description

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
class oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >

//////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// QUnsteadyHeatMixedOrderSpaceTimeElement elements are quadrilateral/brick- shaped UnsteadyHeatMixedOrder elements with isoparametric interpolation for the function.

Constructor & Destructor Documentation

◆ QUnsteadyHeatMixedOrderSpaceTimeElement() [1/2]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::QUnsteadyHeatMixedOrderSpaceTimeElement ( )
inline

Constructor: Call constructors for QElement and SpaceTimeUnsteadyHeatMixedOrder equations

747  SpaceTimeUnsteadyHeatMixedOrderEquations<SPATIAL_DIM>()
748  {
749  }

◆ QUnsteadyHeatMixedOrderSpaceTimeElement() [2/2]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::QUnsteadyHeatMixedOrderSpaceTimeElement ( const QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D > &  dummy)
delete

Broken copy constructor.

Member Function Documentation

◆ dshape_and_dtest_eulerian_at_knot_ust_heat()

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
double oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::dshape_and_dtest_eulerian_at_knot_ust_heat ( const unsigned ipt,
Shape psi,
DShape dpsidx,
Shape test,
DShape dtestdx 
) const
inlinevirtual

Shape/test functions and derivs w.r.t. to global coords at integration point ipt; return Jacobian of mapping

Define the shape functions and test functions and derivatives w.r.t. global coordinates and return Jacobian of mapping.

Galerkin: Test functions=shape functions

Implements oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

1114  {
1115  // Find the element dimension
1116  const unsigned el_dim = SPATIAL_DIM + 1;
1117 
1118  // Storage for the local coordinates of the integration point
1119  Vector<double> s(el_dim, 0.0);
1120 
1121  // Set the local coordinate
1122  for (unsigned i = 0; i < el_dim; i++)
1123  {
1124  // Calculate the i-th local coordinate at the ipt-th knot point
1125  s[i] = this->integral_pt()->knot(ipt, i);
1126  }
1127 
1128  // Return the Jacobian of the geometrical shape functions and derivatives
1129  return dshape_and_dtest_eulerian_ust_heat(s, psi, dpsidx, test, dtestdx);
1130  } // End of dshape_and_dtest_eulerian_at_knot_ust_heat
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Integral *const & integral_pt() const
Return the pointer to the integration scheme (const version)
Definition: elements.h:1963
virtual double knot(const unsigned &i, const unsigned &j) const =0
Return local coordinate s[j] of i-th integration point.
double dshape_and_dtest_eulerian_ust_heat(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.
Definition: discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.h:1044
RealScalar s
Definition: level1_cplx_impl.h:130
Definition: indexed_view.cpp:20
unsigned el_dim
dimension
Definition: overloaded_cartesian_element_body.h:30

References el_dim, i, and s.

◆ dshape_and_dtest_eulerian_ust_heat()

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
double oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::dshape_and_dtest_eulerian_ust_heat ( const Vector< double > &  s,
Shape psi,
DShape dpsidx,
Shape test,
DShape dtestdx 
) const
inlinevirtual

Shape/test functions & derivs. w.r.t. to global coords. Return Jacobian.

Define the shape functions and test functions and derivatives w.r.t. global coordinates and return Jacobian of mapping.

Galerkin: Test functions=shape functions

Implements oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

1049  {
1050  //--------------------------
1051  // Call the shape functions:
1052  //--------------------------
1053  // Find the element dimension
1054  const unsigned el_dim = this->dim();
1055 
1056  // Make sure we're using 3D space-time elements
1057  if (el_dim != 3)
1058  {
1059  // Create an output stream
1060  std::ostringstream error_message_stream;
1061 
1062  // Create an error message
1063  error_message_stream << "Need 3D space-time elements for this to work!"
1064  << std::endl;
1065 
1066  // Throw the error message
1067  throw OomphLibError(error_message_stream.str(),
1070  }
1071 
1072  // Compute the geometric shape functions and also first derivatives
1073  // w.r.t. local coordinates at local coordinate s
1074  dshape_local_ust_heat(s, psi, dpsidx);
1075 
1076  // Allocate memory for the inverse jacobian
1077  DenseMatrix<double> inverse_jacobian(el_dim);
1078 
1079  // Now calculate the inverse jacobian
1080  const double det =
1081  this->local_to_eulerian_mapping(dpsidx, inverse_jacobian);
1082 
1083  // Now set the values of the derivatives to be dpsidx
1084  this->transform_derivatives(inverse_jacobian, dpsidx);
1085 
1086  //-------------------------
1087  // Call the test functions:
1088  //-------------------------
1089  // Compute the geometric test functions and also first derivatives
1090  // w.r.t. local coordinates at local coordinate s
1091  dtest_local_ust_heat(s, test, dtestdx);
1092 
1093  // Transform derivatives from dtest/ds to dtest/dx
1094  this->transform_derivatives(inverse_jacobian, dtestdx);
1095 
1096  // Return the determinant value
1097  return det;
1098  } // End of dshape_and_dtest_eulerian_ust_heat
unsigned dim() const
Definition: elements.h:2611
virtual double local_to_eulerian_mapping(const DShape &dpsids, DenseMatrix< double > &jacobian, DenseMatrix< double > &inverse_jacobian) const
Definition: elements.h:1508
virtual void transform_derivatives(const DenseMatrix< double > &inverse_jacobian, DShape &dbasis) const
Definition: elements.cc:2833
void dtest_local_ust_heat(const Vector< double > &s, Shape &test, DShape &dtestdx) const
Test functions & derivs. w.r.t. to local coords.
Definition: discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.h:980
void dshape_local_ust_heat(const Vector< double > &s, Shape &psi, DShape &dpsidx) const
Shape functions & derivs. w.r.t. to local coords.
Definition: discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.h:920
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86

References el_dim, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and s.

◆ dshape_local_ust_heat()

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::dshape_local_ust_heat ( const Vector< double > &  s,
Shape psi,
DShape dpsidx 
) const
inlineprotectedvirtual

Shape functions & derivs. w.r.t. to local coords.

Define the shape functions and test functions and derivatives w.r.t. local coordinates

Galerkin: Test functions=shape functions

Implements oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

923  {
924  // Local storage (for 3D = 2D space + 1D time)
925  double psi_values[3][NNODE_1D];
926  double dpsi_values[3][NNODE_1D];
927 
928  // Index of the total shape function
929  unsigned index = 0;
930 
931  // Call the 1D shape functions and derivatives
932  OneDimLagrange::shape<NNODE_1D>(s[0], psi_values[0]);
933  OneDimLagrange::shape<NNODE_1D>(s[1], psi_values[1]);
934  OneDimLagrange::dshape<NNODE_1D>(s[0], dpsi_values[0]);
935  OneDimLagrange::dshape<NNODE_1D>(s[1], dpsi_values[1]);
936 
937  // Set the time discretisation
938  OneDimDiscontinuousGalerkinMixedOrderBasis::shape<NNODE_1D>(s[2],
939  psi_values[2]);
940  OneDimDiscontinuousGalerkinMixedOrderBasis::dshape<NNODE_1D>(
941  s[2], dpsi_values[2]);
942 
943  // Loop over the nodes in the third local coordinate direction
944  for (unsigned k = 0; k < NNODE_1D; k++)
945  {
946  // Loop over the nodes in the second local coordinate direction
947  for (unsigned j = 0; j < NNODE_1D; j++)
948  {
949  // Loop over the nodes in the first local coordinate direction
950  for (unsigned i = 0; i < NNODE_1D; i++)
951  {
952  // Calculate dpsi/ds_0
953  dpsidx(index, 0) =
954  dpsi_values[0][i] * psi_values[1][j] * psi_values[2][k];
955 
956  // Calculate dpsi/ds_1
957  dpsidx(index, 1) =
958  psi_values[0][i] * dpsi_values[1][j] * psi_values[2][k];
959 
960  // Calculate dpsi/ds_2
961  dpsidx(index, 2) =
962  psi_values[0][i] * psi_values[1][j] * dpsi_values[2][k];
963 
964  // Calculate the index-th entry of psi
965  psi[index] = psi_values[0][i] * psi_values[1][j] * psi_values[2][k];
966 
967  // Increment the index
968  index++;
969  }
970  } // for (unsigned j=0;j<NNODE_1D;j++)
971  } // for (unsigned k=0;k<NNODE_1D;k++)
972  } // End of dshape_local_ust_heat
char char char int int * k
Definition: level2_impl.h:374
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, j, k, and s.

◆ dtest_local_ust_heat()

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::dtest_local_ust_heat ( const Vector< double > &  s,
Shape test,
DShape dtestdx 
) const
inlineprotectedvirtual

Test functions & derivs. w.r.t. to local coords.

Define the test functions and derivatives w.r.t. local coordinates.

Implements oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

983  {
984  // Local storage (for 3D = 2D space + 1D time)
985  double test_values[3][NNODE_1D];
986  double dtest_values[3][NNODE_1D];
987 
988  // Index of the total shape function
989  unsigned index = 0;
990 
991  // Call the 1D shape functions and derivatives
992  OneDimLagrange::shape<NNODE_1D>(s[0], test_values[0]);
993  OneDimLagrange::shape<NNODE_1D>(s[1], test_values[1]);
994  OneDimLagrange::dshape<NNODE_1D>(s[0], dtest_values[0]);
995  OneDimLagrange::dshape<NNODE_1D>(s[1], dtest_values[1]);
996 
997  // Set the time discretisation
998  OneDimDiscontinuousGalerkinMixedOrderTest::shape<NNODE_1D>(s[2],
999  test_values[2]);
1000  OneDimDiscontinuousGalerkinMixedOrderTest::dshape<NNODE_1D>(
1001  s[2], dtest_values[2]);
1002 
1003  // Loop over the nodes in the third local coordinate direction
1004  for (unsigned k = 0; k < NNODE_1D; k++)
1005  {
1006  // Loop over the nodes in the second local coordinate direction
1007  for (unsigned j = 0; j < NNODE_1D; j++)
1008  {
1009  // Loop over the nodes in the first local coordinate direction
1010  for (unsigned i = 0; i < NNODE_1D; i++)
1011  {
1012  // Calculate dtest/ds_0
1013  dtestdx(index, 0) =
1014  dtest_values[0][i] * test_values[1][j] * test_values[2][k];
1015 
1016  // Calculate dtest/ds_1
1017  dtestdx(index, 1) =
1018  test_values[0][i] * dtest_values[1][j] * test_values[2][k];
1019 
1020  // Calculate dtest/ds_2
1021  dtestdx(index, 2) =
1022  test_values[0][i] * test_values[1][j] * dtest_values[2][k];
1023 
1024  // Calculate the index-th entry of test
1025  test[index] =
1026  test_values[0][i] * test_values[1][j] * test_values[2][k];
1027 
1028  // Increment the index
1029  index++;
1030  }
1031  } // for (unsigned j=0;j<NNODE_1D;j++)
1032  } // for (unsigned k=0;k<NNODE_1D;k++)
1033  } // End of dtest_local_ust_heat

References i, j, k, and s.

◆ output() [1/4]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::output ( FILE *  file_pt)
inlinevirtual

C-style output function: x,t,u or x,y,t,u

Reimplemented from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

786  {
787  // Call the function in the base class
789  } // End of output
void output(std::ostream &outfile)
Output with default number of plot points.
Definition: discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.h:122

References oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >::output().

◆ output() [2/4]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::output ( FILE *  file_pt,
const unsigned n_plot 
)
inlinevirtual

C-style output function: x,t,u or x,y,t,u at n_plot^(SPATIAL_DIM+1) plot points

Reimplemented from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

795  {
796  // Call the function in the base class
798  n_plot);
799  } // End of output

References oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >::output().

◆ output() [3/4]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::output ( std::ostream &  outfile)
inlinevirtual

Output function: x,t,u or x,y,t,u

Reimplemented from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

767  {
768  // Call the function in the base class
770  } // End of output

References oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >::output().

◆ output() [4/4]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::output ( std::ostream &  outfile,
const unsigned n_plot 
)
inlinevirtual

Output function: x,t,u or x,y,t,u at n_plot^(SPATIAL_DIM+1) plot points

Reimplemented from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

776  {
777  // Call the function in the base class
779  n_plot);
780  } // End of output

References oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >::output().

◆ output_fct() [1/2]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::output_fct ( std::ostream &  outfile,
const unsigned n_plot,
const double time,
FiniteElement::UnsteadyExactSolutionFctPt  exact_soln_pt 
)
inlinevirtual

Output function for a time-dependent exact solution. x,t,u_exact or x,y,t,u_exact at n_plot^(SPATIAL_DIM+1) plot points (Calls the unsteady version)

Reimplemented from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

821  {
822  // Call the function in the base class
824  outfile, n_plot, time, exact_soln_pt);
825  } // End of output_fct
void output_fct(std::ostream &outfile, const unsigned &nplot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
Definition: discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.cc:403

References oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >::output_fct().

◆ output_fct() [2/2]

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::output_fct ( std::ostream &  outfile,
const unsigned n_plot,
FiniteElement::SteadyExactSolutionFctPt  exact_soln_pt 
)
inlinevirtual

Output function for an exact solution: x,t,u_exact or x,y,t,u_exact at n_plot^(SPATIAL_DIM+1) plot points

Reimplemented from oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

807  {
808  // Call the function in the base class
810  outfile, n_plot, exact_soln_pt);
811  } // End of output_fct

References oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >::output_fct().

◆ required_nvalue()

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
unsigned oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::required_nvalue ( const unsigned n) const
inlinevirtual

Required number of 'values' (pinned or dofs) at node n.

Reimplemented from oomph::FiniteElement.

758  {
759  // Return the appropriate value
760  return Initial_Nvalue;
761  } // End of required_nvalue
static const unsigned Initial_Nvalue
Definition: discontinuous_galerkin_space_time_unsteady_heat_mixed_order_elements.h:864

References oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::Initial_Nvalue.

◆ shape_ust_heat()

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
void oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::shape_ust_heat ( const Vector< double > &  s,
Shape psi 
) const
inlineprotectedvirtual

Shape functions w.r.t. to local coords.

Define the shape functions and test functions and derivatives w.r.t. local coordinates

Galerkin: Test functions=shape functions

Implements oomph::SpaceTimeUnsteadyHeatMixedOrderEquations< SPATIAL_DIM >.

877  {
878  // Local storage (for 3D = 2D space + 1D time)
879  double psi_values[3][NNODE_1D];
880 
881  // Index of the total shape function
882  unsigned index = 0;
883 
884  // Call the 1D shape functions and derivatives
885  OneDimLagrange::shape<NNODE_1D>(s[0], psi_values[0]);
886  OneDimLagrange::shape<NNODE_1D>(s[1], psi_values[1]);
887 
888  // Set the time discretisation
889  OneDimDiscontinuousGalerkinMixedOrderBasis::shape<NNODE_1D>(s[2],
890  psi_values[2]);
891 
892  // Loop over the nodes in the third local coordinate direction
893  for (unsigned k = 0; k < NNODE_1D; k++)
894  {
895  // Loop over the nodes in the second local coordinate direction
896  for (unsigned j = 0; j < NNODE_1D; j++)
897  {
898  // Loop over the nodes in the first local coordinate direction
899  for (unsigned i = 0; i < NNODE_1D; i++)
900  {
901  // Calculate the index-th entry of psi
902  psi[index] = psi_values[0][i] * psi_values[1][j] * psi_values[2][k];
903 
904  // Increment the index
905  index++;
906  }
907  } // for (unsigned j=0;j<NNODE_1D;j++)
908  } // for (unsigned k=0;k<NNODE_1D;k++)
909  } // End of shape_ust_heat

References i, j, k, and s.

Member Data Documentation

◆ Initial_Nvalue

template<unsigned SPATIAL_DIM, unsigned NNODE_1D>
const unsigned oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::Initial_Nvalue = 1
staticprivate

Static array of ints to hold number of variables at nodes: Initial_Nvalue[n]

Referenced by oomph::QUnsteadyHeatMixedOrderSpaceTimeElement< SPATIAL_DIM, NNODE_1D >::required_nvalue().


The documentation for this class was generated from the following files: