44 for (
int nCoast = 0; nCoast < static_cast<int>(
m_VCoast.size()); nCoast++)
46 for (
int j = 0; j <
m_VCoast[nCoast].nGetCoastlineSize(); j++)
49 int nX =
m_VCoast[nCoast].pPtiGetCellMarkedAsCoastline(j)->nGetX();
50 int nY =
m_VCoast[nCoast].pPtiGetCellMarkedAsCoastline(j)->nGetY();
53 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCoast(nCoast);
54 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetPointOnCoast(j);
61 m_VCoast[nCoast].AppendCoastLandform(pIntervention);
85 double dConsSedTop =
m_pRasterGrid->m_Cell[nX][nY].dGetConsSedTopForLayerAboveBasement(nLayer);
86 bool bConsSedAtSWL =
false;
98 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffNotchDepth(0);
103 m_VCoast[nCoast].AppendCoastLandform(pCliff);
111 m_VCoast[nCoast].AppendCoastLandform(pDrift);
127 double dAccumWaveEnergy = 0;
129 double dNotchDepth = 0;
137 dAccumWaveEnergy =
m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->dGetAccumWaveEnergy();
138 dNotchDepth =
m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->dGetCliffNotchDepth();
139 dNotchBaseElev =
m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->dGetCliffNotchBaseElev();
148 dAccumWaveEnergy =
m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->dGetAccumWaveEnergy();
149 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffNotchDepth(dNotchDepth);
150 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffNotchBaseElev(dNotchBaseElev);
151 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffRemaining(dRemaining);
158 m_VCoast[nCoast].AppendCoastLandform(pCliff);
164 m_VCoast[nCoast].AppendCoastLandform(pDrift);
288 int nX =
m_VCoast[nCoast].pPtiGetCellMarkedAsCoastline(nPoint)->nGetX();
289 int nY =
m_VCoast[nCoast].pPtiGetCellMarkedAsCoastline(nPoint)->nGetY();
300 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffNotchBaseElev(dNotchBaseElev);
301 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffNotchDepth(dNotchDepth);
302 m_pRasterGrid->m_Cell[nX][nY].pGetLandform()->SetCliffRemaining(dRemaining);
324 int nTopLayer =
m_pRasterGrid->m_Cell[nX][nY].nGetTopLayerAboveBasement();
364 if (
m_pRasterGrid->m_Cell[nX][nY].bBasementElevIsMissingValue())
Real-world class used to represent the 'cliff' category of coastal landform object.
bool bHasCollapsed(void) const
Returns the value of the cliff collapse switch.
double dGetNotchBaseElev(void) const
Returns the elevation of the base of the erosional notch.
double dGetNotchDepth(void) const
Returns the horizontal depth of the cliff's erosional notch (the 'overhang')
double dGetRemaining(void) const
Returns the length (in external CRS units) of the cliff's remaining sediment 'behind' the erosional n...
Real-world class used to represent the 'drift' category of coastal landform object.
Real-world class used to represent the 'intervention' category of coastal landform objects.
int m_nYMinBoundingBox
The minimum y value of the bounding box.
double m_dThisIterSWL
The still water level for this timestep (this includes tidal changes and any long-term SWL change)
CGeomRasterGrid * m_pRasterGrid
Pointer to the raster grid object.
int m_nXGridSize
The size of the grid in the x direction.
int nAssignLandformsForAllCoasts(void)
Each timestep, classify coastal landforms and assign a coastal landform object to every point on ever...
vector< CRWCoast > m_VCoast
The coastline objects.
int m_nYGridSize
The size of the grid in the y direction.
int m_nXMaxBoundingBox
The maximum x value of the bounding box.
double dGridCentroidYToExtCRSY(int const) const
Given the integer Y-axis ordinate of a cell in the raster grid CRS, returns the external CRS Y-axis o...
int nAssignLandformsForAllCells(void)
Each timestep, classify landforms for cells that are not on the coastline.
bool bSurroundedByDriftCells(int const, int const)
Returns true if this cell has four drift cells surrounding it.
int m_nYMaxBoundingBox
The maximum y value of the bounding box.
int m_nXMinBoundingBox
The minimum x value of the bounding box.
bool bIsWithinValidGrid(int const, int const) const
Checks whether the supplied point (an x-y pair, in the grid CRS) is within the raster grid,...
unsigned long m_ulIter
The number of the current iteration (time step)
double dGridCentroidXToExtCRSX(int const) const
Given the integer X-axis ordinate of a cell in the raster grid CRS, returns the external CRS X-axis o...
double m_dCellSide
Length of a cell side (in external CRS units)
bool bIsInterventionCell(int const, int const) const
Returns true if the cell is an intervention.
int nLandformToGrid(int const, int const)
At the end of each timestep, this routine stores the attributes from a single coastal landform object...
Contains CRWCliff definitions.
This file contains global definitions for CoastalME.
int const LF_SUBCAT_DRIFT_BEACH
int const RTN_ERR_NO_TOP_LAYER
int const LF_SUBCAT_CLIFF_ON_COASTLINE
int const ELEV_ABOVE_SEDIMENT_TOP
int const LF_CAT_SEDIMENT_INPUT
int const LF_CAT_SEDIMENT_INPUT_SUBMERGED
int const LF_SUBCAT_CLIFF_INLAND
int const LF_SUBCAT_DRIFT_MIXED
int const LF_CAT_SEDIMENT_INPUT_NOT_SUBMERGED
int const RTN_ERR_CANNOT_ASSIGN_COASTAL_LANDFORM
int const ELEV_IN_BASEMENT
int const LF_CAT_HINTERLAND
int const LF_CAT_INTERVENTION
Contains CRWCoast definitions.
Contains CRWDrift definitions.
Contains CRWIntervention definitions.
Contains CSimulation definitions.