CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Real-world class used to represent the 'cliff' category of coastal landform object. More...
#include <cliff.h>
Inherits CACoastLandform.
Public Member Functions | |
CRWCliff (CRWCoast *, int const, int const, double const, double const, double const, double const) | |
Constructor with seven parameters and an intialization list. | |
~CRWCliff (void) override | |
Destructor. | |
void | SetCliffCollapsed (void) |
Flags the cliff as having collapsed. | |
bool | bHasCollapsed (void) const |
Returns the value of the cliff collapse switch. | |
void | SetNotchBaseElev (double const) |
Sets the elevation of the base of the erosional notch. | |
double | dGetNotchBaseElev (void) const |
Returns the elevation of the base of the erosional notch. | |
double | dGetRemaining (void) const |
Returns the length (in external CRS units) of the cliff's remaining sediment 'behind' the erosional notch. | |
double | dGetNotchDepth (void) const |
Returns the horizontal depth of the cliff's erosional notch (the 'overhang') | |
bool | bReadyToCollapse (double const) const |
Returns true if the horizontal depth of the erosional notch exceeds the critical notch overhang. | |
void | DeepenErosionalNotch (double const) |
Increases the XY-plane length (in external CRS units) of the erosional notch, measured inland from the side of the cell that touches the sea. | |
void | Display (void) override |
Instantiates the pure virtual function in the abstract parent class, so that CRWCliff is not an abstract class. | |
![]() | |
CACoastLandform (void) | |
Constructor with initialization list. | |
virtual | ~CACoastLandform (void) |
Destructor. | |
int | nGetCoast (void) const |
Get the number of the coast on which this coast landform sits. | |
int | nGetPointOnCoast (void) const |
Get the point on the coast on which this coast landform sits. | |
int | nGetLandFormCategory (void) const |
Get the landform category. | |
CGeom2DIPoint * | pPtiGetCellMarkedAsLF (void) const |
Get the grid coordinates of the cell on which this coast landform sits. | |
void | IncTotAccumWaveEnergy (double const) |
Increment total accumulated wave energy. | |
double | dGetTotAccumWaveEnergy (void) const |
Get total accumulated wave energy. | |
Private Attributes | |
bool | m_bCliffHasCollapsed |
Switch to say whether the cliff has just collapsed, earlier in this timestep. | |
double | m_dMaxDepth |
The maximum depth (in external CRS units) of an erosional notch, this is equal to the grid's m_dCellSide. | |
double | m_dNotchDepth |
The horizontal depth (in external CRS units) of the erosional notch, measured inland from the side of the cell that touches the sea. | |
double | m_dNotchBaseElev |
Z-plane elevation (in external CRS units) of the base of the erosional notch. The notch is assumed to extend across the whole width of the coast cell, along the side of the cell that touches the sea. | |
Additional Inherited Members | |
![]() | |
int | m_nCoast |
The coast number on which this coast landform sits. | |
int | m_nPointOnCoast |
The point on the coast on which this coast landform sits. | |
int | m_nCategory |
Landform category code. | |
double | m_dTotAccumWaveEnergy |
Total accumulated wave energy since beginning of simulation. | |
CRWCoast * | pCoast |
Pointer to this landform's coast. | |
Real-world class used to represent the 'cliff' category of coastal landform object.
TODO 001 This is a more detailed description of the CRWCliff class.
CRWCliff::CRWCliff | ( | CRWCoast * | pCoastIn, |
int const | nCoast, | ||
int const | nPointOnCoast, | ||
double const | dCellSide, | ||
double const | dNotchDepthIn, | ||
double const | dNotchElevIn, | ||
double const | dAccumWaveEnergyIn ) |
bool CRWCliff::bHasCollapsed | ( | void | ) | const |
Returns the value of the cliff collapse switch.
Definition at line 58 of file cliff.cpp.
Referenced by CSimulation::nLandformToGrid().
bool CRWCliff::bReadyToCollapse | ( | double const | dThresholdNotchDepth | ) | const |
Returns true if the horizontal depth of the erosional notch exceeds the critical notch overhang.
Definition at line 100 of file cliff.cpp.
Referenced by CSimulation::nDoAllWaveEnergyToCoastLandforms().
void CRWCliff::DeepenErosionalNotch | ( | double const | dLenIn | ) |
Increases the XY-plane length (in external CRS units) of the erosional notch, measured inland from the side of the cell that touches the sea.
Definition at line 109 of file cliff.cpp.
Referenced by CSimulation::nDoAllWaveEnergyToCoastLandforms().
double CRWCliff::dGetNotchBaseElev | ( | void | ) | const |
Returns the elevation of the base of the erosional notch.
Definition at line 70 of file cliff.cpp.
Referenced by CSimulation::nDoCliffCollapse(), and CSimulation::nLandformToGrid().
double CRWCliff::dGetNotchDepth | ( | void | ) | const |
Returns the horizontal depth of the cliff's erosional notch (the 'overhang')
Definition at line 94 of file cliff.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), and CSimulation::nLandformToGrid().
double CRWCliff::dGetRemaining | ( | void | ) | const |
Returns the length (in external CRS units) of the cliff's remaining sediment 'behind' the erosional notch.
Definition at line 82 of file cliff.cpp.
Referenced by CSimulation::nLandformToGrid().
|
overridevirtual |
Instantiates the pure virtual function in the abstract parent class, so that CRWCliff is not an abstract class.
Implements CACoastLandform.
void CRWCliff::SetCliffCollapsed | ( | void | ) |
Flags the cliff as having collapsed.
Definition at line 64 of file cliff.cpp.
Referenced by CSimulation::nDoCliffCollapse().
void CRWCliff::SetNotchBaseElev | ( | double const | dNewElev | ) |
Sets the elevation of the base of the erosional notch.
Definition at line 76 of file cliff.cpp.
Referenced by CSimulation::nDoCliffCollapse().
|
private |
Switch to say whether the cliff has just collapsed, earlier in this timestep.
Definition at line 36 of file cliff.h.
Referenced by bHasCollapsed(), CRWCliff(), and SetCliffCollapsed().
|
private |
The maximum depth (in external CRS units) of an erosional notch, this is equal to the grid's m_dCellSide.
Definition at line 39 of file cliff.h.
Referenced by CRWCliff(), DeepenErosionalNotch(), and dGetRemaining().
|
private |
Z-plane elevation (in external CRS units) of the base of the erosional notch. The notch is assumed to extend across the whole width of the coast cell, along the side of the cell that touches the sea.
Definition at line 45 of file cliff.h.
Referenced by CRWCliff(), dGetNotchBaseElev(), and SetNotchBaseElev().
|
private |
The horizontal depth (in external CRS units) of the erosional notch, measured inland from the side of the cell that touches the sea.
Definition at line 42 of file cliff.h.
Referenced by bReadyToCollapse(), CRWCliff(), DeepenErosionalNotch(), dGetNotchDepth(), and dGetRemaining().