26 #ifndef OOMPH_ONE_D_MESH_HEADER
27 #define OOMPH_ONE_D_MESH_HEADER
31 #include <oomph-lib-config.h>
35 #include "../generic/line_mesh.h"
36 #include "../generic/refineable_line_mesh.h"
50 template<
class ELEMENT>
89 if (el_pt->
dim() != 1)
91 std::string err =
"OneDMesh is only for 1D elements";
120 template<
class ELEMENT>
128 const unsigned& n_element,
129 const double& length,
131 :
OneDMesh<ELEMENT>(n_element, length, time_stepper_pt)
142 const unsigned& n_element,
146 :
OneDMesh<ELEMENT>(n_element, xmin, xmax, time_stepper_pt)
Definition: elements.h:1313
unsigned dim() const
Definition: elements.h:2611
Base class for line meshes (meshes made of 1D line elements)
Definition: line_mesh.h:54
static Steady< 0 > Default_TimeStepper
The Steady Timestepper.
Definition: mesh.h:75
Definition: one_d_mesh.template.h:52
OneDMesh(const unsigned &n_element, const double &xmin, const double &xmax, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Definition: one_d_mesh.template.h:71
void build_mesh(TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Generic mesh constuction routine, called by all constructors.
Definition: one_d_mesh.template.cc:39
unsigned N
Number of elements.
Definition: one_d_mesh.template.h:110
void check_1d() const
Definition: one_d_mesh.template.h:85
double Length
Length of the domain.
Definition: one_d_mesh.template.h:107
double Xmin
Minimum coordinate.
Definition: one_d_mesh.template.h:101
double Xmax
Maximum coordinate.
Definition: one_d_mesh.template.h:104
OneDMesh(const unsigned &n_element, const double &length, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Definition: one_d_mesh.template.h:58
Definition: oomph_definitions.h:222
Definition: refineable_line_mesh.h:50
void setup_binary_tree_forest()
Definition: refineable_line_mesh.h:78
Refineable version of the OneDMesh.
Definition: one_d_mesh.template.h:123
RefineableOneDMesh(const unsigned &n_element, const double &xmin, const double &xmax, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Definition: one_d_mesh.template.h:141
RefineableOneDMesh(const unsigned &n_element, const double &length, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Definition: one_d_mesh.template.h:127
Definition: timesteppers.h:231
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86