|
TRUST 1.9.8
HPC thermohydraulic platform
|
In TRUST, an initial pressure is not required from the user. The determination of the initial pressure is handled in Navier_Stokes_std::preparer_calcul, using an approach similar to the correction step of the Chorin algorithm.
We need to find the initial pressure that corrects the initial velocity to be divergence-free at every cell. Even if the initial velocity is globally divergence-free, it is not necessarily divergence-free at each cell of the mesh.
Let \(U^{ini}\) be the initial velocity given by the user and \(U^0\) the real velocity used to launch the algorithm. The velocity \(U^0\) satisfies:
\[\begin{aligned} \mathbb{M}\frac{U^0 - U^{ini}}{\delta t^0} + \mathbb{B}^t P^0 &= 0 \\ \mathbb{B} U^0 &= 0 \end{aligned} \]
Multiplying the first equation by \(\mathbb{B}\mathbb{M}^{-1}\) and using the divergence-free condition, the initial pressure is computed by solving:
\[\delta t^0\,\mathbb{B}\mathbb{M}^{-1}\mathbb{B}^t P^0 = \mathbb{B} U^{ini} \]
The initial velocity is then recovered as:
\[U^0 = U^{ini} - \delta t^0\,\mathbb{M}^{-1}\mathbb{B}^t P^0 \]
Once the initial values of velocity and pressure are determined, the projection algorithms can proceed. See List of the available projection methods for the list of available projection methods.