CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
cell_landform.cpp
Go to the documentation of this file.
1
10
11/* ===============================================================================================================================
12 This file is part of CoastalME, the Coastal Modelling Environment.
13
14 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.
15
16 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.
17
18 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.
19===============================================================================================================================*/
20#include "cme.h"
21#include "cell_landform.h"
22
26 m_nCoast(-1),
29{
30 m_uLFData.m_sCliffData.m_dNotchApexElev = DBL_NODATA;
31 m_uLFData.m_sCliffData.m_dNotchIncision = DBL_NODATA;
32#ifdef _DEBUG
33 m_uLFData.m_sCliffData.m_ulCollapseTimestep = UNSIGNED_LONG_NODATA;
34#endif
35}
36
41
43void CRWCellLandform::SetLFCategory(int const nClassIn)
44{
45 m_nCategory = nClassIn;
46}
47
50{
51 return m_nCategory;
52}
53
55void CRWCellLandform::SetCoast(int const nCoastIn)
56{
57 m_nCoast = nCoastIn;
58}
59
62{
63 return m_nCoast;
64}
65
67void CRWCellLandform::SetPointOnCoast(int const nPointOnCoastIn)
68{
69 m_nPointOnCoastline = nPointOnCoastIn;
70}
71
74{
76}
77
79void CRWCellLandform::SetAccumWaveEnergy(double const dEnergyIn)
80{
81 m_dAccumWaveEnergy = dEnergyIn;
82}
83
85void CRWCellLandform::AddToAccumWaveEnergy(double const dEnergyIn)
86{
87 m_dAccumWaveEnergy += dEnergyIn;
88}
89
92{
93 return m_dAccumWaveEnergy;
94}
95
98{
99 m_uLFData.m_sCliffData.m_dNotchApexElev = dElevIn;
100}
101
104{
105 return m_uLFData.m_sCliffData.m_dNotchApexElev;
106}
107
110{
111 m_uLFData.m_sCliffData.m_dNotchIncision = dLenIn;
112}
113
116{
117 m_uLFData.m_sCliffData.m_dNotchIncision += dLenIn;
118}
119
122{
123 return m_uLFData.m_sCliffData.m_dNotchIncision;
124}
125
126// //! Set the cliff depth remaining on this cell
127// void CRWCellLandform::SetCliffRemaining(double const dLenIn)
128// {
129// m_uLFData.m_sCliffData.m_dRemaining = dLenIn;
130// }
131
132#ifdef _DEBUG
134void CRWCellLandform::SetCliffCollapseTimestep(unsigned long const ulTimestep)
135{
136 m_uLFData.m_sCliffData.m_ulCollapseTimestep = ulTimestep;
137}
138
140unsigned long CRWCellLandform::ulGetCliffCollapseTimestep(void) const
141{
142 return m_uLFData.m_sCliffData.m_ulCollapseTimestep;
143}
144#endif
145
Contains CRWCellLandform definitions.
int m_nCategory
Landform category for this cell.
double m_dAccumWaveEnergy
Accumulate wave energy for this landform on this cell.
void SetCoast(int const)
Set the coast number.
int nGetCoast(void) const
Get the coast number.
~CRWCellLandform(void)
Destructor.
CRWCellLandform()
Constructor.
void AddToAccumWaveEnergy(double const)
Add to acccumulated wave energy.
int nGetLFCategory(void) const
Get the landform category.
void SetCliffNotchApexElev(double const)
Set cliff notch apex elevation.
double dGetAccumWaveEnergy(void) const
Get accumulated wave energy.
int m_nPointOnCoastline
Point on coast on which this landform sits (if any)
union CRWCellLandform::@170004372174012267010031044241026106362141217107 m_uLFData
The m_uLFData will hold landform data: currently, only cliffs are considered.
double dGetCliffNotchApexElev(void) const
Get cliff notch apex elevation: this is the elevation of the most deeply incised horizontal plane wit...
void SetLFCategory(int const)
Set the landform category.
void SetPointOnCoast(int const)
Set the number of the point on the coastline.
int m_nCoast
Coast on which this landform sits (if any)
double dGetCliffNotchIncisionDepth(void) const
Get the horizontal depth of cliff notch incision for this cell. This is the horizontal distance from ...
void SetAccumWaveEnergy(double const)
Set accumulated wave energy.
int nGetPointOnCoast(void) const
Set the number of the point on the coastline.
void SetCliffNotchIncisionDepth(double const)
Set the horizontal depth of cliff notch incision for this cell. This is the horizontal distance from ...
void AddToCliffNotchIncisionDepth(double const)
Adds to the horizontal depth of cliff notch incision for this cell. This is the horizontal distance f...
This file contains global definitions for CoastalME.
unsigned long const UNSIGNED_LONG_NODATA
Definition cme.h:705
int const LF_UNKNOWN
Definition cme.h:434
double const DBL_NODATA
Definition cme.h:736