26 #ifndef OOMPH_TAXISYM_POROELASTICITY_ELEMENTS_HEADER
27 #define OOMPH_TAXISYM_POROELASTICITY_ELEMENTS_HEADER
31 #include <oomph-lib-config.h>
35 #include "../generic/Telements.h"
47 template<
unsigned ORDER>
115 s[0] = flux_interpolation_point[0];
118 s[0] = 1.0 - flux_interpolation_point[0];
121 s[0] = flux_interpolation_point[0];
136 #ifdef RANGE_CHECKING
139 std::ostringstream error_message;
140 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,1)";
153 #ifdef RANGE_CHECKING
156 std::ostringstream error_message;
157 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
170 #ifdef RANGE_CHECKING
173 std::ostringstream error_message;
174 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
212 #ifdef RANGE_CHECKING
215 std::ostringstream error_message;
216 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
223 return j % (ORDER + 1) + 2;
229 #ifdef RANGE_CHECKING
232 std::ostringstream error_message;
233 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
253 #ifdef RANGE_CHECKING
256 std::ostringstream error_message;
257 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
269 double q_edge(
const unsigned&
t,
const unsigned&
j)
const
271 #ifdef RANGE_CHECKING
274 std::ostringstream error_message;
275 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
288 #ifdef RANGE_CHECKING
291 std::ostringstream error_message;
292 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
306 #ifdef RANGE_CHECKING
309 std::ostringstream error_message;
310 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
368 Shape& div_q_basis_ds)
const;
377 const unsigned&
j)
const
379 #ifdef RANGE_CHECKING
382 std::ostringstream error_message;
383 error_message <<
"Range Error: edge " << edge
384 <<
" is not in the range (0,2)";
391 std::ostringstream error_message;
392 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
400 coord[0] = (1.0 -
sign_edge(edge)) / 2.0 +
411 #ifdef RANGE_CHECKING
414 std::ostringstream error_message;
415 error_message <<
"Range Error: edge " << edge
416 <<
" is not in the range (0,2)";
423 std::ostringstream error_message;
424 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
449 s_flux_interpolation[0] = 1.0 - flux_interpolation_point[0];
450 s_flux_interpolation[1] = flux_interpolation_point[0];
453 s_flux_interpolation[0] = 0.0;
454 s_flux_interpolation[1] = 1.0 - flux_interpolation_point[0];
457 s_flux_interpolation[0] = flux_interpolation_point[0];
458 s_flux_interpolation[1] = 0.0;
469 #ifdef RANGE_CHECKING
472 std::ostringstream error_message;
473 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
487 #ifdef RANGE_CHECKING
490 std::ostringstream error_message;
491 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
504 #ifdef RANGE_CHECKING
507 std::ostringstream error_message;
508 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
527 #ifdef RANGE_CHECKING
530 std::ostringstream error_message;
531 error_message <<
"Range Error: j " <<
j <<
" is not in the range (0,"
561 double x0, y0,
x1, y1;
565 for (
unsigned i = 0;
i < 3;
i++)
577 const double ref_length[3] = {
std::sqrt(2.0), 1, 1};
584 const unsigned n_index2 = basis.
nindex2();
585 for (
unsigned i = 0;
i < n_index2;
i++)
587 for (
unsigned l = 0; l < n_q_basis_edge; l++)
590 (length[l / (ORDER + 1)] / ref_length[l / (ORDER + 1)]);
615 void output(std::ostream& outfile,
const unsigned& Nplot)
653 Shape& div_q_basis_ds,
654 Shape& div_q_test_ds)
const
656 const unsigned n_q_basis = this->
nq_basis();
658 Shape q_basis_local(n_q_basis, 2);
674 div_q_test_ds = div_q_basis_ds;
692 Shape& div_q_basis_ds,
693 Shape& div_q_test_ds)
const
696 for (
unsigned i = 0;
i < 2;
i++)
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
JacobiRotation< float > J
Definition: Jacobi_makeJacobi.cpp:3
float * p
Definition: Tutorial_Map_using.cpp:9
Definition: axisym_poroelasticity_elements.h:51
double transform_basis(const Vector< double > &s, const Shape &q_basis_local, Shape &psi, DShape &dpsi, Shape &q_basis) const
Definition: axisym_poroelasticity_elements.cc:80
virtual unsigned nq_basis() const
Return the total number of computational basis functions for q.
Definition: axisym_poroelasticity_elements.h:365
void output(std::ostream &outfile)
Output with default number of plot points.
Definition: axisym_poroelasticity_elements.h:1221
void pin(const unsigned &i)
Pin the i-th stored variable.
Definition: nodes.h:385
void set_value(const unsigned &i, const double &value_)
Definition: nodes.h:271
double value(const unsigned &i) const
Definition: nodes.h:293
FaceGeometry()
Constructor: Call constructor of base.
Definition: Taxisym_poroelasticity_elements.h:727
FaceGeometry()
Constructor: Call constructor of base class.
Definition: Taxisym_poroelasticity_elements.h:740
Definition: elements.h:4998
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
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
Data *& internal_data_pt(const unsigned &i)
Return a pointer to i-th internal data object.
Definition: elements.h:622
int internal_local_eqn(const unsigned &i, const unsigned &j) const
Definition: elements.h:267
virtual double knot(const unsigned &i, const unsigned &j) const =0
Return local coordinate s[j] of i-th integration point.
double & x(const unsigned &i)
Return the i-th nodal coordinate.
Definition: nodes.h:1060
Definition: oomph_definitions.h:222
unsigned nindex2() const
Return the range of index 2 of the shape function object.
Definition: shape.h:265
Definition: Taxisym_poroelasticity_elements.h:51
void set_q_internal(const unsigned &t, const unsigned &j, const double &value)
Definition: Taxisym_poroelasticity_elements.h:349
void edge_flux_interpolation_point_global(const unsigned &edge, const unsigned &j, Vector< double > &x) const
Definition: Taxisym_poroelasticity_elements.h:407
unsigned nvertex_node() const
Number of vertex nodes in the element.
Definition: Taxisym_poroelasticity_elements.h:622
double q_internal(const unsigned &t, const unsigned &j) const
Definition: Taxisym_poroelasticity_elements.h:304
void get_p_basis(const Vector< double > &s, Shape &p_basis) const
Return the pressure basis.
double q_edge(const unsigned &j) const
Return the values of the j-th edge (flux) degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:251
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
Definition: Taxisym_poroelasticity_elements.h:628
std::vector< short > Sign_edge
Definition: Taxisym_poroelasticity_elements.h:75
Node * edge_flux_node_pt(const unsigned &edge)
Get pointer to node that stores the edge flux dofs for specified edge.
Definition: Taxisym_poroelasticity_elements.h:245
unsigned Q_internal_data_index
Definition: Taxisym_poroelasticity_elements.h:68
Data * q_internal_data_pt() const
Return pointer to the Data object that stores the internal flux values.
Definition: Taxisym_poroelasticity_elements.h:197
unsigned q_edge_index(const unsigned &j) const
Return the nodal index at which the jth edge unknown is stored.
Definition: Taxisym_poroelasticity_elements.h:210
Vector< double > edge_flux_interpolation_point(const unsigned &edge, const unsigned &j) const
Definition: Taxisym_poroelasticity_elements.h:376
short & sign_edge(const unsigned &n)
Accessor for the unit normal sign of edge n.
Definition: Taxisym_poroelasticity_elements.h:602
unsigned P_internal_data_index
The internal data index where the p degrees of freedom are stored.
Definition: Taxisym_poroelasticity_elements.h:71
unsigned required_nvalue(const unsigned &n) const
Number of values required at node n.
Definition: Taxisym_poroelasticity_elements.h:85
double p_value(const unsigned &j) const
Return the jth pressure value.
Definition: Taxisym_poroelasticity_elements.h:502
static const unsigned Initial_Nvalue[]
The number of values stored at each node.
Definition: Taxisym_poroelasticity_elements.h:54
unsigned q_internal_index() const
Definition: Taxisym_poroelasticity_elements.h:204
unsigned nq_basis_edge() const
Return the number of edge basis functions for flux q.
unsigned face_index_of_edge(const unsigned &j) const
Return the face index associated with specified edge.
Definition: Taxisym_poroelasticity_elements.h:91
unsigned q_edge_node_number(const unsigned &j) const
Return the number of the node where the jth edge unknown is stored.
Definition: Taxisym_poroelasticity_elements.h:227
void get_q_basis_local(const Vector< double > &s, Shape &q_basis) const
Returns the local form of the q basis at local coordinate s.
~TAxisymmetricPoroelasticityElement()
Destructor.
void set_q_internal(const unsigned &j, const double &value)
Set the values of the j-th internal degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:342
void set_p_value(const unsigned &j, const double &value)
Set the jth pressure value.
Definition: Taxisym_poroelasticity_elements.h:549
Data * p_data_pt() const
Return pointer to the Data object that stores the pressure values.
Definition: Taxisym_poroelasticity_elements.h:543
static const double Flux_interpolation_point[]
The points along each edge where the fluxes are taken to be.
Definition: Taxisym_poroelasticity_elements.h:64
void output(std::ostream &outfile, const unsigned &Nplot)
Definition: Taxisym_poroelasticity_elements.h:615
void pin_p_value(const unsigned &j, const double &p)
Pin the jth pressure value and set to specified value.
Definition: Taxisym_poroelasticity_elements.h:525
void pin_q_internal_value(const unsigned &j, const double &q)
Pin the jth internal q value and set it to specified value.
Definition: Taxisym_poroelasticity_elements.h:467
void get_div_q_basis_local(const Vector< double > &s, Shape &div_q_basis_ds) const
TAxisymmetricPoroelasticityElement()
Constructor.
void set_q_edge(const unsigned &t, const unsigned &j, const double &value)
Definition: Taxisym_poroelasticity_elements.h:335
const short & sign_edge(const unsigned &n) const
Accessor for the unit normal sign of edge n (const version)
Definition: Taxisym_poroelasticity_elements.h:596
int p_local_eqn(const unsigned &j) const
Return the equation number of the j-th pressure degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:485
double shape_basis_test_local(const Vector< double > &s, Shape &psi, DShape &dpsi, Shape &u_basis, Shape &u_test, DShape &du_basis_dx, DShape &du_test_dx, Shape &q_basis, Shape &q_test, Shape &p_basis, Shape &p_test, Shape &div_q_basis_ds, Shape &div_q_test_ds) const
Definition: Taxisym_poroelasticity_elements.h:642
void set_q_edge(const unsigned &j, const double &value)
Set the values of the j-th edge (flux) degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:328
void pin_q_edge_value(const unsigned &j, const double &value)
Pin the j-th edge (flux) degree of freedom and set it to specified value.
Definition: Taxisym_poroelasticity_elements.h:321
void output(std::ostream &outfile)
Output with default number of plot points.
Definition: Taxisym_poroelasticity_elements.h:608
unsigned nedge_flux_interpolation_point() const
int q_edge_local_eqn(const unsigned &j) const
Return the equation number of the j-th edge (flux) degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:151
unsigned face_index_of_q_edge_basis_fct(const unsigned &j) const
Return the face index associated with j-th edge flux degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:127
double shape_basis_test_local_at_knot(const unsigned &ipt, Shape &psi, DShape &dpsi, Shape &u_basis, Shape &u_test, DShape &du_basis_dx, DShape &du_test_dx, Shape &q_basis, Shape &q_test, Shape &p_basis, Shape &p_test, Shape &div_q_basis_ds, Shape &div_q_test_ds) const
Definition: Taxisym_poroelasticity_elements.h:681
void scale_basis(Shape &basis) const
Scale the edge basis to allow arbitrary edge mappings.
Definition: Taxisym_poroelasticity_elements.h:555
unsigned nq_basis_internal() const
Return the number of internal basis functions for flux q.
unsigned u_index_axisym_poroelasticity(const unsigned &j) const
Definition: Taxisym_poroelasticity_elements.h:134
int q_internal_local_eqn(const unsigned &j) const
Return the equation number of the j-th internal degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:168
unsigned np_basis() const
Return the total number of pressure basis functions.
static const unsigned Q_edge_conv[]
Definition: Taxisym_poroelasticity_elements.h:61
static const unsigned Face_index_of_edge_flux[]
Face index associated with edge flux degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:57
double q_edge(const unsigned &t, const unsigned &j) const
Definition: Taxisym_poroelasticity_elements.h:269
Vector< Data * > q_edge_data_pt() const
Definition: Taxisym_poroelasticity_elements.h:186
double q_internal(const unsigned &j) const
Return the values of the internal degree of freedom.
Definition: Taxisym_poroelasticity_elements.h:286
unsigned nrecovery_order()
Recovery order for Z2 error estimator.
Definition: Taxisym_poroelasticity_elements.h:634
void face_local_coordinate_of_flux_interpolation_point(const unsigned &edge, const unsigned &n, Vector< double > &s) const
Definition: Taxisym_poroelasticity_elements.h:98
Definition: Telements.h:1208
RealScalar s
Definition: level1_cplx_impl.h:130
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 pow(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:625
EIGEN_DEVICE_FUNC const Scalar & q
Definition: SpecialFunctionsImpl.h:2019
squared absolute value
Definition: GlobalFunctions.h:87
Vector< double > x1(const Vector< double > &coord)
Cartesian coordinates centered at the point (0.5,1)
Definition: poisson/poisson_with_singularity/two_d_poisson.cc:86
Vector< double > x0(2, 0.0)
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36
#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