Setting Initial Conditions for Compressible Flows
For compressible flows that use the Coupled Flow model, you can initialize the flow field manually or use the automatic Grid Sequencing (GS) method. GS performs the normal initialization followed by the computation of an approximate inviscid solution to the flow problem.
When initializing compressible flow cases, the following isentropic relations are useful:
where is area, is mass flow rate, is Mach number, is molecular weight (relative molecular mass) of molecular entity , is static pressure, is total pressure, is specific gas constant, is universal gas constant [8314.4621 J/kmol K], is static temperature, is total temperature, is velocity magnitude, and is ratio of specific heats.
-
Depending on the initialization method, do one of the following:
Method Steps Manual The steps depend on whether you want to start the simulation from the initial state of the model (initial run) or continue from a previously computed solution (restart run). For an initial run:
- Expand the node.
- Select the Velocity node and
set the initial velocity:
- For uni-directional ducts and free-stream flows over slender bodies, it is best to initialize the flow to the inlet or free-stream values.
- For curved ducts or bluff bodies, it can help to reduce the velocity significantly in these cases. Furthermore, techniques such as changing boundary conditions or ramping boundary values may be required to aid solution convergence.
- Select the Pressure node and
specify the initial pressure:
- If there are no pressure boundaries, the specified initial pressure must not result in a non-physical absolute pressure.
- For free-stream flows, choose the initial pressure such that it is equal to the free-stream pressure.
- For duct flows, choose the initial pressure such that it is equal to or higher than the outlet pressure. Choosing a value higher than the outlet pressure can inhibit temporary reversed flow occurring at the outlet.
For a restart run:- In the previous simulation, create an XYZ Internal Table and fill it with the Velocity[i], Velocity[j], Velocity[k], and Pressure values. Export the table to a .csv file.
- Read the table data file in the current simulation.
- Expand the Velocity and Pressure using the imported tabular data. node and set the initial values for
For detailed information on working with tables, see Table Tasks and Setting Values Using a Table.
Automatic (only for the implicit integration scheme)
- Set an initial guess of the flow field as described for the Manual method.
- Select the Method to Grid Sequencing. node and set
- Select the Grid sequencing
sub-node and set the following properties:
- Maximum Grid Levels
- Maximum Iterations per Level
- Convergence Tolerance per Level
- CFL Number
- Explicit Relaxation
You can change the settings at any time during the GS initialization process. The solver acknowledges the change through a message in the Output window. You can also interrupt GS at any time by clicking the
(Abort) button next to the status bar.
If GS fails (for example due to aggressive settings), the solver attempts to recover from it. At worst, you can simply get a normal (uniform) initialization. In this case, change the GS settings. For example, choose smaller values for the CFL number or the maximum iterations per level, clear the solution and try the initialization again. Also check that the solver is working with a reasonable number of cells per level to converge. The default number of maximum grid levels may not be suitable for problems with a relatively small number of cells in the mesh.
Note, that GS is not guaranteed to work in all cases. Deactivate GS if after changing the settings you still encounter lack of robustness or divergence during the GS process.
-
In a region where the initial conditions are known to differ from the
continuum, set the initial region values as follows:
- Select the Option to Specify Region Values. node and set
- Expand the Pressure and Velocity using the manual initialization method. node and set the initial values for