1D mesh consisting of N one-dimensional elements from the QElement family. More...
#include <one_d_mesh.template.h>
Public Member Functions | |
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... | |
Protected Member Functions | |
void | check_1d () const |
Mesh can only be built with 1D elements (but can be either T or Q so can't use the normal assert_geometric_element function. More... | |
void | build_mesh (TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper) |
Generic mesh constuction routine, called by all constructors. More... | |
Protected Attributes | |
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 consisting of N one-dimensional elements from the QElement family.
The mesh has two boundaries:
There is one node on each of these boundaries.
Definition at line 51 of file one_d_mesh.template.h.
|
inline |
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).
Definition at line 58 of file one_d_mesh.template.h.
References oomph::OneDMesh< ELEMENT >::build_mesh(), and oomph::OneDMesh< ELEMENT >::check_1d().
|
inline |
Constructor: Pass number of elements, n_element, minimum coordinate, xmin, maximum coordinate, xmax, and a pointer to a timestepper.
Definition at line 71 of file one_d_mesh.template.h.
References oomph::OneDMesh< ELEMENT >::build_mesh(), and oomph::OneDMesh< ELEMENT >::check_1d().
|
protected |
Generic mesh constuction routine, called by all constructors.
The generic mesh construction routine — this contains all the hard work and is called by all constructors.
Definition at line 39 of file one_d_mesh.template.cc.
Referenced by oomph::OneDMesh< ELEMENT >::OneDMesh().
|
inlineprotected |
Mesh can only be built with 1D elements (but can be either T or Q so can't use the normal assert_geometric_element function.
Definition at line 85 of file one_d_mesh.template.h.
Referenced by oomph::OneDMesh< ELEMENT >::OneDMesh().
|
protected |
Length of the domain.
Definition at line 107 of file one_d_mesh.template.h.
|
protected |
Number of elements.
Definition at line 110 of file one_d_mesh.template.h.
|
protected |
Maximum coordinate.
Definition at line 104 of file one_d_mesh.template.h.
|
protected |
Minimum coordinate.
Definition at line 101 of file one_d_mesh.template.h.