27 #ifndef OOMPH_TPML_TIME_HARMONIC_LINEAR_ELASTICITY_ELEMENTS_HEADER
28 #define OOMPH_TPML_TIME_HARMONIC_LINEAR_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"
41 #include "../generic/error_estimator.h"
62 template<
unsigned DIM,
unsigned NNODE_1D>
94 void output(std::ostream& outfile,
const unsigned& nplot)
107 void output(FILE* file_pt,
const unsigned& n_plot)
136 return 2 * (DIM + DIM * (DIM - 1) / 2);
144 unsigned num_entries = 2 * (DIM + ((DIM * DIM) - DIM) / 2);
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
152 OOMPH_CURRENT_FUNCTION,
153 OOMPH_EXCEPTION_LOCATION);
165 for (
unsigned i = 0;
i < DIM;
i++)
167 flux[icount] = strain(
i,
i).real();
169 flux[icount] = strain(
i,
i).imag();
174 for (
unsigned i = 0;
i < DIM;
i++)
176 for (
unsigned j =
i + 1; j < DIM; j++)
178 flux[icount] = strain(
i, j).real();
180 flux[icount] = strain(
i, j).imag();
194 template<
unsigned DIM,
unsigned NNODE_1D>
196 :
public virtual TElement<DIM - 1, NNODE_1D>
208 template<
unsigned NNODE_1D>
229 template<
unsigned NNODE_1D>
248 template<
unsigned DIM,
unsigned NNODE_1D>
251 :
public virtual QElement<DIM - 1, NNODE_1D>
270 template<
unsigned NNODE_1D>
//////////////////////////////////////////////////////////////////////////// ////////////////////////...
Base class for finite elements that can compute the quantities that are required for the Z2 error est...
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement.
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional TElement.
FaceGeometry()
Constructor: Call the constructor for the appropriate lower-dimensional QElement.
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
An OomphLibError object which should be thrown when an run-time error is encountered....
PMLLayerElement()
Constructor: Call the constructor for the appropriate QElement.
PMLLayerElement()
Constructor: Call the constructor for the appropriate QElement.
General definition of policy class defining the elements to be used in the actual PML layers....
void get_strain(const Vector< double > &s, DenseMatrix< std::complex< double >> &strain) const
Return the strain tensor.
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
void output(std::ostream &outfile)
Output: x,y,[z],u_r,v_r,[w_r],u_i,v_i,[w_i].
/////////////////////////////////////////////////////////////////////// /////////////////////////////...
///////////////////////////////////////////////////////////////// ///////////////////////////////////...
/////////////////////////////////////////////////////////////////////// /////////////////////////////...
///////////////////////////////////////////////////////////////////// ///////////////////////////////...
//////////////////////////////////////////////////////////////////////
void output(std::ostream &outfile)
Output function:
void get_Z2_flux(const Vector< double > &s, Vector< double > &flux)
Get 'flux' for Z2 error recovery: Upper triangular entries in strain tensor.
TPMLTimeHarmonicLinearElasticityElement(const TPMLTimeHarmonicLinearElasticityElement< DIM, NNODE_1D > &dummy)=delete
Broken copy constructor.
void output(std::ostream &outfile, const unsigned &nplot)
Output function:
void output(FILE *file_pt)
C-style output function:
unsigned nrecovery_order()
Order of recovery shape functions for Z2 error estimation: Same order as shape functions.
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
unsigned num_Z2_flux_terms()
Number of 'flux' terms for Z2 error estimation.
void output(FILE *file_pt, const unsigned &n_plot)
C-style output function:
void operator=(const TPMLTimeHarmonicLinearElasticityElement< DIM, NNODE_1D > &)=delete
Broken assignment operator.
unsigned nvertex_node() const
Number of vertex nodes in the element.
TPMLTimeHarmonicLinearElasticityElement()
Constructor: Call constructors for TElement and PMLTimeHarmonicLinearElasticity equations.
//////////////////////////////////////////////////////////////////// ////////////////////////////////...