Skip to main content

External Flow

In this tutorial you simulate the airflow around a car driving on the road. You set the fluid box and the wind speed, run the case, read velocity, turbulence, and pressure in the results, and finish with the drag and lift numbers in the report.

Duration: 15 min. Sample model: a prepared car body whose surface is already wrapped, so it is ready to mesh. A new project lists it as Car.stl. The project in the figures is an earlier one and lists it as car_cfd_healed_wrap.

External Flow card preview on the Tutorials page

How the tutorial works​

Open Tutorials in the dashboard and start External Flow. A guide card walks you through the stages Geometry, Model, Physics, Solve, Results, and Report.

  • A page's tasks tick themselves off when you do them. Next unlocks once all of them are done.
  • Only the controls the current task needs respond to clicks.
  • Click a task to see where it is on screen.
A tutorial Run opens a prepared result

Run Simulation in a tutorial submits no job. After about 3 seconds it opens a result computed in advance with these same settings. In your own projects, Run creates the mesh and solves the flow, and the values follow your inputs.

Geometry​

Geometry Panel​

The Geometry panel holds the 3D model. Here you can look at its parts, show or hide them, and enter information about the geometry.

  1. Change Model Visibility: toggle the eye icon to hide the model, then show it again.
  2. Try Rotating: drag in the 3D viewport to rotate the model.
  3. Click Next.

Geometry Panel page with the car body in the viewport

Model​

Fluid Box Size​

The fluid domain sets the size of the region the simulation runs in. Too small a box distorts the result. Too big a box only adds run time.

  1. Interact with the Canvas: hover over the box until its handles appear, then drag one to see the size change. A box you resize becomes your own, under Custom Box Dimensions.
  2. Choose a Fluid Box Size: under Fluid Box Size, choose Medium, the size recommended for an uploaded model. Small is the fastest and Large is the most accurate.
  3. Click Next.

With Medium, the Domain Size reads 58.454 × 28.998 × 28.232 m.

Fluid Box Size page with the Medium box around the car

To size the box by numbers, open Custom Box Dimensions, choose Center, Size or Min, Max, and edit the X, Y, and Z fields.

Fluid Properties​

There is nothing to change on this page. The model is a car, so Air stays selected. Look over the values and click Next. In your own project you can switch to the fluid you need, such as Water.

Fluid Properties section with Air selected

Physics​

Physics Panel​

We simulate a car driving forward. In the simulation the car stays still and the air moves instead, and the effect on the car is the same.

  1. Set the Wind Speed: in Wind Speed, type 15 and press Enter. That is 15 m/s, about 54 km/h, flowing straight at the front of the car.
  2. Leave Angle of Attack at its default 0°. It tilts the oncoming air up or down, and a car meets the air level.
  3. Click Next.

Physics Panel page with Wind Speed at 15 m/s and Angle of Attack at 0

Solve​

Solve Panel · Accuracy​

Accuracy controls how finely the mesh divides the space into cells. Higher levels take more time and credits. Mesh Settings stays on Auto · accuracy-based.

  1. Set Accuracy to 4: move the Accuracy slider to 4, a good balance of precision and cost for this case.
  2. Click Next.

Accuracy slider set to 4

Solve Panel · Acceleration​

Simulation Acceleration adds computing power. The run finishes sooner but uses credits faster. It changes only the speed, not the quality of the results.

  1. Set Simulation Acceleration to 8x: move the slider to 8x.
  2. Click Next.

Guide card asking for Simulation Acceleration 8x

Run Simulation​

Click Run Simulation at the bottom of the Solve panel. If geometry data is still being prepared, wait for the button to become available.

Run Simulation page

Simulation Process​

Wait for the Simulation to Finish. In a tutorial this takes about 3 seconds, and then the prepared result opens by itself.

In your own projects the run has two phases. Mesh splits the simulation space into small cells, and Analysis calculates the flow on them. Click Residuals in the status bar to open the chart: residuals are the calculation error still left, and when the lines go down and flatten, the solution has converged.

Simulation Process page

Results​

Your Results​

The Results panel opens on the velocity magnitude, shown over the whole fluid domain. The simulation card sums up the run: Wind Speed 15 m/s, AoA 0°, Flow Dir +X, Accuracy 4, Accel 8x. Click Next.

Your Results page with velocity magnitude over the fluid domain

Result Fields​

Each item in the side panel is a field. Clicking one colours the result by its values, and the colour bar shows which colour means which value.

  1. Check the X Component of Velocity: in Result Fields, click the X component on the Velocity row, because the flow direction is X.
  2. Click Next.

The list also offers Pressure, Turbulence (k), Turbulence (μₜ), Turbulence (ε), Advanced Vorticity, Vorticity, and Wall Shear Stress.

