30#ifndef OOMPH_AXISYMM_SOLID_TRACTION_ELEMENTS_HEADER
31#define OOMPH_AXISYMM_SOLID_TRACTION_ELEMENTS_HEADER
35#include <oomph-lib-config.h>
39#include "../generic/Qelements.h"
50 template<
class ELEMENT>
76 for (
unsigned i = 0;
i < 2;
i++)
84 (*Traction_fct_pt)(time, xi, x,
n,
result);
160 template<
class ELEMENT>
161 void AxisymmetricCylindricalSolidTractionElement<
165 unsigned n_node = nnode();
176 unsigned n_intpt = integral_pt()->nweight();
200 for (
unsigned i = 0;
i < 2;
i++)
203 interpolated_x[
i] += nodal_position(
l,
i) *
psi(
l);
204 interpolated_xi[
i] += this->lagrangian_position(
l,
i) *
psi(
l);
208 interpolated_dxids[
i] +=
209 this->lagrangian_position(
l,
i) *
dpsids(
l, 0);
215 double A_det = interpolated_x[0] * interpolated_x[0] *
243 for (
unsigned i = 0;
i < 2;
i++)
A class for elements that allow the imposition of an applied traction in the principle of virtual dis...
void fill_in_contribution_to_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Return the jacobian.
void output(std::ostream &outfile)
Overload the output function.
void output(FILE *file_pt)
Overload the output function.
void get_traction(const double &time, const Vector< double > &xi, const Vector< double > &x, const Vector< double > &n, Vector< double > &result) const
Return the surface traction force.
void output(std::ostream &outfile, const unsigned &n_plot)
Output function: x,y,[z],u,v,[w],p in tecplot format.
void(* Traction_fct_pt)(const double &time, const Vector< double > &xi, const Vector< double > &x, const Vector< double > &n, Vector< double > &result)
Pointer to an imposed traction function.
AxisymmetricCylindricalSolidTractionElement(FiniteElement *const &element_pt, const int &face_index)
Constructor, which takes a "bulk" element and the value of the index and its limit.
void output(FILE *file_pt, const unsigned &n_plot)
Output function: x,y,[z],u,v,[w],p in tecplot format.
void(*&)(const double &, const Vector< double > &, const Vector< double > &, const Vector< double > &, Vector< double > &) traction_fct_pt()
Return the imposed traction pointer.
void fill_in_contribution_to_residuals(Vector< double > &residuals)
Return the residuals.
A Class for the derivatives of shape functions The class design is essentially the same as Shape,...
FaceElements are elements that coincide with the faces of higher-dimensional "bulk" elements....
int & face_index()
Index of the face (a number that uniquely identifies the face in the element)
FaceGeometry class definition: This policy class is used to allow construction of face elements that ...
A general Finite Element class.
virtual void output(std::ostream &outfile)
Output the element data — typically the values at the nodes in a format suitable for post-processing.
virtual void build_face_element(const int &face_index, FaceElement *face_element_pt)
Function for building a lower dimensional FaceElement on the specified face of the FiniteElement....
TimeStepper *& time_stepper_pt()
Access function for pointer to time stepper: Null if object is not time-dependent.
A Class for shape functions. In simple cases, the shape functions have only one index that can be tho...
SolidFaceElements combine FaceElements and SolidFiniteElements and overload various functions so they...
TAdvectionDiffusionReactionElement<NREAGENT,DIM,NNODE_1D> elements are isoparametric triangular DIM-d...
Base class for time-stepping schemes. Timestepper provides an approximation of the temporal derivativ...
virtual double weight(const unsigned &i, const unsigned &j) const
Access function for j-th weight for the i-th derivative.
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).