Subsections
General Structure of the Code
In FASTEST3D the real main routine is fmg3d() (s. section 2.1.9, full multi grid
3d). It controls the execution of the FASTEST3D code.
There are three main areas:
- Reading input data and initialize values
- Execute the calculations
- Output of data for postprocessing and restart
Short Description
The global solution algorithm for the coupled set of conservation
equations can be summed up as follows:
- Initialize the field values (
,
,
,
,
,...
etc.) with some (guessed) initial values (typically zero, if no
better guess is available);
- Assemble the momentum equations and solve them to get
,
and
;
- Assemble and solve the pressure-correction equation (ref3.51)
to get
;
- Correct the mass fluxes, pressure and nodal velocities using
expressions (ref3.48) and (ref3.53);
- Solve other scalar equations which might be involved;
- Return to step 2 and repeat, using corrected mass fluxes,
velocities and pressure as initial values, until convergence.
In the remainder of this section, a detailed description of the most
important subroutines of the FASTEST3D code is given.