Example #1
0
def makeWaveInput():
    
    #DEFINE SPATIAL/TEMPORAL DOMAIN
    box = CMSman.makebox()
    steeringtimes = CMSman.maketimes(None,None,None)

    #RETRIEVE WAVE DATA FROM DATABASE
    wavdata = CMSman.getwavedata(box,steeringtimes) #add wavtype
    if (wavdata==None):
      print '\n... downloading new wave data ... \n'
      GETman.getWAVE(CMSconfig)
      wavdata = CMSman.getwavedata(box,steeringtimes) #add wavtype 
    
    # CONSTRUCT THE FILE
    CMSman.gen_wavefiles(wavdata,steeringtimes)
Example #2
0
def makeWaveInput():

    #DEFINE SPATIAL/TEMPORAL DOMAIN
    box = CMSman.makebox()
    steeringtimes = CMSman.maketimes(None, None, None)

    #RETRIEVE WAVE DATA FROM DATABASE
    wavdata = CMSman.getwavedata(box, steeringtimes)  #add wavtype
    if (wavdata == None):
        print '\n... downloading new wave data ... \n'
        GETman.getWAVE(CMSconfig)
        wavdata = CMSman.getwavedata(box, steeringtimes)  #add wavtype

    # CONSTRUCT THE FILE
    CMSman.gen_wavefiles(wavdata, steeringtimes)
Example #3
0
def gen_eng_file(output_path, params):
    # This routine started out as makeWaveInput in prepareCMS.py

    model_config = CMSConfig(params["sim_name"]).load_sim_config()

    # DEFINE SPATIAL/TEMPORAL DOMAIN
    box = CMSman.makebox(model_config)
    steeringtimes = CMSman.maketimes(params["sim_starttime"], params["sim_runtime"], params["sim_timestep"])

    # RETRIEVE WAVE DATA FROM DATABASE
    wavdata = CMSman.getwavedata(box, steeringtimes, model_config)  # add wavtype
    if wavdata == None:
        print "\n... downloading new wave data ... \n"
        GETman.getWAVE(model_config, params["sim_starttime"], params["sim_runtime"], params["sim_timestep"])
        wavdata = CMSman.getwavedata(box, steeringtimes, model_config)  # add wavtype

    # CONSTRUCT THE FILE
    CMSman.gen_wavefiles(wavdata, steeringtimes, model_config, output_path)
Example #4
0
def gen_eng_file(output_path, params):
    # This routine started out as makeWaveInput in prepareCMS.py

    model_config = CMSConfig(params['sim_name']).load_sim_config()

    #DEFINE SPATIAL/TEMPORAL DOMAIN
    box = CMSman.makebox(model_config)
    steeringtimes = CMSman.maketimes(params['sim_starttime'],
                                     params['sim_runtime'],
                                     params['sim_timestep'])

    #RETRIEVE WAVE DATA FROM DATABASE
    wavdata = CMSman.getwavedata(box, steeringtimes,
                                 model_config)  #add wavtype
    if (wavdata == None):
        print '\n... downloading new wave data ... \n'
        GETman.getWAVE(model_config, params['sim_starttime'],
                       params['sim_runtime'], params['sim_timestep'])
        wavdata = CMSman.getwavedata(box, steeringtimes,
                                     model_config)  #add wavtype

    # CONSTRUCT THE FILE
    CMSman.gen_wavefiles(wavdata, steeringtimes, model_config, output_path)