oomph::HeatedLinearSurfaceContactElement< ELEMENT > Class Template Reference
+ Inheritance diagram for oomph::HeatedLinearSurfaceContactElement< ELEMENT >:

Public Member Functions

 HeatedLinearSurfaceContactElement (FiniteElement *const &element_pt, const int &face_index, const unsigned &id=0, const bool &called_from_refineable_constructor=false)
 
 HeatedLinearSurfaceContactElement ()
 Default constructor. More...
 
void describe_local_dofs (std::ostream &out, const std::string &current_string) const
 
void fill_in_contribution_to_jacobian (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 Final over-rider – use version in element with external element. More...
 
double heat_flux (const Vector< double > &s) const
 
double zeta_nodal (const unsigned &n, const unsigned &k, const unsigned &i) const
 hierher overload... More...
 
void output (std::ostream &outfile, const unsigned &n_plot)
 Output function. More...
 
bool use_collocated_heat_flux_flag ()
 or integrated using the hat function (false) More...
 
bool *& use_collocated_heat_flux_flag_pt ()
 Access function: Pointer to flag to use collocated heat_flux. More...
 
booluse_collocated_heat_flux_flag_pt () const
 Access function: Pointer to flag to use collocated heat_flux (const version) More...
 
- Public Member Functions inherited from oomph::LinearSurfaceContactElement< ELEMENT >
 LinearSurfaceContactElement (FiniteElement *const &element_pt, const int &face_index, const unsigned &id=0, const bool &called_from_refineable_constructor=false)
 
 LinearSurfaceContactElement ()
 Default constructor. More...
 
void output (std::ostream &outfile)
 Output function. More...
 
void resulting_contact_force (Vector< double > &contact_force)
 Resulting contact force. More...
 
- Public Member Functions inherited from oomph::SurfaceContactElementBase< ELEMENT >
 SurfaceContactElementBase (FiniteElement *const &element_pt, const int &face_index, const unsigned &id=0, const bool &called_from_refineable_constructor=false)
 value of the index and its limit More...
 
 SurfaceContactElementBase ()
 Default constructor. More...
 
void enable_stick ()
 
double s_min () const
 Min value of local coordinate. More...
 
double s_max () const
 Max. value of local coordinate. More...
 
void disable_stick ()
 
bool is_stick_enabled ()
 
void fill_in_contribution_to_residuals (Vector< double > &residuals)
 Return the residuals. More...
 
Penetratorpenetrator_pt () const
 Pointer to penetrator. More...
 
void set_penetrator_pt (Penetrator *penetrator_pt)
 Set pointer to penetrator. More...
 
void output (FILE *file_pt)
 C_style output function. More...
 
void output (FILE *file_pt, const unsigned &n_plot)
 C-style output function. More...
 
void shape_p (const Vector< double > &s, Shape &psi) const
 Shape fct for lagrange multiplier. More...
 
void shape_i (const Vector< double > &s, Shape &psi) const
 
- Public Member Functions inherited from oomph::FaceElement
 FaceElement ()
 Constructor: Initialise all appropriate member data. More...
 
virtual ~FaceElement ()
 Empty virtual destructor. More...
 
 FaceElement (const FaceElement &)=delete
 Broken copy constructor. More...
 
const unsignedboundary_number_in_bulk_mesh () const
 Broken assignment operator. More...
 
void set_boundary_number_in_bulk_mesh (const unsigned &b)
 Set function for the boundary number in bulk mesh. More...
 
double zeta_nodal (const unsigned &n, const unsigned &k, const unsigned &i) const
 
double J_eulerian (const Vector< double > &s) const
 
double J_eulerian_at_knot (const unsigned &ipt) const
 
void check_J_eulerian_at_knots (bool &passed) const
 
double interpolated_x (const Vector< double > &s, const unsigned &i) const
 
double interpolated_x (const unsigned &t, const Vector< double > &s, const unsigned &i) const
 
void interpolated_x (const Vector< double > &s, Vector< double > &x) const
 
void interpolated_x (const unsigned &t, const Vector< double > &s, Vector< double > &x) const
 
double interpolated_dxdt (const Vector< double > &s, const unsigned &i, const unsigned &t)
 
void interpolated_dxdt (const Vector< double > &s, const unsigned &t, Vector< double > &dxdt)
 
intnormal_sign ()
 
int normal_sign () const
 
intface_index ()
 
int face_index () const
 
const Vector< double > * tangent_direction_pt () const
 Public access function for the tangent direction pointer. More...
 
void set_tangent_direction (Vector< double > *tangent_direction_pt)
 Set the tangent direction vector. More...
 
void turn_on_warning_for_discontinuous_tangent ()
 
void turn_off_warning_for_discontinuous_tangent ()
 
void continuous_tangent_and_outer_unit_normal (const Vector< double > &s, Vector< Vector< double >> &tang_vec, Vector< double > &unit_normal) const
 
void continuous_tangent_and_outer_unit_normal (const unsigned &ipt, Vector< Vector< double >> &tang_vec, Vector< double > &unit_normal) const
 
void outer_unit_normal (const Vector< double > &s, Vector< double > &unit_normal) const
 Compute outer unit normal at the specified local coordinate. More...
 
void outer_unit_normal (const unsigned &ipt, Vector< double > &unit_normal) const
 Compute outer unit normal at ipt-th integration point. More...
 
FiniteElement *& bulk_element_pt ()
 Pointer to higher-dimensional "bulk" element. More...
 
FiniteElementbulk_element_pt () const
 Pointer to higher-dimensional "bulk" element (const version) More...
 
CoordinateMappingFctPtface_to_bulk_coordinate_fct_pt ()
 
CoordinateMappingFctPt face_to_bulk_coordinate_fct_pt () const
 
BulkCoordinateDerivativesFctPtbulk_coordinate_derivatives_fct_pt ()
 
BulkCoordinateDerivativesFctPt bulk_coordinate_derivatives_fct_pt () const
 
Vector< doublelocal_coordinate_in_bulk (const Vector< double > &s) const
 
void get_local_coordinate_in_bulk (const Vector< double > &s, Vector< double > &s_bulk) const
 
void get_ds_bulk_ds_face (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction) const
 
unsignedbulk_position_type (const unsigned &i)
 
const unsignedbulk_position_type (const unsigned &i) const
 
void bulk_node_number_resize (const unsigned &i)
 Resize the storage for the bulk node numbers. More...
 
unsignedbulk_node_number (const unsigned &n)
 
const unsignedbulk_node_number (const unsigned &n) const
 
void bulk_position_type_resize (const unsigned &i)
 Resize the storage for bulk_position_type to i entries. More...
 
unsignednbulk_value (const unsigned &n)
 
unsigned nbulk_value (const unsigned &n) const
 
void nbulk_value_resize (const unsigned &i)
 
void resize_nodes (Vector< unsigned > &nadditional_data_values)
 
void output_zeta (std::ostream &outfile, const unsigned &nplot)
 Output boundary coordinate zeta. 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
 
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_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)
 
virtual void disable_ALE ()
 
virtual void enable_ALE ()
 
virtual unsigned required_nvalue (const unsigned &n) const
 
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...
 
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)
 
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)
 
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 unsigned nscalar_paraview () const
 
virtual void scalar_value_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot) const
 
virtual void scalar_value_fct_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt) const
 
virtual void scalar_value_fct_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt) const
 
virtual std::string scalar_name_paraview (const unsigned &i) 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, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
 Output an exact solution over the element. More...
 
virtual void output_fct (std::ostream &outfile, const unsigned &n_plot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt)
 Output a time-dependent exact solution over the element. More...
 
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, double &error, double &norm)
 
virtual void compute_error (std::ostream &outfile, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt, const double &time, double &error, 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 self_test ()
 
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 void compute_norm (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
 
- Public Member Functions inherited from oomph::TemplateFreeContactElementBase
 TemplateFreeContactElementBase ()
 
virtual ~TemplateFreeContactElementBase ()
 Destructor. More...
 
void traction_fct (const Vector< double > &x, Vector< double > &p)
 
bool use_isoparametric_flag () const
 
bool use_collocated_penetration_flag ()
 
bool use_collocated_contact_pressure_flag ()
 
TractionFctPttraction_fct_pt ()
 Access function: Pointer to body force function. More...
 
TractionFctPt traction_fct_pt () const
 Access function: Pointer to body force function (const version) More...
 
bool *& use_isoparametric_flag_pt ()
 Access function: Pointer to flag to use isoparametric. More...
 
booluse_isoparametric_flag_pt () const
 
bool *& use_collocated_penetration_flag_pt ()
 Access function: Pointer to flag to use collocated penetration. More...
 
booluse_collocated_penetration_flag_pt () const
 
bool *& use_collocated_contact_pressure_flag_pt ()
 Access function: Pointer to flag to use collocated contact pressure. More...
 
booluse_collocated_contact_pressure_flag_pt () const
 
- Public Member Functions inherited from oomph::TemplateFreeHeatedLinearSurfaceContactElementBase
virtual ~TemplateFreeHeatedLinearSurfaceContactElementBase ()
 Virtual destructor (empty) More...
 
- Public Member Functions inherited from oomph::ElementWithExternalElement
 ElementWithExternalElement ()
 
virtual ~ElementWithExternalElement ()
 The destructor, clean up any allocated memory. More...
 
 ElementWithExternalElement (const ElementWithExternalElement &)=delete
 Broken copy constructor. More...
 
void operator= (const ElementWithExternalElement &)=delete
 Broken assignment operator. More...
 
bool storage_has_been_allocated () const
 Helper function to check if storage has actually been allocated. More...
 
FiniteElement *& external_element_pt (const unsigned &interaction_index, const unsigned &ipt)
 
FiniteElement *const & external_element_pt (const unsigned &interaction_index, const unsigned &ipt) const
 Access function to source element, const version. More...
 
Vector< double > & external_element_local_coord (const unsigned &interaction_index, const unsigned &ipt)
 
Vector< double > const & external_element_local_coord (const unsigned &interaction_index, const unsigned &ipt) const
 Access function to get source element's coords, const version. More...
 
void output_external_elements (std::ostream &outfile, const unsigned &interaction_index)
 
void initialise_external_element_storage ()
 
void flush_all_external_element_storage ()
 Flush the storage for external elements. More...
 
void set_ninteraction (const unsigned &n_interaction)
 
unsigned ninteraction () const
 Return the number of interactions in the element. More...
 
virtual void identify_all_field_data_for_external_interaction (Vector< std::set< FiniteElement * >> const &external_elements_pt, std::set< std::pair< Data *, unsigned >> &paired_interaction_data)
 
virtual void identify_all_geometric_data_for_external_interaction (Vector< std::set< FiniteElement * >> const &external_elements_pt, std::set< Data * > &external_geometric_data_pt)
 
unsigned nexternal_interaction_field_data () const
 
Vector< Data * > external_interaction_field_data_pt () const
 
unsigned nexternal_interaction_geometric_data () const
 
bool add_external_geometric_data ()
 Are we including external geometric data in the element's Jacobian. More...
 
bool add_external_interaction_data ()
 Are we including external data in the element's Jacobian. More...
 
Vector< Data * > external_interaction_geometric_data_pt () const
 
void ignore_external_geometric_data ()
 
void ignore_external_interaction_data ()
 
void include_external_geometric_data ()
 
void include_external_interaction_data ()
 
bool external_geometric_data_is_included () const
 
void describe_local_dofs (std::ostream &out, const std::string &curr_string) const
 

Protected Member Functions

void fill_in_contribution_to_residuals_surface_contact (Vector< double > &residuals)
 Return the residuals for the LinearSurfaceContactElement equations. More...
 
- Protected Member Functions inherited from oomph::LinearSurfaceContactElement< ELEMENT >
void interpolated_u_linear_elasticity (const Vector< double > &s, Vector< double > &disp) const
 Compute vector of FE interpolated displacement u at local coordinate s. More...
 
- Protected Member Functions inherited from oomph::SurfaceContactElementBase< ELEMENT >
double get_interpolated_lagrange_p (const Vector< double > &s)
 
void penetration (const Vector< double > &x, const Vector< double > &n, double &d, bool &intersection) const
 Work out penetration of point. More...
 
- Protected Member Functions inherited from oomph::FaceElement
void add_additional_values (const Vector< unsigned > &nadditional_values, const unsigned &id)
 
- 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)
 
void fill_in_contribution_to_jacobian (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
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_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)
 
- Protected Member Functions inherited from oomph::ElementWithExternalElement
void assign_internal_and_external_local_eqn_numbers (const bool &store_local_dof_pt)
 
void assign_external_interaction_data_local_eqn_numbers (const bool &store_local_dof_pt)
 
void fill_in_jacobian_from_external_interaction_by_fd (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
void fill_in_jacobian_from_external_interaction_by_fd (DenseMatrix< double > &jacobian)
 
void fill_in_jacobian_from_external_interaction_field_by_fd (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
void fill_in_jacobian_from_external_interaction_field_by_fd (DenseMatrix< double > &jacobian)
 
void fill_in_jacobian_from_external_interaction_geometric_by_fd (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
void fill_in_jacobian_from_external_interaction_geometric_by_fd (DenseMatrix< double > &jacobian)
 
void fill_in_contribution_to_jacobian (Vector< double > &residuals, DenseMatrix< double > &jacobian)
 
virtual void update_before_external_interaction_field_fd ()
 
virtual void reset_after_external_interaction_field_fd ()
 
virtual void update_in_external_interaction_field_fd (const unsigned &i)
 
virtual void reset_in_external_interaction_field_fd (const unsigned &i)
 
virtual void update_before_external_interaction_geometric_fd ()
 
virtual void reset_after_external_interaction_geometric_fd ()
 
virtual void update_in_external_interaction_geometric_fd (const unsigned &i)
 
virtual void reset_in_external_interaction_geometric_fd (const unsigned &i)
 

Protected Attributes

unsigned Heat_flux_lagr_multiplier_id
 ID of heat flux Lagrange multiplier (to ensure continuity of temperature) More...
 
boolUse_collocated_heat_flux_flag_pt
 Set options for basis/test functions for penetration and pressure. More...
 
bool activate_iso_colloc_for_contact
 
- Protected Attributes inherited from oomph::LinearSurfaceContactElement< ELEMENT >
Vector< unsignedU_index_linear_elasticity_traction
 Index at which the i-th displacement component is stored. More...
 
- Protected Attributes inherited from oomph::SurfaceContactElementBase< ELEMENT >
PenetratorPenetrator_pt
 Pointer to penetrator. More...
 
unsigned Contact_id
 
bool Enable_stick
 
Vector< intPenetrator_eq_data_type
 
Vector< intPenetrator_eq_data_index
 
Vector< intPenetrator_eq_data_data_index
 
- Protected Attributes inherited from oomph::FaceElement
unsigned Boundary_number_in_bulk_mesh
 The boundary number in the bulk mesh to which this element is attached. More...
 
FiniteElementBulk_element_pt
 Pointer to the associated higher-dimensional "bulk" element. More...
 
Vector< unsignedBulk_node_number
 
Vector< unsignedNbulk_value
 
Vector< double > * Tangent_direction_pt
 
- 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
 
- Protected Attributes inherited from oomph::TemplateFreeContactElementBase
TractionFctPt Traction_fct_pt
 
boolUse_isoparametric_flag_pt
 Set whether or not to use isoparametric basis function for pressure. More...
 
boolUse_collocated_penetration_flag_pt
 Set options for basis/test functions for penetration and pressure. More...
 
boolUse_collocated_contact_pressure_flag_pt
 Set options for basis/test functions for penetration and pressure. More...
 
- Protected Attributes inherited from oomph::ElementWithExternalElement
bool Add_external_interaction_data
 Boolean flag to indicate whether to include the external data. More...
 
bool Add_external_geometric_data
 Boolean flag to indicate whether to include the external geometric data. More...
 
Data ** External_interaction_field_data_pt
 
Data ** External_interaction_geometric_data_pt
 

Additional Inherited Members

- Public Types inherited from oomph::FiniteElement
typedef void(* SteadyExactSolutionFctPt) (const Vector< double > &, Vector< double > &)
 
typedef void(* UnsteadyExactSolutionFctPt) (const double &, const Vector< double > &, Vector< double > &)
 
- Public Types inherited from oomph::TemplateFreeContactElementBase
typedef void(* TractionFctPt) (const double &t, const Vector< double > &x, Vector< double > &p)
 
- 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 Types inherited from oomph::TemplateFreeContactElementBase
enum  { Nodal_data , Nodal_position_data , External_data }
 Enumeration for type of penetrator data. More...
 
- 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<class ELEMENT>
class oomph::HeatedLinearSurfaceContactElement< ELEMENT >

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// Class for elements that impose contact boundary conditions either enforcing non-penetration (but "without stick"; default) or permament contact (in which case contact force can be positive or negative. Uses Lagrange-multiplier-like pressure to enforce contact/non-penetration. Almost certainly works only with 2D Penetrator at the moment. Specific implementation for linear elasticity. Also applies continuity of temperature constraint at interface

Constructor & Destructor Documentation

◆ HeatedLinearSurfaceContactElement() [1/2]

template<class ELEMENT >
oomph::HeatedLinearSurfaceContactElement< ELEMENT >::HeatedLinearSurfaceContactElement ( FiniteElement *const &  element_pt,
const int face_index,
const unsigned id = 0,
const bool called_from_refineable_constructor = false 
)
inline

Constructor, which takes a "bulk" element and the value of the index and its limit

hierher currently deactivating collocation on contact elements

612  :
614  face_index,
615  id,
616  called_from_refineable_constructor),
618  face_index,
619  id,
620  called_from_refineable_constructor),
622  {
623  // hierher provide separate id via arg list
625 
626  // We need yet another additional value for each FaceElement node:
627  // the normal traction (Lagrange multiplier) to be
628  // exerted onto the solid
629  unsigned n_nod=this->nnode();
630  Vector<unsigned> n_additional_values(n_nod,1);
631 
632  // Now add storage for Lagrange multipliers and set the map containing
633  // the position of the first entry of this face element's
634  // additional values.
635  this->add_additional_values(n_additional_values,
637 
638 
639  // Set source element storage: one interaction with an external
640  // element -- the HeatedPenetratorFluxElement whose temperature we're
641  //matching
642  this->set_ninteraction(1);
643 
649 
650  //If we are using a top hat function for the heat flux, we need to change
651  //the integration scheme
653  {
655  }
656 
657  }
void set_ninteraction(const unsigned &n_interaction)
Definition: element_with_external_element.h:178
int & face_index()
Definition: elements.h:4626
void add_additional_values(const Vector< unsigned > &nadditional_values, const unsigned &id)
Definition: elements.h:4428
unsigned nnode() const
Return the number of nodes.
Definition: elements.h:2210
virtual void set_integration_scheme(Integral *const &integral_pt)
Set the spatial integration scheme.
Definition: elements.cc:3210
bool * Use_collocated_heat_flux_flag_pt
Set options for basis/test functions for penetration and pressure.
Definition: heated_linear_solid_contact_with_gravity.cc:866
bool use_collocated_heat_flux_flag()
or integrated using the hat function (false)
Definition: heated_linear_solid_contact_with_gravity.cc:834
unsigned Heat_flux_lagr_multiplier_id
ID of heat flux Lagrange multiplier (to ensure continuity of temperature)
Definition: heated_linear_solid_contact_with_gravity.cc:862
bool activate_iso_colloc_for_contact
Definition: heated_linear_solid_contact_with_gravity.cc:871
Definition: contact_elements.h:1773
Definition: contact_elements.h:53
Definition: contact_elements.h:675
double s_max() const
Max. value of local coordinate.
Definition: contact_elements.h:793
double s_min() const
Min value of local coordinate.
Definition: contact_elements.h:788
bool * Use_collocated_contact_pressure_flag_pt
Set options for basis/test functions for penetration and pressure.
Definition: contact_elements.h:651
bool * Use_isoparametric_flag_pt
Set whether or not to use isoparametric basis function for pressure.
Definition: contact_elements.h:645
bool * Use_collocated_penetration_flag_pt
Set options for basis/test functions for penetration and pressure.
Definition: contact_elements.h:648

◆ HeatedLinearSurfaceContactElement() [2/2]

template<class ELEMENT >
oomph::HeatedLinearSurfaceContactElement< ELEMENT >::HeatedLinearSurfaceContactElement ( )
inline

Default constructor.

661 {}

Member Function Documentation

◆ describe_local_dofs()

template<class ELEMENT >
void oomph::HeatedLinearSurfaceContactElement< ELEMENT >::describe_local_dofs ( std::ostream &  out,
const std::string &  current_string 
) const
inlinevirtual

Function to describe the local dofs of the element. The ostream specifies the output stream to which the description is written; the string stores the currently assembled output that is ultimately written to the output stream by Data::describe_dofs(...); it is typically built up incrementally as we descend through the call hierarchy of this function when called from Problem::describe_dofs(...)

Reimplemented from oomph::FiniteElement.

673  {
675  describe_local_dofs(out,current_string);
677  }
void describe_local_dofs(std::ostream &out, const std::string &curr_string) const
Definition: element_with_external_element.cc:205
virtual void describe_local_dofs(std::ostream &out, const std::string &current_string) const
Definition: elements.cc:1709
std::ofstream out("Result.txt")

References out().

◆ fill_in_contribution_to_jacobian()

template<class ELEMENT >
void oomph::HeatedLinearSurfaceContactElement< ELEMENT >::fill_in_contribution_to_jacobian ( Vector< double > &  residuals,
DenseMatrix< double > &  jacobian 
)
inlinevirtual

Final over-rider – use version in element with external element.

Reimplemented from oomph::GeneralisedElement.

683  {
685  jacobian);
686  }
void fill_in_contribution_to_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Definition: element_with_external_element.h:427

References oomph::fill_in_contribution_to_jacobian().

◆ fill_in_contribution_to_residuals_surface_contact()

template<class ELEMENT >
void oomph::HeatedLinearSurfaceContactElement< ELEMENT >::fill_in_contribution_to_residuals_surface_contact ( Vector< double > &  residuals)
protectedvirtual

Return the residuals for the LinearSurfaceContactElement equations.

Overloaded fill in contributions function – includes heat flux to ensure continuity of temperature

////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////

Reimplemented from oomph::LinearSurfaceContactElement< ELEMENT >.

893 {
894 
895  // Get pointer to bulk element
896  ELEMENT *bulk_el_pt = dynamic_cast<ELEMENT*>(this->bulk_element_pt());
897 
898  // Get index of temperature in bulk element
899  unsigned temperature_index=bulk_el_pt->u_index_ust_heat();
900 
901  // Spatial dimension of problem
902  unsigned n_dim = this->nodal_dimension();
903 
904  // Contribution to contact force
905  Vector<double> contact_force(n_dim,0.0);
906 
907  // Create vector of local residuals (start assembling contributions
908  // from zero -- necessary so we can over-write pseudo-hijacked
909  // contributions at the end.
910  unsigned n_dof=this->ndof();
911  Vector<double> local_residuals(n_dof,0.0);
912 
913  {
914  //Find out how many nodes there are
915  unsigned n_node = this->nnode();
916 
917  //Integer to hold the local equation number
918  int local_eqn=0;
919  int local_eqn_p=0;
920  int local_eqn_q=0;
921 
922  //Set up memory for the shape functions
923  Shape psi(n_node);
924  DShape dpsids(n_node,n_dim-1);
925 
926  // Separate shape functions for Lagrange multiplier
927  Shape psi_p(n_node);
928 
929  // Separate shape functions for integration (top hat)
930  Shape psi_i(n_node);
931 
932  Vector<double> s(n_dim-1);
933 
934  // Contribution to integrated pressure
935  Vector<double> pressure_integral(n_node,0.0);
936 
937  // Contribution to weighted penetration integral
938  Vector<double> penetration_integral(n_node,0.0);
939 
940  // Contribution to heat flux integral
941  Vector<double> heat_flux_integral(n_node,0.0);
942 
943  // Contribution to temperature deviation integral
944  Vector<double> temp_deviation_integral(n_node,0.0);
945 
946  // Deformed position
947  Vector<double> x_def(n_dim,0.0);
948 
949  //Set the value of n_intpt
950  unsigned n_intpt = this->integral_pt()->nweight();
951 
952  //Loop over the integration points
953  for(unsigned ipt=0;ipt<n_intpt;ipt++)
954  {
955  //Get the integral weight
956  double w = this->integral_pt()->weight(ipt);
957 
958  //Only need to call the local derivatives
959  this->dshape_local_at_knot(ipt,psi,dpsids);
960 
961  // Separate shape function for Lagrange multipliers
962  for(unsigned i=0;i<n_dim-1;i++)
963  {
964  s[i] = this->integral_pt()->knot(ipt,i);
965  }
966  this->shape_p(s,psi_p);
967 
968  //set up shape for integration
969  this->shape_i(s,psi_i);
970 
971  // Interpolated Lagrange multiplier (pressure acting on solid)
972  double interpolated_lambda_p=0.0;
973 
974  // Interpolated Lagrange multiplier (heat flux)
975  double interpolated_lambda_q=0.0;
976 
977  // Interpolated temperature
978  double interpolated_temp=0.0;
979 
980  // Displacement
981  Vector<double> disp(n_dim,0.0);
982 
983  //Calculate the coordinates
984  Vector<double> interpolated_x(n_dim,0.0);
985 
986  //Also calculate the surface Vectors (derivatives wrt local coordinates)
987  DenseMatrix<double> interpolated_A(n_dim-1,n_dim,0.0);
988 
989  //Calculate displacements and derivatives
990  for(unsigned l=0;l<n_node;l++)
991  {
992  // Cast to a boundary node
993  BoundaryNodeBase *bnod_pt =
994  dynamic_cast<BoundaryNodeBase*>(this->node_pt(l));
995 
996  // Get the index of the nodal value associated with
997  // this FaceElement
998  unsigned first_index=
1000 
1001  // Add to Lagrange multiplier (acting as pressure on solid
1002  // to enforce motion to ensure non-penetration)
1003  interpolated_lambda_p+=this->node_pt(l)->value(first_index)*psi_p[l];
1004 
1005  // Get the index of the nodal value associated with
1006  // this FaceElement
1007  unsigned first_index_q=
1010 
1011  // Add to Lagrange multiplier (acting as a heat flux to enforce
1012  // continuity of temperature across boundary)
1013  interpolated_lambda_q+=this->node_pt(l)->value(first_index_q)*psi_p[l];
1014 
1015  //Get temperature at this integration point
1016  interpolated_temp+=this->node_pt(l)->value(temperature_index)*psi[l];
1017 
1018  //Loop over directions
1019  for(unsigned i=0;i<n_dim;i++)
1020  {
1021  //Calculate the positions
1022  interpolated_x[i]+=this->nodal_position(l,i)*psi(l);
1023 
1024  //Index at which the displacement nodal value is stored
1025  unsigned u_nodal_index=this->U_index_linear_elasticity_traction[i];
1026  disp[i] += this->nodal_value(l,u_nodal_index)*psi(l);
1027 
1028  // Loop over LOCAL derivative directions, to calculate the
1029  // tangent(s)
1030  for(unsigned j=0;j<n_dim-1;j++)
1031  {
1032  interpolated_A(j,i)+=this->nodal_position(l,i)*dpsids(l,j);
1033  }
1034  }
1035  }
1036 
1037  // Get the temperature on the penetrator
1038  double penetrator_temperature=0.0;
1039  if (external_element_pt(0,ipt)!=0)
1040  {
1044  external_element_pt(0,ipt));
1045  // Note: this does NOT take contact or no contact into account
1046  // it simply returns the local temperature at "that point" in "that
1047  // element"
1048  penetrator_temperature=el_pt->penetrator_temperature(s_ext);
1049 
1050  /* oomph_info << "actual penetrator temperature: "
1051  << penetrator_temperature << std::endl;*/
1052  }
1053  else
1054  {
1055  // hierher this should never be triggered on contact surface,
1056  // throw error here? Although it may not always be a problem, depending
1057  // on penetrator/contact surface geometry
1058 
1059  oomph_info << "using default penetrator temperature: "
1060  << penetrator_temperature << std::endl;
1061  }
1062 
1063  //Now find the local deformed metric tensor from the tangent Vectors
1064  DenseMatrix<double> A(n_dim-1);
1065  for(unsigned i=0;i<n_dim-1;i++)
1066  {
1067  for(unsigned j=0;j<n_dim-1;j++)
1068  {
1069  //Initialise surface metric tensor to zero
1070  A(i,j) = 0.0;
1071  //Take the dot product
1072  for(unsigned k=0;k<n_dim;k++)
1073  {
1074  A(i,j) += interpolated_A(i,k)*interpolated_A(j,k);
1075  }
1076  }
1077  }
1078 
1079  //Get the outer unit normal
1080  Vector<double> interpolated_normal(n_dim);
1081  this->outer_unit_normal(ipt,interpolated_normal);
1082 
1083  //Find the determinant of the metric tensor
1084  double Adet =0.0;
1085  switch(n_dim)
1086  {
1087  case 2:
1088  Adet = A(0,0);
1089  break;
1090  case 3:
1091  Adet = A(0,0)*A(1,1) - A(0,1)*A(1,0);
1092  break;
1093  default:
1094  throw OomphLibError(
1095  "Wrong dimension in SurfaceContactElement",
1096  "LinearSurfaceContactElement::fill_in_contribution_to_residuals()",
1098  }
1099 
1100  //Premultiply the weights and the square-root of the determinant of
1101  //the metric tensor
1102  double W = w*sqrt(Adet);
1103 
1104  // Calculate the "load" -- Lagrange multiplier acts as traction to
1105  // to enforce required surface displacement and the
1106  // deformed position
1107  Vector<double> traction(n_dim);
1108  for (unsigned i=0;i<n_dim;i++)
1109  {
1110  traction[i]=-interpolated_lambda_p*interpolated_normal[i];
1111  x_def[i]=interpolated_x[i]+disp[i];
1112  }
1113 
1114 
1115  // Accumulate contribution to total contact force
1116  for(unsigned i=0;i<n_dim;i++)
1117  {
1118  contact_force[i]+=traction[i]*W;
1119  }
1120 
1121  //=====LOAD TERMS FROM PRINCIPLE OF VIRTUAL DISPLACEMENTS========
1122 
1123  //Loop over the test functions, nodes of the element
1124  for(unsigned l=0;l<n_node;l++)
1125  {
1126  //Loop over the displacement components
1127  for(unsigned i=0;i<n_dim;i++)
1128  {
1129  local_eqn = this->nodal_local_eqn(l,i); // hierher get index
1130  /*IF it's not a boundary condition*/
1131  if(local_eqn >= 0)
1132  {
1133  //Add the loading terms to the residuals
1134  local_residuals[local_eqn] -= traction[i]*psi(l)*W;
1135  } //End of if not boundary condition
1136  }
1137 
1138 
1139  // Contribution to unsteady heat equation on surface
1140  local_eqn = this->nodal_local_eqn(l,temperature_index);
1141 
1142  /*IF it's not a boundary condition*/
1143  if(local_eqn >= 0)
1144  {
1145  //Add the loading terms to the residuals
1146  local_residuals[local_eqn] -= interpolated_lambda_q*psi(l)*W;
1147  } //End of if not boundary condition
1148 
1149 
1150  } //End of loop over shape functions
1151 
1152  //=====CONTRIBUTION TO CONTACT PRESSURE/LAGRANGE MULTIPLIER EQNS ========
1153 
1154  //Only calculate the integrals we need to
1156  {
1157  //Loop over the nodes
1158  for(unsigned l=0;l<n_node;l++)
1159  {
1160  // Contribution to integrated pressure
1161  pressure_integral[l]+=interpolated_lambda_p*psi_i[l]*W;
1162  }
1163  }
1164 
1165  if(!this->use_collocated_penetration_flag())
1166  {
1167  // Get local penetration
1168  double d=0.0;
1169  bool intersection = false;
1170  this->penetration(x_def,interpolated_normal,d,intersection);
1171 
1172  //If there is no intersection, d = -max, ie the penetrator
1173  //is infinitely far away
1174  if(!intersection)
1175  {
1176  d = -DBL_MAX;
1177  }
1178 
1179  for(unsigned l=0;l<n_node;l++)
1180  {
1181 
1182  // Contribution to weighted penetration integral
1183  penetration_integral[l]+=d*psi_i[l]*W;
1184  }
1185  }
1186 
1187  if(!this->use_collocated_heat_flux_flag())
1188  {
1189  for(unsigned l=0;l<n_node;l++)
1190  {
1191  // Contribution to integrated heat flux
1192  heat_flux_integral[l]+=interpolated_lambda_q*psi_i[l]*W;
1193  }
1194  }
1195 
1196 
1197  for(unsigned l=0;l<n_node;l++)
1198  {
1199  // Contribution to weighted temperature deviation integral
1200  temp_deviation_integral[l]+=(interpolated_temp-
1201  penetrator_temperature)*psi_i[l]*W;
1202  }
1203 
1204 
1205  } //End of loop over integration points
1206 
1207 
1208  // Eqn for contact pressure and heat flux
1209  //---------------------------------------------
1210 
1211  // Storage for nodal coordinate
1212  Vector<double> x(n_dim);
1213 
1214  //Loop over the nodes
1215  for(unsigned l=0;l<n_node;l++)
1216  {
1217  // get the node pt
1218  Node* nod_pt = this->node_pt(l);
1219 
1220  // Cast to a boundary node
1221  BoundaryNodeBase *bnod_pt =
1222  dynamic_cast<BoundaryNodeBase*>(nod_pt);
1223 
1224  // Get the index of the first nodal value associated with
1225  // this FaceElement
1226  unsigned first_index_p=
1228 
1229  // Equation for pressure Lagrange multiplier
1230  local_eqn_p = this->nodal_local_eqn(l,first_index_p);
1231 
1232  // Get the index of the first nodal value associated with
1233  // this FaceElement
1234  unsigned first_index_q=
1237 
1238  // Equation number for temperature Lagrange multiplier
1239  local_eqn_q = this->nodal_local_eqn(l,first_index_q);
1240 
1241  //IF it's not a boundary condition for both heat_flux and contact_pressure
1242  if(local_eqn_p >= 0 || local_eqn_q >= 0)
1243  {
1244 
1245  // Use weighted/integrated quantities intially (could be 0)
1246  // then overwrite them if using collocation
1247  double d=penetration_integral[l];
1248  double contact_pressure=pressure_integral[l];
1249  double heat_flux=heat_flux_integral[l];
1250  double temp_deviation=temp_deviation_integral[l];
1251 
1252  //overwrite appropriate measure if using collocation
1253 
1255  {
1256  // Nodal position
1257  x[0]=nod_pt->x(0);
1258  x[1]=nod_pt->x(1);
1259 
1260  // Get outer unit normal
1261  Vector<double> s(1);
1262  this->local_coordinate_of_node(l,s);
1263  Vector<double> unit_normal(2);
1264  this->outer_unit_normal(s,unit_normal);
1265 
1266  // Get penetration
1267  bool intersection = false;
1268  this->penetration(x,unit_normal,d,intersection);
1269 
1270  //If there is no intersection, d = -max, ie the penetrator
1271  //is infinitely far away
1272  if(!intersection)
1273  {
1274  d = -DBL_MAX;
1275  }
1276 
1277  }
1278 
1279  //If we are using collocated heat flux, overwrite value
1280  if(this->use_collocated_heat_flux_flag())
1281  {
1282  heat_flux = this->node_pt(l)->value(first_index_q);
1283  }
1284 
1285  //If we are using collocated contact pressure, overwrite value
1287  {
1288  contact_pressure=nod_pt->value(first_index_p);
1289  }
1290 
1291 
1292  // Contact/non-penetration residual
1293  if (this->Enable_stick)
1294  {
1295  // Enforce contact
1296  if(local_eqn_p >= 0)
1297  {
1298  local_residuals[local_eqn_p]-=d;
1299  }
1300 
1301  // Enforce continuity of temperature
1302  if(local_eqn_q >= 0)
1303  {
1304  local_residuals[local_eqn_q]+=temp_deviation;
1305  }
1306  }
1307  else
1308  {
1309  // Piecewise linear variation for non-penetration constraint
1310  if (-d>contact_pressure)//No penetration
1311  {
1312  if(local_eqn_p >= 0)
1313  {
1314  //Crush contact pressure
1315  local_residuals[local_eqn_p]+=contact_pressure;
1316  }
1317  if(local_eqn_q >= 0)
1318  {
1319  //Crush heat flux as no contact means no heat transfer
1320  local_residuals[local_eqn_q]+=heat_flux;
1321  }
1322  }
1323  else //Penetration
1324  {
1325  if(local_eqn_p >= 0)
1326  {
1327  //Increase contact_pressure until d=0
1328  local_residuals[local_eqn_p]-=d;
1329  }
1330  if(local_eqn_q >= 0)
1331  {
1332  //Change lagrange mult (heat flux) until we have continuity
1333  local_residuals[local_eqn_q]+=temp_deviation;
1334  }
1335  }
1336  }
1337  }
1338  }
1339  }
1340 
1341  // Now deal with the penetrator equilibrium equations (if any!)
1342  unsigned n=this->Penetrator_eq_data_type.size();
1343  for (unsigned i=0;i<n;i++)
1344  {
1345  if (this->Penetrator_eq_data_type[i]>=0)
1346  {
1347  switch(unsigned(this->Penetrator_eq_data_type[i]))
1348  {
1349 
1351  {
1352  int local_eqn=this->external_local_eqn(
1354  this->Penetrator_eq_data_index[i]);
1355  if (local_eqn>=0)
1356  {
1357  local_residuals[local_eqn]=contact_force[i];
1358  }
1359  }
1360  break;
1361 
1363  {
1364  // position type (dummy -- hierher paranoid check)
1365  unsigned k=0;
1366  int local_eqn=this->position_local_eqn(
1368  this->Penetrator_eq_data_index[i]);
1369  if (local_eqn>=0)
1370  {
1371  local_residuals[local_eqn]=contact_force[i];
1372  }
1373  }
1374  break;
1375 
1376 
1378  {
1379  int local_eqn=this->nodal_local_eqn(
1381  this->Penetrator_eq_data_index[i]);
1382  if (local_eqn>=0)
1383  {
1384  local_residuals[local_eqn]+=contact_force[i];
1385  }
1386  }
1387  break;
1388 
1389  default:
1390 
1391 
1392  std::stringstream junk;
1393  junk << "Never get here: "
1394  << "unsigned(Penetrator_eq_data_type[i]) = "
1395  << unsigned(this->Penetrator_eq_data_type[i]);
1396  throw OomphLibError(
1397  junk.str(),
1400 
1401  }
1402  }
1403  }
1404 
1405  // Now add local contribution to existing entries
1406  for (unsigned j=0;j<n_dof;j++)
1407  {
1408  residuals[j]+=local_residuals[j];
1409  }
1410 
1411 }
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
RowVector3d w
Definition: Matrix_resize_int.cpp:3
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
Definition: nodes.h:1996
unsigned index_of_first_value_assigned_by_face_element(const unsigned &face_id=0) const
Definition: nodes.h:2061
Definition: shape.h:278
Vector< double > & external_element_local_coord(const unsigned &interaction_index, const unsigned &ipt)
Definition: element_with_external_element.h:136
FiniteElement *& external_element_pt(const unsigned &interaction_index, const unsigned &ipt)
Definition: element_with_external_element.h:107
void outer_unit_normal(const Vector< double > &s, Vector< double > &unit_normal) const
Compute outer unit normal at the specified local coordinate.
Definition: elements.cc:6006
FiniteElement *& bulk_element_pt()
Pointer to higher-dimensional "bulk" element.
Definition: elements.h:4735
virtual void local_coordinate_of_node(const unsigned &j, Vector< double > &s) const
Definition: elements.h:1842
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Definition: elements.h:2175
double nodal_value(const unsigned &n, const unsigned &i) const
Definition: elements.h:2593
virtual double interpolated_x(const Vector< double > &s, const unsigned &i) const
Return FE interpolated coordinate x[i] at local coordinate s.
Definition: elements.cc:3962
virtual void dshape_local_at_knot(const unsigned &ipt, Shape &psi, DShape &dpsids) const
Definition: elements.cc:3239
int nodal_local_eqn(const unsigned &n, const unsigned &i) const
Definition: elements.h:1432
Integral *const & integral_pt() const
Return the pointer to the integration scheme (const version)
Definition: elements.h:1963
double nodal_position(const unsigned &n, const unsigned &i) const
Definition: elements.h:2317
unsigned nodal_dimension() const
Return the required Eulerian dimension of the nodes in this element.
Definition: elements.h:2484
unsigned ndof() const
Return the number of equations/dofs in the element.
Definition: elements.h:835
int external_local_eqn(const unsigned &i, const unsigned &j)
Definition: elements.h:311
double heat_flux(const Vector< double > &s) const
Definition: heated_linear_solid_contact_with_gravity.cc:691
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.
Vector< unsigned > U_index_linear_elasticity_traction
Index at which the i-th displacement component is stored.
Definition: contact_elements.h:1943
Definition: nodes.h:906
double & x(const unsigned &i)
Return the i-th nodal coordinate.
Definition: nodes.h:1060
double value(const unsigned &i) const
Definition: nodes.cc:2408
Definition: oomph_definitions.h:222
Definition: shape.h:76
Vector< int > Penetrator_eq_data_type
Definition: contact_elements.h:1047
unsigned Contact_id
Definition: contact_elements.h:1035
Vector< int > Penetrator_eq_data_index
Definition: contact_elements.h:1055
void shape_i(const Vector< double > &s, Shape &psi) const
Definition: contact_elements.h:948
void shape_p(const Vector< double > &s, Shape &psi) const
Shape fct for lagrange multiplier.
Definition: contact_elements.h:913
bool Enable_stick
Definition: contact_elements.h:1039
Vector< int > Penetrator_eq_data_data_index
Definition: contact_elements.h:1063
void penetration(const Vector< double > &x, const Vector< double > &n, double &d, bool &intersection) const
Work out penetration of point.
Definition: contact_elements.h:1021
bool use_collocated_penetration_flag()
Definition: contact_elements.h:576
bool use_collocated_contact_pressure_flag()
Definition: contact_elements.h:591
@ Nodal_position_data
Definition: contact_elements.h:637
@ External_data
Definition: contact_elements.h:638
@ Nodal_data
Definition: contact_elements.h:636
Definition: heated_linear_solid_contact_with_gravity.cc:69
virtual double penetrator_temperature(const Vector< double > &s) const =0
RealScalar s
Definition: level1_cplx_impl.h:130
char char char int int * k
Definition: level2_impl.h:374
@ W
Definition: quadtree.h:63
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
list x
Definition: plotDoE.py:28
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, oomph::BoundaryNodeBase::index_of_first_value_assigned_by_face_element(), j, k, n, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, oomph::oomph_info, oomph::TemplateFreeHeatedPenetratorFluxElementBase::penetrator_temperature(), s, sqrt(), oomph::Node::value(), w, oomph::QuadTreeNames::W, plotDoE::x, and oomph::Node::x().

◆ heat_flux()

template<class ELEMENT >
double oomph::HeatedLinearSurfaceContactElement< ELEMENT >::heat_flux ( const Vector< double > &  s) const
inlinevirtual

Return heat flux required to maintain continuity of temperature to adjacent penetrator at local coordinate s

Implements oomph::TemplateFreeHeatedLinearSurfaceContactElementBase.

692  {
693  // Get shape function for Lagrange multiplier
694  unsigned n_node = this->nnode();
695  Shape psi_p(n_node);
696  this->shape_p(s,psi_p);
697 
698  // Interpolated Lagrange multiplier (heat flux)
699  double interpolated_lambda_q=0.0;
700  for(unsigned l=0;l<n_node;l++)
701  {
702  // Cast to a boundary node
703  BoundaryNodeBase *bnod_pt =
704  dynamic_cast<BoundaryNodeBase*>(this->node_pt(l));
705 
706  // Get the index of the nodal value associated with
707  // this FaceElement
708  unsigned first_index_q=
711 
712  // Add to Lagrange multiplier (acting as pressure on solid
713  // to enforce motion to ensure non-penetration)
714  interpolated_lambda_q+=this->node_pt(l)->value(first_index_q)*psi_p[l];
715  }
716  return interpolated_lambda_q;
717  }

References oomph::BoundaryNodeBase::index_of_first_value_assigned_by_face_element(), and s.

◆ output()

template<class ELEMENT >
void oomph::HeatedLinearSurfaceContactElement< ELEMENT >::output ( std::ostream &  outfile,
const unsigned n_plot 
)
inlinevirtual

Output function.

Reimplemented from oomph::LinearSurfaceContactElement< ELEMENT >.

737  {
738  unsigned n_dim = this->nodal_dimension();
739 
740  Vector<double> x(n_dim);
741  Vector<double> disp(n_dim);
742  Vector<double> x_def(n_dim);
743  Vector<double> s(n_dim-1);
744  Vector<double> r_pen(n_dim);
745  Vector<double> unit_normal(n_dim);
746  Vector<double> interpolated_heat_flux(1);
747 
748  // Tecplot header info
749  outfile << this->tecplot_zone_string(n_plot);
750 
751  // Loop over plot points
752  unsigned num_plot_points=this->nplot_points(n_plot);
753  for (unsigned iplot=0;iplot<num_plot_points;iplot++)
754  {
755  // Get local coordinates of plot point
756  this->get_s_plot(iplot,n_plot,s);
757 
758  // Get coordinates and outer unit normal
759  this->interpolated_x(s,x);
760  this->outer_unit_normal(s,unit_normal);
761 
762  // Displacement
764 
765  // Deformed position
766  for(unsigned i=0;i<n_dim;i++)
767  {
768  x_def[i]=x[i]+disp[i];
769  }
770 
771  // Get penetration based on deformed position
772  double d= 0.0;
773  bool intersection = false;
774  this->penetration(x_def,unit_normal,d,intersection);
775 
776  //Get heat flux
777  interpolated_heat_flux[0] = heat_flux(s);
778 
779  //Output the x,y,..
780  for(unsigned i=0;i<n_dim;i++)
781  {outfile << x[i] << " ";} // col 1,2
782 
783  // Penetration
784  outfile << std::max(d,-100.0) << " "; // col 3
785 
786  // Lagrange multiplier-like pressure
787  double p=this->get_interpolated_lagrange_p(s);
788  outfile << p << " "; // col 4
789 
790 
791  // Plot Lagrange multiplier like pressure
792  outfile << -unit_normal[0]*p << " "; // col 5
793  outfile << -unit_normal[1]*p << " "; // col 6
794 
795  // Plot vector from current point to boundary of penetrator
796  double d_tmp=d;
797  if (!intersection) d_tmp=0.0;
798  outfile << -d_tmp*unit_normal[0] << " "; // col 7
799  outfile << -d_tmp*unit_normal[1] << " "; // col 8
800 
801  // Output normal
802  for(unsigned i=0;i<n_dim;i++)
803  {outfile << unit_normal[i] << " ";} // col 9, 10
804 
805  //Output the displacements
806  for(unsigned i=0;i<n_dim;i++)
807  {
808  outfile << disp[i] << " "; // col 11, 12
809  }
810 
811  //Output the deformed position
812  for(unsigned i=0;i<n_dim;i++)
813  {
814  outfile << x_def[i] << " "; // col 13, 14
815  }
816 
817  //Output the heat_flux
818  outfile << interpolated_heat_flux[0] << " "; // col 15
819 
820 
821  outfile << std::endl;
822  }
823 
824 
825 
826  // Write tecplot footer (e.g. FE connectivity lists)
827  this->write_tecplot_zone_footer(outfile,n_plot);
828 
829  }
float * p
Definition: Tutorial_Map_using.cpp:9
virtual std::string tecplot_zone_string(const unsigned &nplot) const
Definition: elements.h:3161
virtual void get_s_plot(const unsigned &i, const unsigned &nplot, Vector< double > &s, const bool &shifted_to_interior=false) const
Definition: elements.h:3148
virtual unsigned nplot_points(const unsigned &nplot) const
Definition: elements.h:3186
virtual void write_tecplot_zone_footer(std::ostream &outfile, const unsigned &nplot) const
Definition: elements.h:3174
void interpolated_u_linear_elasticity(const Vector< double > &s, Vector< double > &disp) const
Compute vector of FE interpolated displacement u at local coordinate s.
Definition: contact_elements.h:1909
double get_interpolated_lagrange_p(const Vector< double > &s)
Definition: contact_elements.h:980
#define max(a, b)
Definition: datatypes.h:23

References i, max, p, s, and plotDoE::x.

Referenced by ContactProblem< ELEMENT >::doc_solution().

◆ use_collocated_heat_flux_flag()

template<class ELEMENT >
bool oomph::HeatedLinearSurfaceContactElement< ELEMENT >::use_collocated_heat_flux_flag ( )
inline

or integrated using the hat function (false)

Determine which method to use to discretise heat_flux, collocation (true)

835  {
837  {
838  return false;
839  }
840  else
841  {
843  }
844  }

◆ use_collocated_heat_flux_flag_pt() [1/2]

template<class ELEMENT >
bool*& oomph::HeatedLinearSurfaceContactElement< ELEMENT >::use_collocated_heat_flux_flag_pt ( )
inline

Access function: Pointer to flag to use collocated heat_flux.

◆ use_collocated_heat_flux_flag_pt() [2/2]

template<class ELEMENT >
bool* oomph::HeatedLinearSurfaceContactElement< ELEMENT >::use_collocated_heat_flux_flag_pt ( ) const
inline

Access function: Pointer to flag to use collocated heat_flux (const version)

◆ zeta_nodal()

template<class ELEMENT >
double oomph::HeatedLinearSurfaceContactElement< ELEMENT >::zeta_nodal ( const unsigned n,
const unsigned k,
const unsigned i 
) const
inlinevirtual

hierher overload...

Reimplemented from oomph::SurfaceContactElementBase< ELEMENT >.

723  {
724  unsigned dim=this->node_pt(n)->ndim();
726  for (unsigned ii=0;ii<dim;ii++)
727  {
728  x[ii]=this->node_pt(n)->x(ii);
729  }
732  return zeta[i];
733  }
unsigned dim() const
Definition: elements.h:2611
unsigned ndim() const
Return (Eulerian) spatial dimension of the node.
Definition: nodes.h:1054
virtual void surface_coordinate(const Vector< double > &x, Vector< double > &zeta) const
Definition: contact_elements.h:205
Penetrator * penetrator_pt() const
Pointer to penetrator.
Definition: contact_elements.h:838
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_zeta_op< typename DerivedX::Scalar >, const DerivedX, const DerivedQ > zeta(const Eigen::ArrayBase< DerivedX > &x, const Eigen::ArrayBase< DerivedQ > &q)
Definition: SpecialFunctionsArrayAPI.h:152

References i, n, plotDoE::x, and Eigen::zeta().

Member Data Documentation

◆ activate_iso_colloc_for_contact

template<class ELEMENT >
bool oomph::HeatedLinearSurfaceContactElement< ELEMENT >::activate_iso_colloc_for_contact
protected

hierher currently we don't want to use isoparametric for the lagrange multipliers and collocation for penetration and contact pressure, use this as a bulk switch

◆ Heat_flux_lagr_multiplier_id

template<class ELEMENT >
unsigned oomph::HeatedLinearSurfaceContactElement< ELEMENT >::Heat_flux_lagr_multiplier_id
protected

ID of heat flux Lagrange multiplier (to ensure continuity of temperature)

◆ Use_collocated_heat_flux_flag_pt

template<class ELEMENT >
bool* oomph::HeatedLinearSurfaceContactElement< ELEMENT >::Use_collocated_heat_flux_flag_pt
protected

Set options for basis/test functions for penetration and pressure.


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