Public Member Functions | Private Attributes | List of all members
oomph::SimpleRectangularTriMesh< ELEMENT > Class Template Reference

Simple 2D triangular mesh for TElements. More...

#include <simple_rectangular_tri_mesh.h>

Inheritance diagram for oomph::SimpleRectangularTriMesh< ELEMENT >:

Public Member Functions

 SimpleRectangularTriMesh (const unsigned &n_x, const unsigned &n_y, const double &l_x, const double &l_y, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
 Constructor n_x : number of elements in the x direction; n_y : number of elements in the y direction; l_x : length in the x direction l_y : length in the y direction Ordering of elements: 'lower left' to 'lower right' then 'upwards'.
 
const unsignednx () const
 Access function for number of elements in x directions.
 
const unsignedny () const
 Access function for number of elements in y directions.
 

Private Attributes

unsigned Nx
 Number of elements in x direction.
 
unsigned Ny
 Number of elements in y directions.
 
double Lx
 Length of mesh in x-direction.
 
double Ly
 Length of mesh in y-direction.
 

Detailed Description

template<class ELEMENT>
class oomph::SimpleRectangularTriMesh< ELEMENT >

Simple 2D triangular mesh for TElements.

Definition at line 47 of file simple_rectangular_tri_mesh.h.

Constructor & Destructor Documentation

◆ SimpleRectangularTriMesh()

template<class ELEMENT >
oomph::SimpleRectangularTriMesh< ELEMENT >::SimpleRectangularTriMesh ( const unsigned n_x,
const unsigned n_y,
const double l_x,
const double l_y,
TimeStepper time_stepper_pt = &Mesh::Default_TimeStepper 
)

Constructor n_x : number of elements in the x direction; n_y : number of elements in the y direction; l_x : length in the x direction l_y : length in the y direction Ordering of elements: 'lower left' to 'lower right' then 'upwards'.

Constructor for simple 2D triangular mesh class:

n_x : number of elements in the x direction

n_y : number of elements in the y direction

l_x : length in the x direction

l_y : length in the y direction

Ordering of elements: 'lower left' to 'lower right' then 'upwards'

Definition at line 55 of file simple_rectangular_tri_mesh.template.cc.

References oomph::SimpleRectangularTriMesh< ELEMENT >::Lx, oomph::SimpleRectangularTriMesh< ELEMENT >::Ly, oomph::SimpleRectangularTriMesh< ELEMENT >::Nx, and oomph::SimpleRectangularTriMesh< ELEMENT >::Ny.

Member Function Documentation

◆ nx()

template<class ELEMENT >
const unsigned & oomph::SimpleRectangularTriMesh< ELEMENT >::nx ( ) const
inline

Access function for number of elements in x directions.

Definition at line 64 of file simple_rectangular_tri_mesh.h.

References oomph::SimpleRectangularTriMesh< ELEMENT >::Nx.

◆ ny()

template<class ELEMENT >
const unsigned & oomph::SimpleRectangularTriMesh< ELEMENT >::ny ( ) const
inline

Access function for number of elements in y directions.

Definition at line 70 of file simple_rectangular_tri_mesh.h.

References oomph::SimpleRectangularTriMesh< ELEMENT >::Ny.

Member Data Documentation

◆ Lx

Length of mesh in x-direction.

Definition at line 83 of file simple_rectangular_tri_mesh.h.

Referenced by oomph::SimpleRectangularTriMesh< ELEMENT >::SimpleRectangularTriMesh().

◆ Ly

Length of mesh in y-direction.

Definition at line 86 of file simple_rectangular_tri_mesh.h.

Referenced by oomph::SimpleRectangularTriMesh< ELEMENT >::SimpleRectangularTriMesh().

◆ Nx

◆ Ny


The documentation for this class was generated from the following files: