oomph::QElement3BulkCoordinateDerivatives Namespace Reference

Functions

void faces0 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the back and front faces, along which s0 is fixed. More...
 
void faces1 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the up and down faces, along which s1 is fixed. More...
 
void faces2 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the left and right faces, along which s2 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::QElement3BulkCoordinateDerivatives::faces0 ( const Vector< double > &  s,
DenseMatrix< double > &  dsbulk_dsface,
unsigned interior_direction 
)

Function for the back and front faces, along which s0 is fixed.

213  {
214  // Bulk coordinate s[0] does not vary along the face
215  dsbulk_dsface(0, 0) = 0.0;
216  dsbulk_dsface(0, 1) = 0.0;
217  // Bulk coordinate s[1] is the face coordinate 1
218  dsbulk_dsface(1, 0) = 1.0;
219  dsbulk_dsface(1, 1) = 0.0;
220  // Bulk coordinate s[2] is the face coordinate 2
221  dsbulk_dsface(2, 0) = 0.0;
222  dsbulk_dsface(2, 1) = 1.0;
223 
224  // The interior direction is given by s[0]
225  interior_direction = 0;
226  }

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

◆ faces1()

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

Function for the up and down faces, along which s1 is fixed.

233  {
234  // Bulk coordinate s[0] is face coordinate 0
235  dsbulk_dsface(0, 0) = 1.0;
236  dsbulk_dsface(0, 1) = 0.0;
237  // Bulk coordinate s[1] is fixed on the face
238  dsbulk_dsface(1, 0) = 0.0;
239  dsbulk_dsface(1, 1) = 0.0;
240  // Bulk coordinate s[2] is the face coordinate 2
241  dsbulk_dsface(2, 0) = 0.0;
242  dsbulk_dsface(2, 1) = 1.0;
243 
244  // The interior direction is given by s[1]
245  interior_direction = 1;
246  }

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

◆ faces2()

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

Function for the left and right faces, along which s2 is fixed.

252  {
253  // Bulk coordinate s[0] is face coordinate 0
254  dsbulk_dsface(0, 0) = 1.0;
255  dsbulk_dsface(0, 1) = 0.0;
256  // Bulk coordinate s[1] is face coordinate 1
257  dsbulk_dsface(1, 0) = 0.0;
258  dsbulk_dsface(1, 1) = 1.0;
259  // Bulk coordinate s[2] is fixed on the face
260  dsbulk_dsface(2, 0) = 0.0;
261  dsbulk_dsface(2, 1) = 0.0;
262 
263  // The interior direction is given by s[2]
264  interior_direction = 2;
265  }

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