Running a Custom ProcessYou can use the For example, you can use this command for an HPC-MPI (high-performance computing message passing interface) or any other environment where you must customize the execution. You can use this argument to call an execution script distributed within the XFlow Physics Simulation or available from the station. The working directory for the custom process is the directory that contains the XFlow project. You can include the following environment variables in the process environment:
The
Specifying a Directory for the XFlow Project FoldersYou can use the For example, -useDir /hpc-fs/xf_example_projectstells the adapter to create XFlow project folders in the directory /hpc-fs/xf_example_projects. Customizing the Names of the XFlow Project SubfoldersIn addition to customizing the directory for the project
folders, you can also customize the subfolder names. You can use one of the following
arguments with
-useDir. By
default, the project subfolder used by the adapter uses the name from the iteration, or run
number, of the adapter. If the process runs the XFlow adapter three times, the subfolders are 1, 2, and
3. You can use the -useDir /hpc-fs/xf_example_projects -dirPrefix ExampleAIf the adapter runs three times, the names of the subfolders are ExampleA_1, ExampleA_2, and ExampleA_3. Alternatively, if the run number is in a parameter,
you can use the -useDir /hpc-fs/xf_example_projects -dirName ExampleB_${RUN_NUMBER}Here,
the ${RUN_NUMBER} expression appends the run number to the end of each
subfolder name. If the process runs the XFlow adapter three times, the subfolders would be ExampleB_1,
ExampleB_2, and ExampleB_3. If you do not
include ${RUN_NUMBER}, and enter only ExampleB as the
-dirName, the name of each subfolder would be
ExampleB. For more information, see Expressions and Parameters.You can also use this syntax to refer to pre-execute input parameters in the Pre-Execute tab of the adapter editor. For example, if you have an input parameter LENGTH that is equal to 25, you can enter the following arguments: -useDir /hpc-fs/xf_example_projects -dirPrefix ${LENGTH}_ExampleThe
project data are then saved in subfolders prepended with 25_Example. If
the value of the parameter changes on a different iteration (for example, as the result of a
DOE varying input parameters), the subfolder for that run includes the new
value.Generating Only the XFlow ProjectYou can use the This mode skips the domain discretization, simulation execution, and the KPI computation; it generates a project with no output. For example, -onlyGenerateProject -useDir /hpc-fs/xf_example_projects -dirName exampleProjectgenerates an XFlow project without running the domain discretization, running the simulation, and computing the domain. The command then saves the empty output in a subfolder named exampleProject within the directory /hpc-fs/xf_example_projects. Running Only the Domain Discretization StageYou can use the This mode skips the project generation, simulation execution, and the KPI computation; it generates a project with no output. For example, -onlyGenerateDomain -useDir /hpc-fs/xf_example_projects -dirName exampleGendomProjectperforms the domain discretization stage and saves the project files in a subfolder named exampleGendomProject within the directory /hpc-fs/xf_example_projects. Retrieving KPIs from a Previous XFlow AdapterYou can use the This mode skips the XFlow project generation, the domain discretization, the simulation execution, and the KPI computation. For example, -useDir /hpc-fs/xf-example_projects –onlyProcessOutputretrieves KPIs from another XFlow adapter that runs earlier in the simulation process. | ||||||||||||||||||||