61 for (
unsigned i = 0;
i < 2;
i++)
105 const double Re =
re();
135 double interpolated_p = 0.0;
142 for (
unsigned i = 0;
i < 2;
i++)
145 interpolated_u[
i] = 0.0;
147 for (
unsigned j = 0;
j < 2;
j++)
149 interpolated_dudx(
i,
j) = 0.0;
163 for (
unsigned i = 0;
i < 2;
i++)
172 for (
unsigned j = 0;
j < 2;
j++)
236 ((1. /
Alpha) * interpolated_dudx(1, 1) +
237 interpolated_u[0])) *
242 (interpolated_p - (1. +
Gamma[
i]) * interpolated_dudx(0, 0)) *
249 Gamma[
i] * interpolated_dudx(1, 0)) *
256 (interpolated_u[0] * interpolated_dudx(0, 0) +
258 interpolated_dudx(0, 1) -
336 (
psif[
l2] * interpolated_dudx(0, 0) +
395 interpolated_dudx(0, 1) -
396 2 * interpolated_u[1] *
496 interpolated_dudx(0, 1) -
499 interpolated_dudx(1, 0)) *
504 (interpolated_dudx(1, 0) +
506 interpolated_dudx(0, 1) -
514 interpolated_dudx(1, 1) +
522 (interpolated_u[0] * interpolated_dudx(1, 0) +
524 interpolated_dudx(1, 1) +
525 ((interpolated_u[0] * interpolated_u[1]) /
602 (
psif[
l2] * interpolated_dudx(1, 0) +
658 interpolated_dudx(1, 1) +
786 (interpolated_dudx(0, 0) +
A Class for the derivatives of shape functions The class design is essentially the same as Shape,...
Integral *const & integral_pt() const
Return the pointer to the integration scheme (const version)
double nodal_value(const unsigned &n, const unsigned &i) const
Return the i-th value stored at local node n. Produces suitably interpolated values for hanging nodes...
virtual double interpolated_x(const Vector< double > &s, const unsigned &i) const
Return FE interpolated coordinate x[i] at local coordinate s.
int nodal_local_eqn(const unsigned &n, const unsigned &i) const
Return the local equation number corresponding to the i-th value at the n-th local node.
unsigned nnode() const
Return the number of nodes.
double nodal_position(const unsigned &n, const unsigned &i) const
Return the i-th coordinate at local node n. If the node is hanging, the appropriate interpolation is ...
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Class that contains data for hanging nodes.
Node *const & master_node_pt(const unsigned &i) const
Return a pointer to the i-th master node.
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.
bool is_hanging() const
Test whether the node is geometrically hanging.
HangInfo *const & hanging_pt() const
Return pointer to hanging node data (this refers to the geometric hanging node status) (const version...
virtual void pshape_pnst(const Vector< double > &s, Shape &psi) const =0
Compute the pressure shape functions at local coordinate s.
const double & re() const
Reynolds number.
const double & re_st() const
Product of Reynolds and Strouhal number (=Womersley number)
static Vector< double > Gamma
Vector to decide whether the stress-divergence form is used or not.
virtual int p_local_eqn(const unsigned &n)=0
Access function for the local equation number information for the pressure. p_local_eqn[n] = local eq...
virtual double p_pnst(const unsigned &n_p) const =0
Pressure at local pressure "node" n_p Uses suitably interpolated value for hanging nodes.
const double & alpha() const
Alpha.
virtual int p_nodal_index_pnst()
Which nodal value represents the pressure? (Default: negative, indicating that pressure is not based ...
virtual double dshape_and_dtest_eulerian_at_knot_pnst(const unsigned &ipt, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const =0
Compute the shape functions and derivatives w.r.t. global coords at ipt-th integration point Return J...
virtual unsigned u_index_pnst(const unsigned &i) const
Return the index at which the i-th unknown velocity component is stored. The default value,...
virtual unsigned npres_pnst() const =0
Function to return number of pressure degrees of freedom.
int local_hang_eqn(Node *const &node_pt, const unsigned &i)
Access function that returns the local equation number for the hanging node variables (values stored ...
virtual void fill_in_generic_residual_contribution(Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix, unsigned flag)
Add element's contribution to elemental residual vector and/or Jacobian matrix flag=1: compute both f...
virtual Node * pressure_node_pt(const unsigned &n_p)
Pointer to n_p-th pressure node (Default: NULL, indicating that pressure is not based on nodal interp...
A Class for shape functions. In simple cases, the shape functions have only one index that can be tho...
TAdvectionDiffusionReactionElement<NREAGENT,DIM,NNODE_1D> elements are isoparametric triangular DIM-d...
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).