GfsEventList

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:27, 17 July 2012
GeordieMcBain (Talk | contribs)
(changed font of variable place-holders to UPPERCASE)
← Previous diff
Current revision
Popinet (Talk | contribs)
(Added CLASSNAME optional parameter)
Line 3: Line 3:
The syntax in parameter files is: The syntax in parameter files is:
- [ [[GfsEvent]] ] { + [ [[GfsEvent]] ] (CLASSNAME) {
EVENT0... EVENT0...
EVENT1... EVENT1...
Line 9: Line 9:
} }
-where EVENT0, EVENT1, ..., are [[GfsEvent|GfsEvents]].+where EVENT0, EVENT1, ..., are [[GfsEvent]]s. The <code>CLASSNAME</code> argument is optional and should be the name of the type of [[GfsEvent]]s contained in the list.
<examples/> <examples/>

Current revision

A GfsEventList is a list of events will be performed in sequence at the prescribed instants during the simulation.

The syntax in parameter files is:

 [ GfsEvent ] (CLASSNAME) { 
   EVENT0...
   EVENT1...
   ...
 }

where EVENT0, EVENT1, ..., are GfsEvents. The CLASSNAME argument is optional and should be the name of the type of GfsEvents contained in the list.

Examples

  • The 2004 Indian Ocean tsunami
  •     EventList { start = 212 step = 6 end = 272 } {
    	Init {} { D = 0 }
    	InitOkada D {
    	    x = 93.90 y = 5.22
    	    depth = 11.4857e3
    	    strike = 348 dip = 12 rake = 90
    	    length = 150e3 width = 130e3
    	    U = 23
    	}
        }
    

        EventList { start = 528 step = 6 end = 588 } {
    	Init {} { D = 0 }
    	InitOkada D {
    	    x = 93.21 y = 7.41
    	    depth = 12.525e3
    	    strike = 338 dip = 12 rake = 90
    	    length = 390e3 width = 120e3
    	    U = 12
    	}
        }
    

        EventList { start = 853 step = 6 end = 913 } {
    	Init {} { D = 0 }
    	InitOkada D {
    	    x = 92.60 y = 9.70
    	    depth = 15.12419e3
    	    strike = 356 dip = 12 rake = 90
    	    length = 150e3 width = 95e3
    	    U = 12
    	}
        }
    

        EventList { start = 1213 step = 6 end = 1273 } {
    	Init {} { D = 0 }
    	InitOkada D {
    	    x = 92.87 y = 11.70
    	    depth = 15.12419e3
    	    strike = 10 dip = 12 rake = 90
    	    length = 350e3 width = 95e3
    	    U = 12
    	}
        }
    

  • Simple example of groundwater flow following Darcy's law
  •     EventList { start = end } {
    	OutputErrorNorm {} { awk '{print LEVEL, $5, $7, $9}' >> p } { v = P } {
    	    s = atan2 (y, x)
    	}
    	OutputErrorNorm {} { awk '{print LEVEL, $5, $7, $9}' >> U } { v = U } {
    	    s = y / (x*x + y*y)
    	}
    	OutputErrorNorm {} { awk '{print LEVEL, $5, $7, $9}' >> V } { v = V } {
    	    s = -x / (x*x + y*y)
    	}
    	OutputSimulation solution.gfs
        }
    

  • Groundwater flow with piecewise constant permeability
  •     EventList { start = end } {
    	OutputErrorNorm {} { awk '{print LEVEL, $5, $7, $9}' >> p } { v = P } {
    	    s = THETA>-M_PI/3 ? THETA : 2*THETA+M_PI/3
    	}
    	OutputErrorNorm {} { awk '{print LEVEL, $5, $7, $9}' >> U } { v = U } {
    	    s = y / (x*x + y*y)
    	}
    	OutputErrorNorm {} { awk '{print LEVEL, $5, $7, $9}' >> V } { v = V } {
    	    s = -x / (x*x + y*y)
    	}
    	OutputSimulation {} solution.gfs	
        }
    

Personal tools
communication