|
TRUST 1.9.8
HPC thermohydraulic platform
|
As always when using TRUST, start by loading your TRUST environment.
The case we will work with in this tutorial is called TP_Temp_QC_VEF in the TRUST non-regression database. It is a 2D simulation of helium gas flow in a rectangular channel from left to right between two heated walls.
Start by copying it into your folder:
Then, open Keywords Reference Manual in another tab, as it will be useful for looking up keywords throughout this exercise.
Edit the data file with your favorite editor, or using gedit:
You will make several changes to the .data file:
trust -evol TP_Temp_QC_VEF &
Once the calculation is finished, visualize the results using VisIt:
visit -o TP_Temp_QC_VEF.lata &
Going back to your .data file, replace the time scheme with an implicit time scheme such as schema_euler_implicite.
Use the implicite solver and specify the facsec and facsec_max parameters according to the advice given in the reference manual.
Run the calculation again with this time scheme using the evol tool or with:
You can edit the files containing information about the time step and residual evolution for each equation:
If everything looks correct, try to improve the convergence speed of the implicit solver by adjusting the seuil_convergence_implicite keyword. If the number of GMRES iterations is between 3 and 5, convergence is fast enough. You can find this information in the TP_Temp_QC_VEF.out file.
To resume the calculation, change the tinit value in the data file to the one saved in the .err file. You also need to insert the keyword reprise binaire TP_Temp_QC_VEF_pb.sauv in the problem definition block of your .data file.
Then, restart the calculation with:
or
The evol option automatically creates the TP_Temp_QC_VEF.out and TP_Temp_QC_VEF.err files.
If you are interested in comparing Quasi-Compressible and Weakly Compressible simulations, see the validation form: