Skip to content

Copying simulation input files

To set up a new simulation, copy_inputs.sh in u-dales/tools/ is used to create a new simulation setup new_exp_id based on another simulation old_exp_id. All exp_ids are three digit integer numbers, e.g. 001, and are stored in directories of that name. Each experiment case directory must contain a config.sh file where appropriate paths for DA_EXPDIR (experiments directory), DA_WORKDIR (outputs directory), DA_TOOLSDIR (u-dales/tools directory) are set using export.

Now to set-up a new experiment (here we use case 009) based on a previous example (here we use case 001), run:

# We assume you are running the following commands from your
# top-level project directory.

# General syntax: copy_inputs.sh old_exp_id new_exp_id
u-dales/tools/copy_inputs.sh experiments/001 009

# To set up a new simulation starting from the restart files of another simulation
# ("warmstart"), use the 'w' flag. E.g.: copy_inputs.sh old_exp_id new_exp_id w
u-dales/tools/copy_inputs.sh experiments/001 009 w

copy_inputs.sh only prepares the case directory under DA_EXPDIR. The output directory DA_WORKDIR/<new_exp_id> is created by the execute script when the case is run, and the execute scripts refuse to run if it already exists: uDALES never removes, modifies or overwrites existing results. To rerun a case on purpose, move or delete its output directory yourself first.

With the w flag the newest restart set found in the source case's output directory is linked into the new case under the new experiment number: the initd flow fields, the inits scalar fields if present, and the initf facet state if present. lwarmstart and startfile are set in the new namoptions accordingly. The simulation then starts at the time stored in the restart set, so set runtime to the remaining simulated time yourself.