161 unsigned n_x = this->Nx;
162 unsigned n_y = this->Ny;
163 unsigned n_x0 = this->Nx0;
164 unsigned n_x1 = this->Nx1;
165 unsigned n_x2 = this->Nx2;
170 Left_element_pt.reserve(nleft);
173 Centre_element_pt.reserve(ncentre);
176 Right_element_pt.reserve(nright);
179 for (
unsigned e = 0;
e <
n_x0;
e++)
183 for (
unsigned e = 0;
e <
n_x1;
e++)
185 Centre_element_pt.push_back(
188 for (
unsigned e = 0;
e <
n_x2;
e++)
190 Right_element_pt.push_back(
197 if (
nelement() != nleft + ncentre + nright)
219 Nleft_spine = (
n_p - 1) *
n_x0 + 1;
220 Ncentre_spine = (
n_p - 1) *
n_x1 + 1;
221 Nright_spine = (
n_p - 1) *
n_x2;
229 Nleft_spine = (
n_p - 1) *
n_x0 + 1;
230 Ncentre_spine = (
n_p - 1) *
n_x1 + 1;
231 Nright_spine = (
n_p - 1) *
n_x2 + 1;
270 nod_pt->spine_mesh_pt() =
this;
272 nod_pt->node_update_fct_id() = 0;
306 for (
unsigned long i = 0;
i <
n_y;
i++)
319 nod_pt->spine_mesh_pt() =
this;
321 nod_pt->node_update_fct_id() = 0;
329 for (
unsigned long j = 0;
j <
n_x0;
j++)
348 nod_pt->spine_mesh_pt() =
this;
350 nod_pt->node_update_fct_id() = 0;
385 for (
unsigned long i = 0;
i <
n_y;
i++)
398 nod_pt->spine_mesh_pt() =
this;
400 nod_pt->node_update_fct_id() = 0;
441 nod_pt->spine_mesh_pt() =
this;
443 nod_pt->node_update_fct_id() = 1;
478 for (
unsigned long i = 0;
i <
n_y;
i++)
491 nod_pt->spine_mesh_pt() =
this;
493 nod_pt->node_update_fct_id() = 1;
528 nod_pt->node_update_fct_id() = 2;
581 nod_pt->spine_mesh_pt() =
this;
583 nod_pt->node_update_fct_id() = 2;
618 for (
unsigned long i = 0;
i <
n_y;
i++)
631 nod_pt->spine_mesh_pt() =
this;
633 nod_pt->node_update_fct_id() = 2;
660 for (
unsigned i = 0;
i <
n_y;
i++)
ChannelSpineMesh(const unsigned &nx0, const unsigned &nx1, const unsigned &nx2, const unsigned &ny, const double &lx0, const double &lx1, const double &lx2, const double &h, GeomObject *wall_pt, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass number of elements in x-direction in regions 0,1 and 2, number of elements in y-dir...