27 #ifndef OOMPH_TLINEAR_ELASTICITY_ELEMENTS_HEADER
28 #define OOMPH_TLINEAR_ELASTICITY_ELEMENTS_HEADER
33 #include <oomph-lib-config.h>
38 #include "../generic/nodes.h"
39 #include "../generic/oomph_utilities.h"
40 #include "../generic/Telements.h"
42 #include "../generic/error_estimator.h"
61 template<
unsigned DIM,
unsigned NNODE_1D>
63 :
public virtual TElement<DIM, NNODE_1D>,
95 void output(std::ostream& outfile,
const unsigned& nplot)
108 void output(FILE* file_pt,
const unsigned& n_plot)
145 if (
flux.size() != num_entries)
147 std::ostringstream error_message;
148 error_message <<
"The flux vector has the wrong number of entries, "
149 <<
flux.size() <<
", whereas it should be " << num_entries
165 for (
unsigned i = 0;
i <
DIM;
i++)
167 flux[icount] = strain(
i,
i);
172 for (
unsigned i = 0;
i <
DIM;
i++)
174 for (
unsigned j =
i + 1;
j <
DIM;
j++)
176 flux[icount] = strain(
i,
j);
189 template<
unsigned DIM,
unsigned NNODE_1D>
191 :
public virtual TElement<DIM - 1, NNODE_1D>
202 template<
unsigned NNODE_1D>
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: error_estimator.h:79
FaceGeometry()
Definition: Tlinear_elasticity_elements.h:209
FaceGeometry()
Definition: Tlinear_elasticity_elements.h:196
Definition: elements.h:4998
void get_strain(const Vector< double > &s, DenseMatrix< double > &strain) const
Return the strain tensor.
Definition: linear_elasticity_elements.cc:47
Definition: linear_elasticity_elements.h:380
void output(std::ostream &outfile)
Output: x,y,[z],u,v,[w].
Definition: linear_elasticity_elements.h:427
Definition: oomph_definitions.h:222
Definition: elements.h:3439
Definition: Telements.h:1208
Definition: Tlinear_elasticity_elements.h:66
unsigned num_Z2_flux_terms()
Number of 'flux' terms for Z2 error estimation.
Definition: Tlinear_elasticity_elements.h:133
unsigned nvertex_node() const
Number of vertex nodes in the element.
Definition: Tlinear_elasticity_elements.h:114
unsigned nrecovery_order()
Definition: Tlinear_elasticity_elements.h:127
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
Definition: Tlinear_elasticity_elements.h:120
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Definition: Tlinear_elasticity_elements.h:141
TLinearElasticityElement(const TLinearElasticityElement< DIM, NNODE_1D > &dummy)=delete
Broken copy constructor.
void output(std::ostream &outfile)
Broken assignment operator.
Definition: Tlinear_elasticity_elements.h:89
void output(FILE *file_pt, const unsigned &n_plot)
C-style output function:
Definition: Tlinear_elasticity_elements.h:108
void output(std::ostream &outfile, const unsigned &nplot)
Output function:
Definition: Tlinear_elasticity_elements.h:95
void output(FILE *file_pt)
C-style output function:
Definition: Tlinear_elasticity_elements.h:102
TLinearElasticityElement()
Definition: Tlinear_elasticity_elements.h:70
RealScalar s
Definition: level1_cplx_impl.h:130
#define DIM
Definition: linearised_navier_stokes_elements.h:44
void flux(const double &time, const Vector< double > &x, double &flux)
Get flux applied along boundary x=0.
Definition: pretend_melt.cc:59
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
#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