CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
sediment_input_event.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 <assert.h>
21
22#include "cme.h"
24
26CRWSedInputEvent::CRWSedInputEvent(int const nIDIn, unsigned long const ulTimeStepIn, double const dFineIn, double const dSandIn, double const dCoarseIn, double const dLenIn, double const dWidthIn) : //, double const dThickIn):
27 m_nLocationID(nIDIn),
28 m_ulEventTimeStep(ulTimeStepIn),
29 m_dFineSedVol(dFineIn),
30 m_dSandSedVol(dSandIn),
31 m_dCoarseSedVol(dCoarseIn),
32 m_dLen(dLenIn),
33 m_dWidth(dWidthIn)
34// m_dThick(dThickIn)
35{
36}
37
42
45{
46 return m_nLocationID;
47}
48
50unsigned long CRWSedInputEvent::ulGetEventTimeStep(void) const
51{
52 return m_ulEventTimeStep;
53}
54
57{
58 return m_dFineSedVol;
59}
60
63{
64 return m_dSandSedVol;
65}
66
69{
70 return m_dCoarseSedVol;
71}
72
74double CRWSedInputEvent::dGetLen(void) const
75{
76 return m_dLen;
77}
78
81{
82 return m_dWidth;
83}
84
85// double CRWSedInputEvent::dGetThick(void)
86// {
87// return m_dThick;
88// }
double m_dFineSedVol
The volume (m3) of fine sediment in the sediment input event.
double m_dCoarseSedVol
The volume (m3) of coarse sediment in the sediment input event.
double dGetCoarseSedVol(void) const
Returns the volume of coarse sediment in the sediment input event.
~CRWSedInputEvent(void)
Destructor.
double dGetWidth(void) const
Returns the width (in metres?) of the sediment input event.
double m_dLen
The coast-normal length (m) of the sediment block.
int m_nLocationID
The location ID in the shapefile.
unsigned long ulGetEventTimeStep(void) const
Returns the timestep of the sediment input event.
double m_dSandSedVol
The volume (m3) of sand sediment in the sediment input event.
double dGetLen(void) const
Returns the length (in metres?) of the sediment input event.
double dGetSandSedVol(void) const
Returns the volume of sand sediment in the sediment input event.
CRWSedInputEvent(int const, unsigned long const, double const, double const, double const, double const, double const)
Constructor with eight parameters and an initialisation list.
double m_dWidth
The along-coast width (m) of the sediment block.
unsigned long m_ulEventTimeStep
The timing of the sediment input event.
double dGetFineSedVol(void) const
Returns the volume of fine sediment in the sediment input event.
int nGetLocationID(void) const
Returns the location ID.
This file contains global definitions for CoastalME.
Contains CRWSedInputEvent definitions.