Result Fields with the X component of Velocity selected

Cut Section​

The Cut tool slices through the result, so you can see the values inside the flow. Saving a cut keeps it under Derived Results, where you can view it together with other results.

  1. Press the Cut Tool: under Visualization Tools, press Cut (Section Slice) in the Section View row. Its settings open beside the panel.
  2. Cut Along Y: choose Y as the axis, to see how the results are distributed along the flow direction.
  3. Click Save Section: this saves the cut under Derived Results as Cut Y 0.50.
  4. Close the Cut Settings with ✕: closing them turns the tool off. The adjusting plane goes away and only the saved cut is left.
  5. Click Next.

Cut settings open with axis Y

Camera View​

Set the Camera View to -Y: open Camera View in the toolbar above the viewport and choose -Y, so you face the cut straight on. Then click Next.

Camera View menu open in the toolbar

View the Cut Together with the Body​

A fluid result comes in two ways. Result shows everything, including the fluid around the car. Body (Surface) shows only the surface of your geometry. A derived result, such as your cut, can be selected as well.

  1. Click Body (Surface): the fluid domain goes away and only the car surface stays.
  2. Click the Cut: click the cut's name under Derived Results. The cut is now selected, so the next field you choose shows on it.
  3. Click Next.

Car surface together with the saved cut

View Turbulence on the Cut​

Fields apply to whatever is selected.

  1. Click Turbulence (μₜ): the cut shows how the flow changes as it passes the car, and the turbulent wake it leaves behind.
  2. Click Next.

Turbulence on the cut showing the wake behind the car

Prepare the Flow View​

Before moving on, make the body the active result.

  1. Hide the Cut: click the eye on the cut's row.
  2. Click Body (Surface) Again: the body becomes the active result and the view turns to the Z direction.
  3. Click Next.

Body surface selected and the cut hidden

Flow and Pressure Distribution​

When the air meets the car, it pushes on the surface. That push is pressure. It is highest on the nose, where the air runs into the car head-on, and drops as the air speeds up over the bonnet and roof.

  1. Click Pressure: the view turns to the side of the car. Compare the colours on the front with those over the roof. Scroll the mouse wheel over the viewport to zoom in.
  2. Click Next.

Pressure on the car body seen from the side

Streamline Animation​

Streamlines follow the path of the air, so you can see how the flow moves around the car.

  1. Turn On the Streamline Tool: under Visualization Tools, switch on Streamline. Its settings open right away.
  2. Play the Animation: choose Lines or Arrows, then press Play in the Animation row.
  3. Click Next.

In your own projects you can also set the vector field, position, thickness, and maximum length here.

Streamline settings beside the car

Report​

Open the Report: a report is generated for every simulation and collects the key numbers in one place. Click Go to Report at the bottom of the panel.

Report page of the guide card

Report​

Click Next to step through the sections. The last page has Finish instead of Next, and pressing it completes the tutorial.

Core Performance​

Drag holds the car back as it moves forward. The lower it is, the less energy the car needs at speed. Lift pushes the car up off the road and takes grip away from the tyres, so a road car wants little of it.

ValueResult
Lift Coefficient (Cl)0.067
Drag Coefficient (Cd)0.294
Lift-to-Drag Ratio (L/D)0.2280
Side Force Coefficient (Cs)0.0198

A drag coefficient of about 0.29 is in the usual range of a streamlined road car, and the lift is close to zero.

Core Performance Metrics section of the report

Conditions​

This section lists the conditions the result was calculated under. The Reynolds number tells you whether the flow is smooth or turbulent.

Flow CharacteristicsSettings
Angle of Attack0°Characteristic Length4.496 m
Sideslip0°Frontal Reference Area (bounding box)2.53 m²
Fluid Domain TypeWind TunnelFluid Density1.225 kg/m³
Flow Direction+XDynamic Viscosity1.789 × 10⁻⁵ Pa·s
Lift Direction+Z
Velocity15 m/s
Mach Number0.0437
Reynolds Number4.618 × 10⁶

Flow Insights reads: turbulent flow, and the flow is incompressible.

Conditions section of the report

Force Distribution​

Pressure force comes from the air pushing on the surface. Viscous force comes from the air rubbing along the surface, like friction. The bar charts show, at the final iteration (1000), in which direction each force and moment is highest.

Final forces and moments distribution

Convergence Graph​

These graphs show how the calculated forces and moments changed while the simulation ran. The values move a lot at the start, and in a good simulation they settle so the line becomes almost flat. Here the drag has settled. The lift still drifts a little at the end, and a longer run would pin it down more closely.

Press Finish to complete the tutorial.

Iteration history graphs of the forces and moments


Need Assistance or Have Questions?

Frequently Asked Questions: FAQ Link

Support Inquiries: support@everysim.io