#include <one_d_lagrangian_mesh.template.h>
Public Member Functions | |
OneDLagrangianMesh (const unsigned &n_element, const double &length, GeomObject *undef_eulerian_posn_pt, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper) | |
Constructor: Pass number of elements, length, pointer to GeomObject that defines the undeformed Eulerian position, and the timestepper – defaults to (Steady) default timestepper defined in the Mesh base class. More... | |
OneDLagrangianMesh (const unsigned &n_element, const double &xmin, const double &xmax, GeomObject *undef_eulerian_posn_pt, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper) | |
Constructor: Pass number of elements, xmin, xmax pointer to GeomObject that defines the undeformed Eulerian position, and the timestepper – defaults to (Steady) default timestepper defined in the Mesh base class. More... | |
![]() | |
OneDMesh (const unsigned &n_element, const double &length, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper) | |
Constructor: Pass number of elements, n_element, length of domain, length, and pointer to timestepper (defaults to a Steady timestepper so we don't need to specify one in problems without time-dependence). More... | |
OneDMesh (const unsigned &n_element, const double &xmin, const double &xmax, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper) | |
Constructor: Pass number of elements, n_element, minimum coordinate, xmin, maximum coordinate, xmax, and a pointer to a timestepper. More... | |
Private Member Functions | |
void | assign_default_element_gradients () |
Set the default gradients of the elements. More... | |
void | assign_undeformed_positions () |
Assign the undeformed Eulerian positions to the nodes. More... | |
Private Attributes | |
GeomObject * | Undef_eulerian_posn_pt |
Undeformed Eulerian shape. More... | |
Additional Inherited Members | |
![]() | |
void | check_1d () const |
void | build_mesh (TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper) |
Generic mesh constuction routine, called by all constructors. More... | |
![]() | |
double | Xmin |
Minimum coordinate. More... | |
double | Xmax |
Maximum coordinate. More... | |
double | Length |
Length of the domain. More... | |
unsigned | N |
Number of elements. More... | |
1D mesh parametrised in terms of a 1D Lagrangian coordinate. The Eulerian positions of the nodes are determined by the GeomObject.
Definition at line 50 of file one_d_lagrangian_mesh.template.h.
oomph::OneDLagrangianMesh< ELEMENT >::OneDLagrangianMesh | ( | const unsigned & | n_element, |
const double & | length, | ||
GeomObject * | undef_eulerian_posn_pt, | ||
TimeStepper * | time_stepper_pt = &Mesh::Default_TimeStepper |
||
) |
Constructor: Pass number of elements, length, pointer to GeomObject that defines the undeformed Eulerian position, and the timestepper – defaults to (Steady) default timestepper defined in the Mesh base class.
Constructor for 1D mesh: n_element : number of elements length : length of domain undef_eulerian_posn_pt: pointer to geom object that describes the initial Eulerian position of the mesh. time_stepper_pt : timestepper
Definition at line 55 of file one_d_lagrangian_mesh.template.cc.
oomph::OneDLagrangianMesh< ELEMENT >::OneDLagrangianMesh | ( | const unsigned & | n_element, |
const double & | xmin, | ||
const double & | xmax, | ||
GeomObject * | undef_eulerian_posn_pt, | ||
TimeStepper * | time_stepper_pt = &Mesh::Default_TimeStepper |
||
) |
Constructor: Pass number of elements, xmin, xmax pointer to GeomObject that defines the undeformed Eulerian position, and the timestepper – defaults to (Steady) default timestepper defined in the Mesh base class.
Constructor for 1D mesh: n_element : number of elements xmin : minimum coordinate value (LH end) xmax : maximum coordinate value (RH end) undef_eulerian_posn_pt: pointer to geom object that describes the initial Eulerian position of the mesh. time_stepper_pt : timestepper
Definition at line 86 of file one_d_lagrangian_mesh.template.cc.
|
private |
Set the default gradients of the elements.
Set the default (initial) gradients within each element, which are merely the distances between the nodes, scaled by 0.5 because the elements have length 2 in local coordinates. N.B. This only works for QHermiteElements at the moment
Definition at line 116 of file one_d_lagrangian_mesh.template.cc.
|
private |
Assign the undeformed Eulerian positions to the nodes.
Set the initial (2D Eulerian!) positions of the nodes.
Definition at line 143 of file one_d_lagrangian_mesh.template.cc.
|
private |
Undeformed Eulerian shape.
Definition at line 56 of file one_d_lagrangian_mesh.template.h.