284 (
m_pGrid->pGetSim()->dGetThisIterTotWaterLevel() +
285 m_pGrid->pGetSim()->dGetThisIterSWL()));
350 m_pGrid->pGetSim()->CSimulation::dGetMissingValue(),
423 for (
int n = 0; n < nLayer; n++) {
480 m_pGrid->pGetSim()->CSimulation::dGetThisIterSWL());
485 return m_pGrid->pGetSim()->CSimulation::dGetThisIterSWL();
490 return m_pGrid->pGetSim()->CSimulation::dGetThisIterTotWaterLevel();
519 double dTotThick = 0;
527 dTotThick += (dLayerThick - dNotchEquiv);
535 double dTotThick = 0;
546 double dTotThick = 0;
554 dTotThick += (dLayerThick - dNotchEquiv);
563 double dTotThick = 0;
574 double dTotThick = 0;
582 dTotThick += (dLayerThick - dNotchEquiv);
590 double dTotThick = 0;
601 double dTotThick = 0;
612 double dTotThick = 0;
627 for (
int i = 0; i < nLayer; i++)
653 double dUnconsThick =
656 if (dUnconsThick > 0) {
660 double dFineProp = pUnconsSedLayer->
dGetFineDepth() / dUnconsThick;
661 double dSandProp = pUnconsSedLayer->
dGetSandDepth() / dUnconsThick;
662 double dCoarseProp = pUnconsSedLayer->
dGetCoarseDepth() / dUnconsThick;
666 (dSandProp *
m_pGrid->pGetSim()->dGetD50Sand()) +
667 (dCoarseProp *
m_pGrid->pGetSim()->dGetD50Coarse());
701 for (
int n = 0; n <= nLayer; n++)
786 .pGetUnconsolidatedSediment()
787 ->InitThisIterSedimentInputAll();
869 double const dSandDepth,
870 double const dCoarseDepth) {
1050 else if (this->
m_Landform.nGetLFSubCategory() ==
Contains CGeomCell definitions.
double m_dTotActualPlatformErosion
Total depth of sediment actually eroded from the shore platform.
double dGetTotCliffCollapseFine(void) const
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.
void SetInContiguousFlood(void)
Set this cell as in the contiguous runup flood area.
double dGetThisIterCliffCollapseErosionFine(void) const
double m_dTotTalusCoarseDeposition
double dGetTotCoarseTalusDeposition(void) const
double m_dTotPotentialPlatformErosion
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.
bool bIsinAnyShadowZone(void) const
Returns true if this cell is in any shadow zone, false otherwise.
double dGetTotConsFineThickConsiderNotch(void) const
bool bIsFloodBySetupSurge(void) const
Is this cell flooded by setup surge?
bool m_bCheckFloodCell
TODO 007 What is this used for?
void CalcAllLayerElevsAndD50(void)
bool m_bCliff
Is this cell a cliff.
int nGetTopLayerAboveBasement(void) const
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.
bool bBeachErosionOrDepositionThisIter(void) const
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
bool m_bInContiguousSea
Switch to indicate if this is a sea cell, contiguous with other sea cells.
int nGetPolygonCoastID(void) const
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)
double dGetTotWaveAngle(void) const
Returns the total wave orientation on this cell.
void IncrBeachDeposition(double const)
void SetActualPlatformErosion(double const)
double dGetSeaDepth(void) const
Returns the depth of seawater on this cell.
bool bPotentialPlatformErosion(void) const
Returns true if this cell has had potential erosion this timestep.
double dGetTotActualBeachErosion(void) const
Get total actual (supply-constrained) beach erosion.
double m_dBasementElevation
Elevation of basement surface (m)
double dGetCellDeepWaterWaveHeight(void) const
Returns the deep water wave height on this cell.
double dGetInterventionTopElev(void) const
double dGetOverallTopElev(void) const
double dGetTotUnconsFine(void) const
Returns the total thickness of fine unconsolidated sediment on this cell.
double m_dLocalConsSlope
Used in erosion calculations, stored here for display purposes.
int nGetTopNonZeroLayerAboveBasement(void) const
bool m_bFloodBySetupSurgeRunup
TODO 007 What is this used for?
double dGetTotConsSandThickConsiderNotch(void) const
double dGetTotSandTalusDeposition(void) const
double m_dBeachDepositionThisIter
Depth of unconsolidated beach sediment deposited this timestep.
bool m_bPossibleFloodStartCell
TODO 007 What is this used for?
double dGetTotCliffCollapseSand(void) const
double dGetBeachDeposition(void) const
Get beach deposition.
bool bIsInundated(void) const
void AppendLayers(int const)
Appends sediment layers.
bool bIsPossibleCoastStartCell(void) const
int m_nPolygonCoastID
If this cell is within a polygon, this is the ID of the polygon's coast.
void SetActualBeachErosion(double const)
double dGetBeachProtectionFactor(void) const
Returns this cell's beach protection factor.
double m_dTalusSandDepositionThisIter
double m_dTalusCoarseDepositionThisIter
double dGetTotAllSedThickness(void) const
Returns the total thickness of all sediment (all size classes) on this cell.
double m_dTotBeachDeposition
Total depth of unconsolidated beach sediment deposited.
void AddCoarseTalusDeposition(double const)
void SetPotentialBeachErosion(double const)
double m_dTotWaveHeight
Total wave height (m) (used to calc average)
int nGetPolygonID(void) const
double dGetSedimentTopElev(void) const
~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)
double m_dTotWaveAngle
Total wave orientation (used to calc average)
void SetInterventionHeight(double const)
Sets the intervention height.
bool bIsFloodLine(void) const
Returns true if the cell is flood line.
int nGetProfileID(void) const
double m_dCliffCollapseSandThisIter
double dGetThisIterCliffCollapseCoarseTalusDeposition(void) const
double dGetSedimentPlusInterventionTopElev(void) const
double dGetSlope(void) const
Returns this cell's slope.
double dGetInterventionHeight(void) const
Returns the intervention height.
void SetPolygonID(int const)
Sets the global ID number of the polygon which 'contains' this cell.
void SetAsCoastline(bool const)
Marks this cell as 'under' a coastline.
double m_dPotentialPlatformErosionThisIter
double m_dTotSandCliffCollapse
double dGetThisIterSWL(void) const
Returns the sea surface elevation at current iteration.
int nGetInterventionClass(void) const
Gets the intervention class.
void SetLocalConsSlope(double const)
Sets the local slope of the consolidated sediment only.
double dGetThisIterCliffCollapseSandTalusDeposition(void) const
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.
void SetSlope(double const)
Sets this cell's slope.
bool bIsCliff(void) const
Returns true if the cell is 'under' a coastline.
double m_dTotFineCliffCollapse
int nGetLayerAtElev(double const) const
double m_dTotCoarseCliffCollapse
CRWCellLandform m_Landform
This cell's landform data.
void SetCoastAndPolygonID(int const, int const)
double m_dCliffCollapseFineThisIter
double m_dDeepWaterWaveHeight
Wave height if this is a deep water cell.
double dGetLocalConsSlope(void) const
Returns the local slope of the consolidated sediment only.
double m_dActualBeachErosionThisIter
Depth of unconsolidated beach sediment actually eroded this timestep.
double m_dTotSuspendedSediment
void SetInterventionClass(int const)
Sets the landform category and subcategory for an intervention.
bool m_bInContiguousFlood
Switch to indicate that this cell is in the contiguous runup flood area.
void SetWaveValuesToDeepWaterWaveValues(void)
void SetBoundingBoxEdge(int const)
Set the edge number if this cell is an edge bounding-box cell.
double dGetTotUnconsCoarse(void) const
Returns the total thickness of coarse unconsolidated sediment on this cell.
void SetFloodBySetupSurgeRunup(void)
Set this cell as flooded by setup surge runup.
void SetPotentialPlatformErosion(double const)
bool m_bIsInActiveZone
Switch to indicate that this cell is in the active zone.
void SetPossibleFloodStartCell(void)
void AddSuspendedSediment(double const)
bool m_bShadowBoundary
Switch to show this cell is 'under' a shadow boundaryu.
int nGetDownDriftZoneNumber(void) const
Gets the down drift zone number.
double dGetTotUnconsSand(void) const
void UnSetInContiguousFlood(void)
Set this cell as not in the contiguous runup flood area.
bool bIsInContiguousSeaArea(void) const
Is this cell in the contiguous sea area?
double dGetUnconsD50(void) const
Returns the D50 of unconsolidated sediment on this cell.
double m_dPotentialBeachErosionThisIter
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.
bool bIsElevLessThanWaterLevel(void) const
vector< double > m_VdAllHorizonTopElev
double m_dWavePeriod
Wave period (s)
double m_dSeaDepth
Depth of still water (m), is zero if not inundated.
double dGetTotUnconsThickness(void) const
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
double m_dActualPlatformErosionThisIter
Depth of sediment actually eroded from the shore platform this timestep.
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 SetShadowZoneNumber(int const)
Set the number of the shadow zone that this cell is in.
double dGetTotConsCoarseThickConsiderNotch(void) const
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.
CGeomCell()
Constructor with initialization list.
double dGetActualPlatformErosion(void) const
Get actual (constrained) shore platform erosion.
void SetFloodBySetupSurge(void)
Set this cell as flooded by setup surge.
bool bIsinThisShadowZone(int const) const
double m_dDeepWaterWavePeriod
Wave period if this is a deep water cell.
double m_dTotPotentialBeachErosion
double m_dSuspendedSediment
Suspended sediment as depth equivalent (m)
double m_dTotTalusSandDeposition
double dGetTotConsThickness(void) const
void SetCheckFloodCell(void)
Set this cell as checked (flood switch)
void SetInContiguousSea(void)
Set this cell as a sea cell.
int m_nDownDriftZoneNumber
double m_dWaveHeight
Wave height (m)
void SetWaveAngle(double const)
void SetProfileID(int const)
Marks this cell as 'under' a coastline-normal profile.
void SetPossibleCoastStartCell(void)
double m_dSlope
Slope at this cell (degrees or unitless)
void SetShadowZoneBoundary(void)
Sets a flag to show that this cell is a shadow zone boundary.
double dGetThisIterCliffCollapseErosionCoarse(void) const
void SetBasementElev(double const)
Sets this cell's basement elevation.
void IncrCliffCollapseErosion(double const, double const, double const)
void AddSandTalusDeposition(double const)
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_dInterventionHeight
Height of intervention structure.
vector< CRWCellLayer > m_VLayerAboveBasement
Number of 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.
bool bIsCoastline(void) const
Returns true if the cell is 'under' a coastline.
void SetPolygonCoastID(int const)
Sets the coast number of the polygon which 'contains' this cell.
void UnSetCheckFloodCell(void)
Set the cell as not checked (flood switch)
void SetAsCliff(bool const)
Marks this cell as 'under' a coastline.
void SetCellDeepWaterWaveHeight(double const)
Sets the deep water wave height on this cell.
double dGetThisIterCliffCollapseErosionSand(void) const
bool bBasementElevIsMissingValue(void) const
double dGetTotCliffCollapseCoarse(void) const
bool m_bWaveFlood
Switch to indicate that this cell is 'under' a runup wave flood line.
double m_dCliffCollapseCoarseThisIter
CRWCellLandform * pGetLandform(void)
Returns a pointer to this cell's CRWCellLandform object.
void SetBeachProtectionFactor(double const)
void SetWaveFlood(void)
Set this cell as flooded by swl + surge + setup + runup.
void SetAsFloodLine(bool const)
Marks this cell is flood line.
double dGetConsSedTopForLayerAboveBasement(int const) const
bool m_bFloodBySetupSurge
TODO 007 What is this used for?
double dGetThisIterTotWaterLevel(void) const
Returns the total water level at current iteration.
bool m_bCoastline
Switch to indicate that this cell is 'under' a coastline.
Real-world class used to represent the sediment layers associated with a cell object.
CRWCellSediment * pGetConsolidatedSediment(void)
Returns a pointer to the cell's consolidated sediment object.
double dGetCoarseConsolidatedThickness(void) const
Returns the thickness of this cell's coarse consolidated sediment.
double dGetFineConsolidatedThickness(void) const
Returns the thickness of this cell's fine consolidated sediment.
double dGetSandConsolidatedThickness(void) const
Returns the thickness of this cell's sand consolidated sediment.
Real-world class used to represent the sediment (either consolidated or unconsolidated) associated wi...
double dGetCoarseDepth(void) const
Returns the coarse sediment depth equivalent for this sediment layer object.
double dGetNotchFineLost(void) const
Gets the depth equivalent of fine sediment lost by notch incision.
double dGetFineDepth(void) const
Returns the fine sediment depth equivalent for this sediment layer object.
double dGetNotchSandLost(void) const
Gets the depth equivalent of sand sediment lost by notch incision.
double dGetNotchCoarseLost(void) const
Gets the depth equivalent of coarse sediment lost by notch incision.
double dGetSandDepth(void) const
Returns the sand sediment depth equivalent for this sediment layer.
This file contains global definitions for CoastalME.
int const NO_NONZERO_THICKNESS_LAYERS
int const ELEV_ABOVE_SEDIMENT_TOP
int const IO_INTERVENTION_STRUCT
bool bFPIsEqual(const T d1, const T d2, const T dEpsilon)
int const LF_SUBCAT_INTERVENTION_NON_STRUCT
int const IO_INTERVENTION_NON_STRUCT
int const ELEV_IN_BASEMENT
int const LF_SUBCAT_INTERVENTION_STRUCT
int const LF_CAT_INTERVENTION
Contains CSimulation definitions.