|
TrioCFD 1.9.8
TrioCFD documentation
|
Goals of the tutorial:
The first figure below shows the geometry of the test case you will run in this tutorial. The second figure shows the inlet of the pipe, where the special periodic box computation will be used.
For this tutorial, start from an empty directory, e.g. TrioCFD_tutorial_curved_pipe and source the TrioCFD environment.
This tutorial will start from the validation form PeriodicBox. Use the following commands to copy this validation form:
You should now have several files in your PeriodicBox directory, including:
Now you will generate the meshes. The pipe mesh is stored in an archive, simply decompress it using:
For the periodic box, the mesh will be generated by the tools provided by Trust. For this, run the BuildMeshes.data file with TrioCFD/TRUST:
This dataset will first partition the pipe mesh for 6 cpu parallel simulation, and then generate the periodic box mesh and partition it, making it usable with 2 to 6 cores.
You can look at the BuildMeshes.data and try to understand what each line does. The syntax is relatively straightforward.
Before running, open the files PeriodicBoxRANS.data and PeriodicBoxLES.data and change the parameter nb_pas_dt_max to 100, to shorten the simulations. Running the full calculations may take up to a few hours.
Then, run the simulations in parallel with two processes:
Before running the simulations on the full pipe, take a look at the data sets for each simulation: DomainFlowRANS.data (resp. DomainFlowLES.data). To better visualize the differences between the two, you can open/edit them via meld:
First, change nb_pas_dt_max to 10 in both files, to shorten the calculations.
You can see that the data files contain two problems, one for the box (pb_box) and one for the pipe (pb_dom). They will be coupled together, so that the pipe problem takes the output from the periodic box as its inlet boundary condition.
Notice that:
Now, you can run the Pipe simulations:
You can take a look at the result with visit. But using visit is out of the scope of this tutorial.