예제 #1
0
 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
    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
    # 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
    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
 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
    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
    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)