LifeV
RegionMesh1DBuilders.hpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  @file
29  @brief Contains methods to generate 1D meshes.
30 
31  @author -
32  @contributor Mauro Perego <mperego@fsu.edu>
33  @maintainer -
34 
35  @date 10-04-2011
36  */
37 
38 #ifndef REGIONMESH1DBUILDER_HPP
39 #define REGIONMESH1DBUILDER_HPP 1
40 
41 #include <lifev/core/LifeV.hpp>
42 #include <lifev/core/mesh/RegionMesh1DStructured.hpp>
43 
44 namespace LifeV
45 {
46 
47 //! Build uniform mesh along the x axis.
48 /**
49  * @param mesh Reference to the mesh
50  * @param x_l Left end point
51  * @param x_r Right end point
52  * @param numberOfElements Number of elements inside the mesh.
53  *
54  * Build 1D uniform mesh along the x axis, extending from x_l to x_r, with numberOfElements elements
55  */
56 template <typename MC>
58  const Real& x_l, const Real& x_r,
59  const UInt& numberOfElements ) );
60 
61 template <typename MC>
63  const Real& x_l, const Real& x_r,
64  const UInt& numberOfElements )
65 {
66  regularMesh1D ( mesh, 1, numberOfElements, false, x_r - x_l, x_l );
67 }
68 
69 } // Namespace LifeV
70 
71 #endif /* REGIONMESH1DBUILDER_HPP */
A Geometric Shape.
void updateInverseJacobian(const UInt &iQuadPt)
void uniformMesh1D(RegionMesh< LinearLine, MC > &mesh, const Real &x_l, const Real &x_r, const UInt &numberOfElements)
Class for 3D, 2D and 1D Mesh.
Definition: RegionMesh.hpp:87
double Real
Generic real data.
Definition: LifeV.hpp:175
#define LIFEV_DEPRECATED(func)
Definition: LifeV.hpp:117
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191