/[escript]/trunk/modellib/py_src/tsunami.py
ViewVC logotype

Diff of /trunk/modellib/py_src/tsunami.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 628 by elspeth, Thu Mar 23 02:27:57 2006 UTC revision 918 by gross, Wed Jan 3 06:30:00 2007 UTC
# Line 628  class OceanRegionCollector(Model): Line 628  class OceanRegionCollector(Model):
628    
629    
630        """        """
631        def __init__(self,debug=False):        def __init__(self,**kwargs):
632             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
633             self.declareParameter(coastline_source="http://jamboree.esscc.uq.edu.au/cgi-bin/doreen/datafile.txt?west=%%west%%&east=%%east%%&south=%%south%%&north=%%north%%&resolution=%%resolution%%&range360=%%range360%%&river=false&city=false&citytyp=wcity.dat&volcano=false&hotspot=false&shoreline=true&state=false&WSMdata=false&plate=false",             self.declareParameter(coastline_source="http://jamboree.esscc.uq.edu.au/cgi-bin/doreen/datafile.txt?west=%%west%%&east=%%east%%&south=%%south%%&north=%%north%%&resolution=%%resolution%%&range360=%%range360%%&river=false&city=false&citytyp=wcity.dat&volcano=false&hotspot=false&shoreline=true&state=false&WSMdata=false&plate=false",
634                                   bathymetry_source="http://jamboree.esscc.uq.edu.au/cgi-bin/doreen/grdfile.xyz?west=%%west%%&east=%%east%%&south=%%south%%&north=%%north%%&resolution=%%resolution%%",                                   bathymetry_source="http://jamboree.esscc.uq.edu.au/cgi-bin/doreen/grdfile.xyz?west=%%west%%&east=%%east%%&south=%%south%%&north=%%north%%&resolution=%%resolution%%",
635                                   resolution=1.,                                   resolution=1.,
# Line 663  class Bathymetry(Model): Line 663  class Bathymetry(Model):
663         """         """
664         generates the bathymetry data within a region on the earth         generates the bathymetry data within a region on the earth
665         """         """
666         def __init__(self,debug=False):         def __init__(self,**kwargs):
667             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
668             self.declareParameter(source="none",             self.declareParameter(source="none",
669                                   bathymetry=1.)                                   bathymetry=1.)
670    
# Line 712  class OceanRegion(Model): Line 712  class OceanRegion(Model):
712         generates the ocean region with a coast line and a bathymetry         generates the ocean region with a coast line and a bathymetry
713    
714         """         """
715         def __init__(self,debug=False):         def __init__(self,**kwargs):
716             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
717             self.declareParameter(domain=None, \             self.declareParameter(domain=None, \
718                                   resolution=1.,                                   resolution=1.,
719                                   south=0.,                                   south=0.,
# Line 766  class TsunamiSource(Model): Line 766  class TsunamiSource(Model):
766         defines a wave in Gaussean form between start and end.         defines a wave in Gaussean form between start and end.
767         """         """
768         GAMMA=0.05         GAMMA=0.05
769         def __init__(self,debug=False):         def __init__(self,**kwargs):
770             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
771             self.declareParameter(domain=None,             self.declareParameter(domain=None,
772                                   start_lat=-10.,                                   start_lat=-10.,
773                                   start_long=110.,                                   start_long=110.,
# Line 818  class TsunamiInDeepWater(Model): Line 818  class TsunamiInDeepWater(Model):
818         The simulation uses the Verlet scheme.         The simulation uses the Verlet scheme.
819    
820         """         """
821         def __init__(self,debug=False):         def __init__(self,**kwargs):
822             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
823             self.declareParameter(domain=None, \             self.declareParameter(domain=None, \
824                                   wave_height=1.,                                   wave_height=1.,
825                                   wave_velocity=0.,                                   wave_velocity=0.,
# Line 879  class SurfMovie(Model): Line 879  class SurfMovie(Model):
879         @ivar wave_height: vector data set         @ivar wave_height: vector data set
880         @ivar filename: name of the movie file         @ivar filename: name of the movie file
881         """         """
882         def __init__(self,debug=False):         def __init__(self,**kwargs):
883             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
884             self.declareParameter(bathymetry=1.,             self.declareParameter(bathymetry=1.,
885                                   wave_height=1.,                                   wave_height=1.,
886                                   coastline=None,                                   coastline=None,

Legend:
Removed from v.628  
changed lines
  Added in v.918

  ViewVC Help
Powered by ViewVC 1.1.26