SWE
/import/home/rettenbs/src/SWE/src/scenarios/SWE_Scenario.hh
Go to the documentation of this file.
00001 
00028 #ifndef __SWE_SCENARIO_H
00029 #define __SWE_SCENARIO_H
00030 
00034 typedef enum BoundaryType {
00035    OUTFLOW, WALL, INFLOW, CONNECT, PASSIVE
00036 } BoundaryType;
00037 
00041 typedef enum BoundaryEdge {
00042    BND_LEFT, BND_RIGHT, BND_BOTTOM, BND_TOP
00043 } BoundaryEdge;
00044 
00054 class SWE_Scenario {
00055 
00056  public:
00057 
00058     virtual float getWaterHeight(float x, float y) { return 10.0f; };
00059     virtual float getVeloc_u(float x, float y) { return 0.0f; };
00060     virtual float getVeloc_v(float x, float y) { return 0.0f; };
00061     virtual float getBathymetry(float x, float y) { return 0.0f; };
00062     
00063     virtual float waterHeightAtRest() { return 10.0f; };
00064 
00065     virtual float endSimulation() { return 0.1f; };
00066     
00067     virtual BoundaryType getBoundaryType(BoundaryEdge edge) { return WALL; };
00068     virtual float getBoundaryPos(BoundaryEdge edge) {
00069        if (edge==BND_LEFT || edge==BND_BOTTOM)
00070           return 0.0f;
00071        else
00072           return 1.0f; 
00073     };
00074     
00075     virtual ~SWE_Scenario() {};
00076 
00077 };
00078 
00079 
00080 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends