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.
How to make a loop of simulations
- stevenmiguelfigueroa
- Posts: 22
- Joined: Mon Apr 20, 2020 12:49 pm
- Location: Chungnam National University
- arango
- Site Admin
- Posts: 1361
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: How to make a loop of simulations
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:
In your customized ana_winds.h you can have:
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,
Code: Select all
! Generic User parameters, [1:NUSER].
NUSER = 2
USER = 2.0d0 5.0d0
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
- stevenmiguelfigueroa
- Posts: 22
- Joined: Mon Apr 20, 2020 12:49 pm
- Location: Chungnam National University
Re: How to make a loop of simulations
Thank you.
I'll study following this recommendation.
I'll study following this recommendation.