Fluid simulation
About flow studies
A flow study calculates the flow of a fluid around a part (external flow) or through a part (internal flow). The solver uses the lattice-Boltzmann method on a grid of cubic cells. You can make a flow study in a part or in an assembly.
Beta. The flow study has the "Beta" tag. External aerodynamics is not yet validated above a Reynolds number of about 1,000. Treat the drag and the lift as indicative values. For internal flow, treat the pressure drop and the flow rates as indicative values. The results panel shows this caution near the results.
The "Beta" tag is a tag of the flow study. It is not the release status of Meridian.
The flow solver can use the graphics processor. Refer to GPU compute.
Make a flow study
- Open the part or the assembly.
- On the Simulation tab, click New Flow Study. The Study Settings panel opens.
- Select the Fluid.
- Select the Region: Around the part (external flow) or Through the part (internal flow).
- For an external flow, set the Speed (m/s) and the Flow direction.
- For an internal flow, set the openings. Refer to Openings.
- Click OK.
- Click Mesh Settings to set the grid. Refer to Grid size.
- Click Run (F5).
The start page has the guided tour Run your first flow study. The tour opens the Nozzle sample and sends engine oil around it.
Fluids
| Fluid | Density (kg/m³) | Dynamic viscosity (Pa s) |
|---|---|---|
| Air (20 C) | 1.204 | 1.81e-5 |
| Water (20 C) | 998.0 | 1.0e-3 |
| Engine oil SAE 30 (20 C) | 891.0 | 0.29 |
| Hydraulic oil ISO VG 32 (40 C) | 857.0 | 0.0274 |
The default fluid is air at 1 m/s along +X.
Flow settings
| Setting | What it does |
|---|---|
| Part refinement levels | Adds finer grid levels near the bodies of an external flow, from 0 to 3. Each level has cells of half the size. |
| Tunnel in front, Tunnel behind, Tunnel beside | Set the distance from the part to the inlet, to the outlet and to the side walls of the external flow box. Each value is a multiple of the largest dimension of the part. The defaults are 3, 8 and 3. The wake behind the part needs a long distance. |
| Wall model | None (no-slip) or Spalding law (y+ 30 to 300). A wall model is for a grid that does not resolve the boundary layer. |
External flow and aerodynamics
Study Settings has an Aerodynamics section for an external flow.
| Setting | What it does |
|---|---|
| Up axis (lift) | Sets the axis along which the lift acts. The default is +Z. |
| Angle of attack (deg) | Turns the flow in the pitch plane, from -90° to 90°. |
| Yaw about the up axis (deg) | Turns the flow sideways, from -180° to 180°. |
| Sweep the angle of attack | Runs a set of angles (Sweep from (deg), Sweep to (deg), Sweep step (deg)), up to 61 angles. The results give Cl, Cd, Cm and L/D for each angle. |
| Set a reference area, Set a reference length | Set the values for the coefficients. By default, the reference area is the frontal area and the reference length is the body length. |
| Refine out to the box walls | Extends the fine grid levels to the walls of the box. Use it for a ground or a wall near the bodies. |
| Ground under the part | Adds a ground below the bodies. Set the Ground clearance. With Moving ground (on by default), the ground moves at the free-stream speed, as a road under a car. Without it, the ground is a fixed no-slip wall. |
| Time-mean Cp | Calculates the mean surface pressure coefficient over a Time window: the Last steps, or a Fraction of the maximum steps. |
Limits:
- You cannot use a ground with an angle-of-attack sweep. Run one study for each angle.
- With a ground, the angle of attack turns the bodies, not the free stream.
External flow results
The Study Results panel shows:
- The Reynolds number and the Free stream.
- The Drag, with the Pressure drag and the Viscous drag, and the Lift.
- The Drag coefficient (Cd), the Lift coefficient (Cl) and the Pitch moment coefficient (Cm).
- The Wall y+ (mean / max).
- The Grid resolution: the finest cells across the smallest body.
- The Solution: Converged, Not converged, Grid too coarse for accurate results or Unstable.
- The Cells, the Refinement levels and the Finest cell size.
If the grid is too coarse for accurate forces, the result has a warning. The warning gives the refinement levels or the cell size to use.
The wind tunnel view
The wind tunnel view shows an external flow study as in a wind tunnel. To open it, click Wind Tunnel in the Results group.
The view shows:
- Smoke lines that start upstream of the bodies. Their color shows the speed.
- Flow lines on the surfaces.
- The pressure coefficient (Cp) on the surfaces.
- Pressure callouts: the stagnation point (largest Cp), the suction point (smallest Cp) and the base (the mean of the rear faces).
- Force arrows.
You can set the line density to Low, Medium or High in the Study Results panel. The pressures are gauge pressures, relative to the free stream.
To read Cp and the gauge pressure at a point on a body, use Probe.
The wind tunnel view is for external flow only. It is a display option. Meridian does not save it in the file.
Internal flow
An internal flow goes through pipes, ducts, channels or manifolds.
Where the fluid is
The results show the Fluid region:
- Cavity of the part. Each inlet and outlet face is a flat face with a hole. Lids close the holes, and the fluid is in the space that the part and the lids close. The part is the wall.
- Volume of the body. The opening faces have no holes. The body is a model of the fluid. Its surface is the wall.
Openings
Set the openings in Study Settings > Openings:
- In Inlet faces, select the faces where the fluid comes in.
- Select the Inlet condition and enter its value:
- Speed: the speed in m/s.
- Mass flow: the mass flow in kg/s.
- Pressure: the gauge pressure in Pa.
- In Outlet faces, select the faces where the fluid goes out.
- Enter the Outlet pressure (Pa).
The panel sets one inlet group and one outlet group. A study can have up to 32 openings.
Grid size
The Mesh Settings presets give 8 (Coarse), 12 (Medium) or 20 (Fine) cells across the smallest opening. With fewer than 6 cells across, the result has a resolution warning. If a custom cell size is too large to show the passage, the study does not run, and the message tells why.
A laminar flow at a higher Reynolds number needs more cells for an accurate pressure drop. With too few cells, the Solution row of a converged run shows Grid too coarse for accurate results. Use these numbers as an estimate only.
Internal flow results
- The Pressure drop from the inlets to the outlets, in Pa.
- The Mass flow (kg/s) and the Volume flow (m³/s) through the inlets.
- For each opening: the mass flow, the volume flow and the mean pressure.
- The Mass balance error. The panel shows OK at 1 % or less, and a warning above 1 %.
All the internal flow benchmarks are laminar. Turbulent internal flow is not validated.
Heat transfer with flow
A flow study can calculate forced-convection heat transfer. The heat is a passive value in the flow. The flow does not include buoyancy.
- Click Study Settings.
- Turn on Calculate the heat transfer.
- Set the inlet temperature (Inlet at). The default is 20 °C.
- Select the condition of the Part walls: Temperature (the default is 50 °C), Heat flux or Adiabatic.
- Click OK, and run the study.
The results panel then shows the heat values, for example the Heat into the fluid, the Outlet bulk temperature, the Mean heat transfer coefficient and the Nusselt number.
A thermal study of the same part can use the wall heat of the flow study with the Heat From Flow condition. This condition is not available in an assembly. Refer to Simulation setup.
Flow results
| Result | What it shows |
|---|---|
| Flow Pressure | The static pressure (gauge) on the slice. |
| Flow Speed | The flow speed on the slice. |
| Pressure Coefficient | The pressure coefficient on the part. |
| Wall Pressure | The static pressure (gauge) on the part. |
| Wall Shear | The wall shear stress on the part. |
| Fluid Temperature | The fluid temperature on the slice, with heat transfer. |
| Wall Temperature | The wall temperature on the part, with heat transfer. |
| Heat Transfer Coefficient | The heat transfer coefficient on the part, with heat transfer. |
| Wall Y+ | The y+ of the first cells at the walls. With a wall model, y+ from 30 to 300 is correct. Without a wall model, y+ less than 5 is correct. |
| Wind Tunnel | The wind tunnel view of an external flow. |
Good practice
- Put at least 32 finest cells across the diameter of a sphere. Put at least 128 finest cells along the chord of a wing section.
- If the mean y+ is more than about 300, the drag is too high. Make the grid finer.
- Compare lift values only between runs with the same refinement levels and the same refinement box.
- Use the flow results as indicative values above a Reynolds number of about 1,000.
For the benchmark data, refer to Validation.