oomph::QElement2BulkCoordinateDerivatives Namespace Reference

Functions

void faces0 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the east and west faces, along which s0 is fixed. More...
 
void faces1 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the north and south faces, along which s1 is fixed. More...
 

Detailed Description

Namespace for helper functions that calculate derivatives of the local coordinates in the bulk elements wrt the local coordinates in the face element.

Function Documentation

◆ faces0()

void oomph::QElement2BulkCoordinateDerivatives::faces0 ( const Vector< double > &  s,
DenseMatrix< double > &  dsbulk_dsface,
unsigned interior_direction 
)

Function for the east and west faces, along which s0 is fixed.

119  {
120  // Bulk coordinate s[0] does not vary along the face
121  dsbulk_dsface(0, 0) = 0.0;
122  // Bulk coordinate s[1] is the face coordinate
123  dsbulk_dsface(1, 0) = 1.0;
124 
125  // The interior direction is given by s[0]
126  interior_direction = 0;
127  }

Referenced by oomph::QHermiteElement< DIM >::build_face_element(), oomph::QSpectralElement< 2, NNODE_1D >::build_face_element(), and oomph::QElement< 2, NNODE_1D >::bulk_coordinate_derivatives_fct_pt().

◆ faces1()

void oomph::QElement2BulkCoordinateDerivatives::faces1 ( const Vector< double > &  s,
DenseMatrix< double > &  dsbulk_dsface,
unsigned interior_direction 
)

Function for the north and south faces, along which s1 is fixed.

134  {
135  // Bulk coordinate s[0] is the face coordinate
136  dsbulk_dsface(0, 0) = 1.0;
137  // Bulk coordinate s[1] does not vary along the face
138  dsbulk_dsface(1, 0) = 0.0;
139 
140  // The interior direction is given by s[1]
141  interior_direction = 1;
142  }

Referenced by oomph::QHermiteElement< DIM >::build_face_element(), oomph::QSpectralElement< 2, NNODE_1D >::build_face_element(), and oomph::QElement< 2, NNODE_1D >::bulk_coordinate_derivatives_fct_pt().