30 #ifndef OOMPH_ONE_D_MESH_HEADER 31 #define OOMPH_ONE_D_MESH_HEADER 35 #include <oomph-lib-config.h> 39 #include "../generic/line_mesh.h" 40 #include "../generic/refineable_line_mesh.h" 55 template <
class ELEMENT>
65 OneDMesh(
const unsigned &n_element,
const double &length,
77 OneDMesh(
const unsigned &n_element,
const double &xmin,
const double &xmax,
96 std::string err =
"OneDMesh is only for 1D elements";
98 OOMPH_EXCEPTION_LOCATION);
100 delete el_pt; el_pt = 0;
126 template <
class ELEMENT>
137 :
OneDMesh<ELEMENT>(n_element,length,time_stepper_pt)
141 this->setup_binary_tree_forest();
148 const double &xmin,
const double &xmax,
150 :
OneDMesh<ELEMENT>(n_element,xmin,xmax,time_stepper_pt)
154 this->setup_binary_tree_forest();
RefineableOneDMesh(const unsigned &n_element, const double &xmin, const double &xmax, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor that allows the specification of minimum and maximum values of x coordinates. Also pass pointer to timestepper (defaults to Steady).
double Xmax
Maximum coordinate.
void build_mesh(TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Generic mesh constuction routine, called by all constructors.
static Steady< 0 > Default_TimeStepper
Default Steady Timestepper, to be used in default arguments to Mesh constructors. ...
Refineable version of the OneDMesh.
A general Finite Element class.
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...
unsigned N
Number of elements.
double Xmin
Minimum coordinate.
RefineableOneDMesh(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...
Base class for line meshes (meshes made of 1D line elements)
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...
unsigned dim() const
Return the spatial dimension of the element, i.e. the number of local coordinates required to paramet...
std::string string(const unsigned &i)
Return the i-th string or "" if the relevant string hasn't been defined.
double Length
Length of the domain.
Base class for time-stepping schemes. Timestepper provides an approximation of the temporal derivativ...