CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
raster_grid.h
Go to the documentation of this file.
1
12
13#ifndef RASTERGRID_H
14#define RASTERGRID_H
15/* ===============================================================================================================================
16 This file is part of CoastalME, the Coastal Modelling Environment.
17
18 CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23===============================================================================================================================*/
24
25class CGeomCell; // Forward declaration
26class CSimulation; // Ditto
27
29{
31 friend class CSimulation;
32
34 friend class CGeomProfile;
35
36 private:
38 double m_dD50Fine;
39
41 double m_dD50Sand;
42
45
48
51
52 protected:
53 public:
55 ~CGeomRasterGrid(void);
56
57 CSimulation* pGetSim(void);
58 // CGeomCell* pGetCell(int const, int const);
59 int nCreateGrid(void);
60};
61#endif // RASTERGRID_H
Geometry class for the cell objects which comprise the raster grid.
Definition cell.h:36
double m_dD50Fine
The d50 of fine-sized sediment.
Definition raster_grid.h:38
double m_dD50Sand
The d50 of sand-sized sediment.
Definition raster_grid.h:41
friend class CGeomProfile
The CGeomProfile class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:34
CGeomCell ** m_Cell
The 2D array of m_Cell objects. A c-style 2D array seems to be faster than using 2D STL vectors.
Definition raster_grid.h:50
~CGeomRasterGrid(void)
Destructor.
int nCreateGrid(void)
Creates the 2D CGeomCell array.
double m_dD50Coarse
The d50 of coarse-sized sediment.
Definition raster_grid.h:44
CSimulation * m_pSim
A pointer to the CSimulation object.
Definition raster_grid.h:47
friend class CSimulation
The CSimulation class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:31
CGeomRasterGrid(CSimulation *)
Constructor.
CSimulation * pGetSim(void)
Returns a pointer to the simulation object.
This class runs CoastalME simulations.
Definition simulation.h:69