Contains CRWCellLayer definitions.
double m_dTotActualPlatformErosion
Total depth of sediment actually eroded from the shore platform.
void SetSlopeForCliffToe(double const)
Sets this cell's slope for cliff toe locating.
double dGetTotCliffCollapseFine(void) const
Returns the running total depth of fine-sized sediment eroded by cliff collapse on this cell.
int nGetNumLayers(void) const
Returns the number of sediment layers on the cell (some could have zero thickness)
double dGetTotCoarseTalusToUncons(void)
Returns the grand total of coarse-sized talus moved to unconsolidated sediment on this cell.
void SetCellDeepWaterWavePeriod(double const)
Sets the deep water wave Period on this cell.
double dGetTotWaveHeight(void) const
Returns the total wave height on this cell.
bool bIsInContiguousSeaFlood(void) const
Is this cell in the contiguous sea flood area?
void SetInContiguousFlood(void)
Set this cell as in the contiguous runup flood area.
double dGetThisIterCliffCollapseErosionFine(void) const
Returns the depth of this-timestep fine-sized sediment cliff collapse on this cell.
bool bIsCliffToe(void) const
Returns true if this cell is marked as a cliff toe.
double m_dTotTalusCoarseDeposition
Total depth of unconsolidated coarse sediment deposited as a result of cliff collapse.
double dGetTotCoarseTalusDeposition(void) const
Returns the total depth of coarse talus deposition from cliff collapse on this cell.
double m_dTotPotentialPlatformErosion
Total depth of sediment eroded from the shore platform, if no supply-limitation.
int m_nBoundingBoxEdge
If this cell is an edge (or bounding box) cell, this specifies the edge.
double m_dWaveAngle
Wave orientation.
double dGetTotPotentialPlatformErosion(void) const
Get total potential (unconstrained) shore platform erosion.
void SetAsFloodline(bool const)
Marks this cell as a flood line.
double dGetConsFineDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of fine consolidated sediment on this ce...
bool bIsinAnyShadowZone(void) const
Returns true if this cell is in any shadow zone, false otherwise.
double m_dSandTalusToUnconsThisIter
Depth of sand-sized cliff collapse talus moved to unconsolidated sediment this timestep.
bool bIsFloodBySetupSurge(void) const
Is this cell flooded by setup surge?
bool m_bCheckFloodCell
TODO 007 Finish surge and runup stuff.
void CalcAllLayerElevsAndD50(void)
For this cell, calculates the elevation of the top of every layer, and the d50 for the topmost uncons...
double dCalcLayerElev(const int)
For this cell, calculates the elevation of the top of a given layer.
int nGetShadowZoneNumber(void) const
Gets the number of the shadow zone that this cell is in.
void SetWaveHeight(double const)
Sets the wave height on this cell, also increments the total wave height.
bool bIsShadowZoneBoundary(void) const
Returns a flag which shows whether this cell is a shadow zone boundary.
double dGetCellDeepWaterWavePeriod(void) const
Returns the deep water wave period on this cell.
void InitCell(void)
Initialise values for this cell.
double dGetCellDeepWaterWaveAngle(void) const
Returns the deep water wave orientation on this cell.
int nGetProfileCoastID(void) const
Gets the coast ID number of the coast-normal profile which this cell is 'under', or returns INT_NODAT...
bool bBeachErosionOrDepositionThisIter(void) const
Returns true only if this cell has had no deposition or erosion this timestep.
double dGetTotPotentialBeachErosion(void) const
Get total potential (supply-unconstrained) beach erosion.
bool bIsFloodBySetupSurgeRunup(void) const
Is this cell flooded by setup surge runup?
void SetInActiveZone(bool const)
Sets a flag to show whether this cell is in the active zone.
double dGetPotentialBeachErosion(void) const
Get potential (unconstrained) beach erosion.
bool bIsInContiguousSea(void) const
Is this a sea cell?
double m_dBeachProtectionFactor
Only meaningful if in zone of platform erosion. 0 = fully protected; 1 = ! no protection.
int nGetNumOfTopLayerAboveBasement(void) const
Returns the index of the topmost sediment layer (layer 0 being the one just above basement)....
bool m_bInContiguousSea
Switch to indicate if this is a sea cell, contiguous with other sea cells.
double dGetTotSandTalusToUncons(void)
Returns the grand total of sand-sized talus moved to unconsolidated sediment on this cell.
int nGetPolygonCoastID(void) const
Returns the coast number of the polygon which 'contains' this cell (returns INT_NODATA if the cell is...
int nGetCoastline(void) const
Returns the ID of the coastline, or INT_NODATA if not a coastline.
bool bIsBoundingBoxEdge(void) const
Is this an edge bounding-box cell?
double m_dTotActualBeachErosion
Total depth of unconsolidated beach sediment actually eroded.
double dGetTotBeachDeposition(void) const
Get beach erosion.
void SetSuspendedSediment(double const)
Sets this cell's suspended sediment depth equivalent, it also increments the running total of suspend...
double dGetTotWaveAngle(void) const
Returns the total wave orientation on this cell.
void IncrBeachDeposition(double const)
Increment this-timestep beach deposition, also increment total beach deposition.
void SetActualPlatformErosion(double const)
Set this-timestep actual (constrained) shore platform erosion and increment total actual shore platfo...
double dGetSeaDepth(void) const
Returns the depth of seawater on this cell.
bool bPotentialPlatformErosion(void) const
Returns true if this cell has had potential platform erosion on this cell this timestep.
double dGetTotActualBeachErosion(void) const
Get total actual (supply-constrained) beach erosion.
double m_dBasementElevation
Elevation of basement surface (m)
int m_nCoastlineNormal
If this cell is 'under' a coastline normal, this is the number of the normal.
double dGetCellDeepWaterWaveHeight(void) const
Returns the deep water wave height on this cell.
double dGetInterventionTopElev(void) const
Returns the elevation of the top of the intervention, assuming it rests on the sediment-top surface.
double m_dLocalConsSlope
Used in erosion calculations, stored here for display purposes.
void SetAsCliffToe(bool const)
Marks this cell as a cliff toe cell.
int nGetTopNonZeroLayerAboveBasement(void) const
Returns the index of the topmost sediment layer (layer 0 being the one just above basement) with non-...
bool m_bFloodBySetupSurgeRunup
TODO 007 Finish surge and runup stuff.
double dGetTotSandTalusDeposition(void) const
Returns the total depth of sand talus deposition from cliff collapse on this cell.
double dGetSlopeForCliffToe(void) const
Returns this cell's slope for cliff toe locationg.
double m_dBeachDepositionThisIter
Depth of unconsolidated beach sediment deposited this timestep.
bool m_bPossibleFloodStartCell
TODO 007 Finish surge and runup stuff.
double dGetTotCliffCollapseSand(void) const
Returns the running total depth of sand-sized sediment eroded by cliff collapse on this cell.
double dGetBeachDeposition(void) const
Get beach deposition.
void AppendLayers(int const)
Appends sediment layers.
bool bIsPossibleCoastStartCell(void) const
Returns a flag which shows whether this cell has been flagged as a possible start- or end-point for a...
int m_nPolygonCoastID
If this cell is within a polygon, this is the ID number of the polygon's coast.
void SetActualBeachErosion(double const)
Set this-timestep actual (supply-constrained) beach erosion and increment total actual beach erosion.
double dGetBeachProtectionFactor(void) const
Returns this cell's beach protection factor.
double m_dTalusSandDepositionThisIter
Depth of unconsolidated sand sediment deposited as a result of cliff collapse this timestep.
double m_dTalusCoarseDepositionThisIter
Depth of unconsolidated coarse sediment deposited as a result of cliff collapse this timestep.
double m_dTotBeachDeposition
Total depth of unconsolidated beach sediment deposited.
void AddCoarseTalusDeposition(double const)
Increments the depth of this-timestep coarse-sized cliff collapse talus on this cell,...
void SetPotentialBeachErosion(double const)
Set potential (unconstrained) beach erosion and increment total beach potential erosion.
double m_dTotWaveHeight
Total wave height (m) (used to calc average)
int nGetPolygonID(void) const
Returns the coast ID number of the polygon which 'contains' this cell (returns INT_NODATA if the cell...
double dGetUnconsFineDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of fine unconsolidated sediment on this ...
double dGetThisIterCoarseTalusToUncons(void)
Returns the this-iteration total of coarse-sized talus moved to unconsolidated sediment on this cell.
~CGeomCell(void)
Destructor.
int nGetBoundingBoxEdge(void) const
Returns the number of the bounding-box edge, or NO_DIRECTION if it is not.
bool bIsInActiveZone(void) const
Returns a flag which shows whether this cell is in the active zone.
CRWCellLayer * pGetLayerAboveBasement(int const)
Return a reference to the Nth sediment layer (layer 0 being just above basement)
double m_dTotWaveAngle
Total wave orientation (used to calc average)
void SetInterventionHeight(double const)
Sets the intervention height.
int nGetProfileID(void) const
Gets the ID number of the coast-normal profile which this cell is 'under', or returns INT_NODATA.
double m_dCliffCollapseSandThisIter
Depth of sand sediment (consolidated and unconsolidated) removed via cliff collapse this timestep.
double dGetThisIterCliffCollapseCoarseTalusDeposition(void) const
Retuns the depth of this-timestep coarse talus deposition from cliff collapse on this cell.
double dGetInterventionHeight(void) const
Returns the intervention height.
bool bIsCellCheck(void) const
double m_dPotentialPlatformErosionThisIter
Depth of sediment on the shore platform that could be eroded this timestep, if no supply-limitation.
double m_dTotSandCliffCollapse
Total depth of sand sediment (consolidated and unconsolidated) removed via cliff collapse.
double dGetAllUnconsDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of unconsolidated sediment (all size cla...
void SetCoastAndProfileID(int const, int const)
Sets the coast ID number, and the profile ID number, of the coast-normal profile which this cell is '...
double dGetThisIterSWL(void) const
Returns the sea surface elevation at the current iteration.
double dGetUnconsCoarseDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of coarse unconsolidated sediment on thi...
int nGetInterventionClass(void) const
Gets the intervention class for this cell, or returns INT_NODATA if there is not an intervention here...
void SetLocalConsSlope(double const)
Sets the local slope of the consolidated sediment only.
double dGetThisIterCliffCollapseSandTalusDeposition(void) const
Returns the depth of this-timestep sand talus deposition from cliff collapse on this cell.
void SetDownDriftZoneNumber(int const)
Sets the down drift zone number.
static CGeomRasterGrid * m_pGrid
double dGetWaveHeight(void) const
Returns the wave height on this cell.
double dGetWaveAngle(void) const
Returns the wave orientation on this cell.
double dGetTotSeaDepth(void) const
Returns the total depth of seawater on this cell.
double m_dTotFineCliffCollapse
Total depth of fine sediment (consolidated and unconsolidated) removed via cliff collapse.
bool bIsInundated(void)
Returns true if the elevation of the sediment top surface (both consolidated and unconsolidated,...
bool bIsFloodline(void) const
Returns true if the cell is a flood line.
int nGetLayerAtElev(double const) const
Given an elevation, this finds the index of the layer that contains that elevation (layer 0 being the...
double dGetConsSedTopElevForLayerAboveBasement(int const) const
Returns the elevation of the top of the consolidated sediment only, for a given layer (layer 0 being ...
double m_dTotCoarseCliffCollapse
Total depth of coarse sediment (consolidated and unconsolidated) removed via cliff collapse.
CRWCellLandform m_Landform
This cell's landform data.
bool bElevLessThanSWL(void) const
Returns true if the top elevation (sediment and talus, plus any intervention) of this cell is less th...
double dGetConsSedTopElevOmitTalus(void) const
Returns the elevation of the top surface of sediment (both consolidated and unconsolidated) for this ...
void SetCoastAndPolygonID(int const, int const)
Sets the coast number, and the polygon ID, of the polygon which 'contains' this cell.
double m_dCliffCollapseFineThisIter
Depth of fine sediment (consolidated and unconsolidated) removed via cliff collapse this timestep.
double m_dDeepWaterWaveHeight
Wave height if this is a deep water cell.
double m_dActualBeachErosionThisIter
Depth of unconsolidated beach sediment actually eroded this timestep.
double m_dTotSuspendedSediment
Total depth of suspended sediment (m) since simulation start (used to calc average)
bool m_bInContiguousFlood
Switch to indicate that this cell is in the contiguous runup flood area.
void SetWaveValuesToDeepWaterWaveValues(void)
Sets wave height to the deep water wave height value, and sets wave orientation to the deep water wav...
double dGetUnconsSandDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of sand-sized unconsolidated sediment on...
void SetBoundingBoxEdge(int const)
Set the edge number if this cell is an edge bounding-box cell.
void SetFloodBySetupSurgeRunup(void)
Set this cell as flooded by setup surge runup.
void SetPotentialPlatformErosion(double const)
Set potential (unconstrained) shore platform erosion and increment total shore platform potential ero...
bool m_bIsInActiveZone
Switch to indicate that this cell is in the active zone.
void SetPossibleFloodStartCell(void)
Sets a flag to show that this cell has been flagged as a possible start-point for runup flooding.
double dGetAllConsDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of consolidated sediment (all size class...
double dGetConsSedTopElevIncTalus(void)
Returns the elevation of the top surface of sediment (both consolidated and unconsolidated) plus talu...
void AddSuspendedSediment(double const)
Adds to this cell's suspended sediment depth equivalent, it also increments the running total of susp...
bool m_bShadowBoundary
Switch to show this cell is 'under' a shadow boundary.
int nGetDownDriftZoneNumber(void) const
Gets the down drift zone number.
void UnSetInContiguousFlood(void)
Set this cell as not in the contiguous runup flood area.
double dGetUnconsD50(void) const
Returns the D50 of unconsolidated sediment on this cell.
double m_dPotentialBeachErosionThisIter
Depth of unconsolidated beach sediment that could be eroded this timestep, if no supply-limitation.
bool bIsCellFloodCheck(void) const
Returns true if this cell is checked, false otherwise (flood switch)
double dGetTotActualPlatformErosion(void) const
Get total actual (constrained) shore platform erosion.
double m_dSlopeForCliffToe
Slope at this cell (degrees or unitless)
double dGetConsSandDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of sand-sized consolidated sediment on t...
double dGetThisIterSandTalusToUncons(void)
Returns the this-iteration total of sand-sized talus moved to unconsolidated sediment on this cell.
vector< double > m_VdAllHorizonTopElev
Number of layer-top elevations (inc. that of the basement, which is m_VdAllHorizonTopElev[0]) size 1 ...
bool bActualPlatformErosion(void) const
Returns true if we have had actual platform erosion on this cell during this timestep.
double m_dWavePeriod
Wave period (s)
double m_dSeaDepth
Depth of still water (m), is zero if not inundated.
double dGetBasementElev(void) const
Returns this cell's basement elevation.
int m_nPolygonID
If this cell is within a polygon, this is the ID of the polygon.
bool bIsPossibleFloodStartCell(void) const
Returns a flag which shows whether this cell has been flagged as a possible start point for runup flo...
double m_dActualPlatformErosionThisIter
Depth of sediment actually eroded from the shore platform this timestep.
double m_dTotSandTalusToUncons
Total depth of sand-sized cliff collapse talus moved to unconsolidated sediment.
double dGetPotentialPlatformErosion(void) const
Get potential (unconstrained) shore platform erosion.
double dGetTotSuspendedSediment(void) const
Returns the total suspended sediment depth equivalent on this cell.
double m_dDeepWaterWaveAngle
Wave orientation if this is a deep water cell.
double dGetActualBeachErosion(void) const
Get actual (supply-constrained) beach erosion.
void SetSeaDepth(void)
Returns the depth of seawater on this cell if the sediment top (including talus and intervention) is ...
void SetShadowZoneNumber(int const)
Set the number of the shadow zone that this cell is in.
double dGetAllSedTopElevOmitTalus(void) const
Returns the elevation of the top surface of sediment (both consolidated and unconsolidated) for this ...
void SetCellDeepWaterWaveAngle(double const)
Sets the deep water wave orientation on this cell.
bool m_bPossibleCoastStartCell
Switch to show that this cell could be the start of a coastline.
void AddSandTalusToUncons(double const)
Adds to the totals of sand-sized talus moved to unconsolidated sediment on this cell.
CGeomCell()
Constructor with initialisation list.
double dGetActualPlatformErosion(void) const
Get actual (constrained) shore platform erosion.
void SetFloodBySetupSurge(void)
Set this cell as flooded by setup surge.
int m_nShadowZoneNumber
If this cell is within a shadow zone, this is the ID number of the shadow zone.
bool bIsinThisShadowZone(int const) const
Returns true if this cell is in the shadow zone with number given by the parameter,...
double m_dTotCoarseTalusToUncons
Total depth of coarse-sized cliff collapse talus moved to unconsolidated sediment.
double m_dDeepWaterWavePeriod
Wave period if this is a deep water cell.
double m_dTotPotentialBeachErosion
Total depth of unconsolidated beach sediment eroded; if no supply-limitation.
double m_dSuspendedSediment
Suspended sediment as depth equivalent (m)
double m_dTotTalusSandDeposition
Total depth of unconsolidated sand sediment deposited as a result of cliff collapse.
void SetCheckFloodCell(void)
Set this cell as checked (flood switch)
double m_dCoarseTalusToUnconsThisIter
Depth of coarse-sized cliff collapse talus moved to unconsolidated sediment this timestep.
void SetInContiguousSea(void)
Set this cell to be a sea cell.
double dGetConsCoarseDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of coarse consolidated sediment on this ...
int m_nDownDriftZoneNumber
If this cell is within a downdrift zone, this is the ID number of the downdrift zone.
double m_dWaveHeight
Wave height (m)
double dGetTopElevIncSea(void)
Returns the topmost elevation of the cell, including sea (sediment top elevation (both consolidated a...
void SetWaveAngle(double const)
Sets the wave orientation on this cell, also increments the total wave orientation.
void SetPossibleCoastStartCell(void)
Sets a flag to show that this cell has been flagged as a possible start- or end-point for a coastline...
void SetShadowZoneBoundary(void)
Sets a flag to show that this cell is a shadow zone boundary.
bool m_bCliffToe
Is this cell a cliff toe?
double dGetThisIterCliffCollapseErosionCoarse(void) const
Returns the depth of this-timestep coarse-sized sediment cliff collapse on this cell.
void SetBasementElev(double const)
Sets this cell's basement elevation.
void IncrCliffCollapseErosion(double const, double const, double const)
Increments the fine, sand, and coarse depths of this-timestep cliff collapse on this cell,...
double dGetAllSedDepthAllLayers(void) const
Returns the total (all layers) depth (in external CRS units) of all sediment (all size classes,...
void AddSandTalusDeposition(double const)
Increments the depth of this-timestep sand-sized cliff collapse talus on this cell,...
double dGetSuspendedSediment(void) const
Returns the suspended sediment depth equivalent on this cell.
bool bIsProfile(void) const
Returns true if this cell is 'under' a coastline normal.
double m_dUnconsD50
d50 of unconsolidated sediment on top layer with unconsolidated sediment depth > 0
double dGetConsSedSlope(void) const
Returns the local slope of the consolidated sediment only.
double m_dInterventionHeight
Height of intervention structure.
vector< CRWCellLayer > m_VLayerAboveBasement
Cell sediment layers NOT including the basement. Layer 0 is the lowest.
bool m_bFloodLine
Switch to indicate that this cell is 'under' a runup flood line TODO 007 Finish surge and runup stuff...
bool bIsCoastline(void) const
Returns true if the cell is a coastline.
void UnSetCheckFloodCell(void)
Set the cell as not checked (flood switch)
void SetCellDeepWaterWaveHeight(double const)
Sets the deep water wave height on this cell.
void AddCoarseTalusToUncons(double const)
Adds to the totals of coarse-sized talus moved to unconsolidated sediment on this cell.
int m_nCoastlineID
If this cell is 'under' a coastline, this is the ID number of the coast.
double dGetThisIterCliffCollapseErosionSand(void) const
Returns the depth of this-timestep sand-sized sediment cliff collapse on this cell.
bool bBasementElevIsMissingValue(void) const
Returns true if this cells's basement data is NODATA, is needed for irregularly-shaped DEMs.
double dGetTotCliffCollapseCoarse(void) const
Returns the running total depth of coarse-sized sediment eroded by cliff collapse on this cell.
int m_nProfileCoastID
If this cell is 'under' a coast-normal profile, this is the ID number of the profile's coast.
bool m_bWaveFlood
Switch to indicate that this cell is 'under' a runup wave flood line TODO 007 Finish surge and runup ...
double m_dCliffCollapseCoarseThisIter
Depth of coarse sediment (consolidated and unconsolidated) removed via cliff collapse this timestep.
double dGetAllSedTopElevIncTalus(void)
Returns the elevation of the top surface of sediment (both consolidated and unconsolidated) plus talu...
CRWCellLandform * pGetLandform(void)
Returns a pointer to this cell's CRWCellLandform object.
void SetBeachProtectionFactor(double const)
void SetAsCoastline(int const)
Marks this cell with a coastline ID nunber.
void SetWaveFlood(void)
Set this cell as flooded by swl + surge + setup + runup.
double m_dTotSeaDepth
Total depth of still water (m) since beginning of simulation (used to calc average)
bool m_bFloodBySetupSurge
TODO 007 Finish surge and runup stuff.
int m_nProfileID
If this cell is 'under' a coast-normal profile, this is the ID number of the profile.
double dGetThisIterTotWaterLevel(void) const
Returns the total water level for the current iteration TODO 007 Finish surge and runup stuff.
double dGetTalusDepth(void) const
Returns the depth of any talus that is on this cell, in any layer.
Geometry cass used to represent the raster grid of cell objects.
Real-world class used to represent the sediment layers associated with a cell object.
This file contains global definitions for CoastalME.
Contains CGeomRasterGrid definitions.