How to make a loop of simulations

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
stevenmiguelfigueroa
Posts: 22
Joined: Mon Apr 20, 2020 12:49 pm
Location: Chungnam National University

How to make a loop of simulations

#1 Unread post by stevenmiguelfigueroa »

Hello,

I would like to run several ROMS simulations (~30 simulations) for idealized cases while varying the boundary and river input files.

For example, imagine running the coastal upwelling test case with constant wind for 30 different wind speeds or similarly a periodic channel with flocculation and the simulations range from including 1 size class to 30.

How can this be done? I appreciate any pointers toward keywords or introductory references.

Thank you very much. Have a great day.

User avatar
arango
Site Admin
Posts: 1347
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: How to make a loop of simulations

#2 Unread post by arango »

Usually, I generate ensemble runs with more sophisticated ROMS algorithms. You can use the roms.in USER parameter to specify the desired wind speeds to be read from standard input:

Code: Select all

! Generic User parameters, [1:NUSER].

       NUSER =  2
        USER =  2.0d0  5.0d0
In your customized ana_winds.h you can have:

Code: Select all

      DO j=JstrT,JendT
        DO i=IstrT,IendT
          Uwind(i,j)=user(1)
          Vwind(i,j)=user(2)
        END DO
      END DO
Then, you can write a batch script to run the ensembles modifying the roms.in from a template with the desired values. For example, check the WC13/RBL4DVAR_split directory in the test repository. There is a roms_nl_wc13.tmp template and a submit_split_rbl4dvar.sh script. However, it is specific for a sophisticated 4D-Var data assimilation algorithm. It will give you an idea how to set up your simpler application,

User avatar
stevenmiguelfigueroa
Posts: 22
Joined: Mon Apr 20, 2020 12:49 pm
Location: Chungnam National University

Re: How to make a loop of simulations

#3 Unread post by stevenmiguelfigueroa »

Thank you.
I'll study following this recommendation.

Post Reply