illinois-ceesd / drivers_y3-prediction

prediction driver for the Y3 simulations
1 stars 1 forks source link

CEESD_y3-prediction

Prediction case using MIRGE-Com

Driver and associated tools for simulating flow through the ACT-II facility in direct-connect configuration. The simulation is viscous, 2D or 3D, and supports single species, passive scalars, and full multi-species.

Initialization considers the Mach number as a function of duct area ratio and inflow stagnation conditions. The velocity and temperature are smoothed using tanh functions to match the near wall flow conditions for isothermal, noslip walls. The velocity is further modified to match the duct geometry.

The driver can be found in prediction.py. It is derived from Isolator and Y2-prediction.

Directory structure

The main driver is isolator.py with the problem setup in baseline being the generally accepted way to run the simulation.

Simulation data (i.e. meshes) are located in data

Numerical experiments and/or driver variations can be located in experiments, these are variations that may or may not derive from the current driver in baseline, although they generally have common ancestery.

The driver/data used to create the timing data is located in timing_runs, and is a smaller version of the full baseline run.

Nightly CI is performed using the directory smoke_test

Installation

./buildMirge.sh

Will checkout and build a local copy of emirge, complete with all the needed subpackages. A new conda environemnt will be created named mirgeDriver.Y3prediction.

Additional options

./buildMirge.sh -h

There are several optional build parameters that are detailed further

Archiving MIRGE-Com version information

./updateVersionInfo.sh

Save the current build state of MIRGE-Com and associated packages into platforms. Setting the environment variable MIRGE_PLATFORM will all the user to retrieve this version information when building MIRGE-Com using the buildMirge.sh script.

Building the mesh

Install gmsh

In the emirge directory activate the ceesd environment and install gmsh

conda activate mirgeDriver.Y3prediction
conda install gmsh

Run gmsh

In the directory containing the case file generate the mesh

gmsh -o prediction.msh -nopopup -format msh2 ./prediction.geo -2

Additional options may be available for fine-tuning mesh generation. Most mesh directories contain a script make_mesh.sh demonstrating how to build a particular mesh version.

Running a case

Activate the correct conda environment

conda activate mirgeDriver.Y3prediction

Most subdirectories contain a run.sh script that outlines how to run the problem.

The case can the be run similar to other MIRGE-Com applications. For examples see the MIRGE-Com documentation