oomph::TElement2BulkCoordinateDerivatives Namespace Reference

Functions

void face0 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the "left" face along which s0 is fixed. More...
 
void face1 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the "bottom" face along which s1 is fixed. More...
 
void face2 (const Vector< double > &s, DenseMatrix< double > &dsbulk_dsface, unsigned &interior_direction)
 Function for the sloping face. 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

◆ face0()

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

Function for the "left" face along which s0 is fixed.

323  {
324  // Bulk coordinate s[0] does not vary along the face
325  dsbulk_dsface(0, 0) = 0.0;
326  // Bulk coordinate s[1] is the face coordinate
327  dsbulk_dsface(1, 0) = 1.0;
328 
329  // The interior direction is given by s[0]
330  interior_direction = 0;
331  }

Referenced by oomph::TElement< 2, NNODE_1D >::build_face_element().

◆ face1()

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

Function for the "bottom" face along which s1 is fixed.

338  {
339  // Bulk coordinate s[0] is the face coordinate
340  dsbulk_dsface(0, 0) = 1.0;
341  // Bulk coordinate s[1] does not vary along the face
342  dsbulk_dsface(1, 0) = 0.0;
343 
344  // The interior direction is given by s[1]
345  interior_direction = 1;
346  }

Referenced by oomph::TElement< 2, NNODE_1D >::build_face_element().

◆ face2()

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

Function for the sloping face.

352  {
353  // Bulk coordinate s[0] decreases along the face
354  dsbulk_dsface(0, 0) = -1.0;
355  // Bulk coordinate s[1] increases along the face
356  dsbulk_dsface(1, 0) = 1.0;
357 
358  // The interior direction is given by s[0] (or s[1])
359  interior_direction = 0;
360  }

Referenced by oomph::TElement< 2, NNODE_1D >::build_face_element().