Running VSPACE

Run VSPACE with the command

vspace <file>

where file is an ASCII text file that contains instructions on how to build the parameter space. This file is typically called vspace.in.

Note

The multi-planet script also uses VSPACE’s input file.

vspace.in

The input file contains a list of template files and all the VPLanet options to vary. An example input file, called vspace.in, is included in this directory and its lines are described below and is based off the IoHeat example.

 1sSrcFolder .
 2sDestFolder data
 3sTrialName  ioheat
 4
 5sPrimaryFile   vpl.in
 6
 7sBodyFile   jupiter.in
 8
 9sBodyFile   io.in
10dEcc  [0.001,0.005,n5] ecc
11dObliquity [0,10,n5] obl

The first line provides VSPACE with the location of a directory that contains the template VPLanet input files, such as vpl.in, star.in, etc. (see below). The format of these files is slightly different when used with VSPACE then when used with a single VPlanet run.

Line 2 presents the name of the subdirectory that will contain all the initial conditions for the parameter sweep. In other words, a new directory called “data” will be created.

Line 3 specifies a prefix for subdirectories in the destfolder. If this option is not set, the prefix is set to “default”. With these top-level commands executed, the remaining lines describe how the individual parameters are to be varied and completes the names of the trial directories. The general syntax for these lines are:

<filetype> <name>
<option> [sampling rules] <identifier>
<option> [sampling rules] <identifier>
...

where <filetype> is either two options: sBodyFile or sPrimaryFile. sBodyFile is if the input file it is a body in the simulation (such as the star and the planets), while sPrimaryFile is the file that has simulation options (the default is vpl.in). <name> is the name of the input file, <option> is the name of a VPLanet input option (exact match required), <sampling rule> sets how the values of the option are to be sampled (see the Sampling Rules section), and <identifier> is a string that is appended to the trialname prefix in the destfolder subdirectories. ```` will vary all parameters listed after a “file” command until it reaches the next “file” command or the end of the file. In this example we are not varying any options for vpl.in or jupiter.in, so they have no options listed. However they must still be included to inform VSPACE that they should be copied into the trial directories. In this case, “n5” tells VSPACE to create 5 evenly spaced values of dEcc between 0.001 and 0.005.

Note

Sampling rules must be bounded by square brackets.

This example will create subdirectories with names like

data/ioheat_ecc0obl0

each with the files jupiter.in, io.in, and vpl.in that would be identical to those files in the srcfolder, except dEcc and dObliquity would have values that follow the sampling rules. The numbers after each <identifier> uniquely identifies the subdirectory.

Once the directories have been created, they can all be executed with a single command using the multiplanet script and the VSPACE.in file.

Template Files

The template files are nearly identical to standard VPLanet input files except that they should not include the parameters to be varied.

You can additionally instruct VSPACE to remove options from a template file with by including a line in vspace.in like:

rm <option name>

VSPACE will merely comments out the matching line.