コード例 #1
0
ファイル: run_tests.py プロジェクト: mandli/storm_surge
 def write_data_objects(self):
     super(SingleLayerBaseTest,self).write_data_objects()
     
     import topo_data
     topo_data.write_topo_file('topo.data',bathy_type=self.bathy_type,
                                     plot=False,force=False)
コード例 #2
0
ファイル: setrun.py プロジェクト: mandli/storm_surge
    data.x2 = 480e3
    data.basin_depth = -3000.0
    data.shelf_depth = -100.0
    data.beach_slope = 0.05
    data.h = 100.0
    
    return data
    
# =====================
#  Main run function 
# =====================
if __name__ == '__main__':
    # Set up run-time parameters and write all data files.
    import sys
    # if len(sys.argv) == 2:
    #     rundata = setrun(sys.argv[1])
    # else:
    rundata = setrun()
    hurricane_data = set_hurricane_data()
    multilayer_data = set_multilayer_data()

    # Write our run data file
    rundata.write()
    hurricane_data.write()
    multilayer_data.write()    
    
    # Write out topography and qinit data files if needed
    topo_data.write_topo_file('./topo.data',bathy_type='simple_shelf',
                                        plot=False,force=True)
    
コード例 #3
0
ファイル: setrun.py プロジェクト: mandli/storm_surge
    # Bathy settings
    data.bathy_type = 1
    data.bathy_location = 0.5
    data.bathy_left = -1.0
    data.bathy_right = -0.2
    
    return data
    
# =====================
#  Main run function 
# =====================
if __name__ == '__main__':
    # Set up run-time parameters and write all data files.
    import sys
    # if len(sys.argv) == 2:
    #     rundata = setrun(sys.argv[1])
    # else:
    rundata = setrun()
    hurricane_data = set_hurricane_data()
    multilayer_data = set_multilayer_data()

    # Write our run data file
    rundata.write()
    hurricane_data.write()
    multilayer_data.write()    
    
    # Write out topography and qinit data files if needed
    topo_data.write_topo_file('./topo.data',bathy_type='flat',
                                        plot=False,force=False)
    
コード例 #4
0
ファイル: setrun.py プロジェクト: mandli/storm_surge
    data.sigma = 25e3
    
    # Bathy settings
    data.bathy_type = 0
    
    return data

# =====================
#  Main run function 
# =====================
if __name__ == '__main__':
    # Set up run-time parameters and write all data files.
    import sys
    if len(sys.argv) == 2:
        rundata = setrun(sys.argv[1])
    else:
        rundata = setrun()
    hurricane_data = set_hurricane_data()
    multilayer_data = set_multilayer_data()

    # Write our run data file
    rundata.write()
    hurricane_data.write()
    multilayer_data.write()
    
    # Write out topography and qinit data files if needed
    topo_file = './topo.data'
    topo_data.write_topo_file(topo_file,topo_type=1,factor=4,
                            bathy_type='simple_shelf',plot=True,force=True)
    
コード例 #5
0
ファイル: run_tests.py プロジェクト: mandli/storm_surge
 def write_data_objects(self):
     super(TwoLayerBaseTest,self).write_data_objects()
     
     import topo_data
     topo_data.write_topo_file('topo.data',bathy_type='simple_shelf',
                                     plot=False,force=False)
コード例 #6
0
ファイル: setrun.py プロジェクト: mandli/storm_surge
    data.eta = [0.0,-200.0]
    data.init_type = 0
    
    # Bathy settings
    data.bathy_type = 0
    
    return data
    
# =====================
#  Main run function 
# =====================
if __name__ == '__main__':
    # Set up run-time parameters and write all data files.
    import sys
    # if len(sys.argv) == 2:
    #     rundata = setrun(sys.argv[1])
    # else:
    rundata = setrun()
    hurricane_data = set_hurricane_data()
    multilayer_data = set_multilayer_data()

    # Write our run data file
    rundata.write()
    hurricane_data.write()
    multilayer_data.write()    
    
    # Write out topography and qinit data files if needed
    topo_data.write_topo_file('./topo.data',topo_type=1,factor=4,
                                bathy_type='flat_stommel',plot=False,force=True)
    
コード例 #7
0
ファイル: run_tests.py プロジェクト: mandli/storm_surge
    def write_data_objects(self):
        super(SingleLayerBaseTest, self).write_data_objects()

        import topo_data

        topo_data.write_topo_file("topo.data", bathy_type="simple_shelf", plot=False, force=False)