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)
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)
# 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)
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)
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)
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)
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)