SHOPPING CART
SHOPPING CART
Steady-state flow simulation of a gas mixer with Flow Freezing off, showing oxygen mass fraction from 0.36 to 0.78 at the outlet and a range of 0.42.

Speeding Up Steady-State Flow Simulations with Flow Freezing

Table of Contents

A steady-state flow simulation can waste time recalculating flow that has already settled. Flow Freezing in SOLIDWORKS Flow Simulation stops recalculating that settled flow so the solver can focus on the slower part — here, two gases mixing. In this test, freezing too early (at 50 iterations) was fastest but gave an inaccurate mixing result. Freezing at 100 iterations was 36% faster and stayed within 5% of the baseline. The lesson: Let the flow develop before you freeze it.

Why Steady-State Mixing Simulations Take So Long

In a mixing simulation, it may take much longer to determine the mixture concentration than it does for the flow field to become established. Recalculating the flow after that point can add significant calculation time without providing much additional information.

Flow Freezing in SOLIDWORKS Flow Simulation can help in these situations. By freezing the calculations for the pressure and velocity field, the solver can continue focusing on slower processes such as diffusion. In this example, the analysis solved 36% faster with less than 5% deviation from the baseline result.

Background: The Gas Mixer Study

In the following study, a gas mixer is used to investigate how effectively two gases mix. Nitrogen and oxygen enter the mixer through separate inlets, combine as they travel through the mixer, and exit through a single outlet.

The goal is to determine how uniformly the gases are mixed at the outlet. The study also evaluates how Flow Freezing affects solve time and accuracy.

Gas mixer model with nitrogen and oxygen inlets at the bottom, three perforated mixing plates, and a mixed outlet at the top.
Figure 1: Oxygen and nitrogen enter from the inlets at the bottom, flow through the perforated mixing plates, and then exit at the top as a mixture.

Simulation Setup

The gas mixer has two separate inlets. Oxygen enters at a mass flow rate of 0.03 kg/s, and nitrogen enters at 0.02 kg/s. The two streams mix as they travel through the mixer before leaving through the single outlet.

The objective of the simulation is to evaluate the quality of the mixing at the outlet. If the gases were perfectly mixed, the oxygen mass fraction would be 0.60 at every point across the outlet. In this mixer, however, some areas may contain more oxygen than others.

To quantify this variation with a single value, the oxygen mass fraction range is used. The range is the difference between the highest and lowest oxygen mass fraction at the outlet. A smaller range indicates a more uniform mixture, with an ideal range of 0 representing a perfectly mixed stream (the same gas concentration everywhere on the outlet face).

Gas mixer boundary conditions: nitrogen inlet at 0.02 kg/s, oxygen inlet at 0.03 kg/s, and outlet at 0.05 kg/s.
Figure 2: The mass flow rates of both the oxygen and nitrogen gas streams are held constant. The outlet mass flow rate is therefore known through conservation of mass.

Flow Freezing Off: The Baseline

The first simulation was performed with Flow Freezing disabled, providing a baseline for comparison.

The calculation required 308 seconds of CPU time. The oxygen mass fraction at the outlet varied from 0.36 to 0.78, giving an oxygen mass fraction range of 0.42. The other two simulations are compared against this result.

Steady-state flow simulation of the gas mixer with Flow Freezing off, showing an oxygen mass fraction range of 0.42 at the outlet.
Figure 3: The result of the simulation with Flow Freezing disabled. The study took 308 seconds and calculated a mass fraction range of 0.42.

Flow Freezing Starting at 50 Iterations

The second simulation used Permanent Flow Freezing, with freezing starting at 50 iterations.

SOLIDWORKS Flow Simulation Calculation Control Options dialog on the Solving tab, with the Flow Freezing strategy set to Permanent starting at 50 iterations.
Figure 4: To turn on Flow Freezing, go to Calculation Control Options > Solving.

The calculation required 133 seconds of CPU time, making it approximately 57% faster than the simulation without Flow Freezing. The oxygen mass fraction range, however, changed from 0.42 in the baseline case to 0.63, a 50% deviation.

Any significant difference in the oxygen mass fraction range compared with the baseline indicates that the flow may have been frozen before it had developed sufficiently.

Gas mixer result with Flow Freezing starting at 50 iterations, showing an oxygen mass fraction range of 0.63 at the outlet.
Figure 5: The result of the simulation with Flow Freezing starting at 50 iterations. The study took 133 seconds and calculated a mass fraction range of 0.63.

Flow Freezing Starting at 100 Iterations

The third simulation also used Permanent Flow Freezing, but the flow was allowed to develop for 100 iterations. The calculation required 198 seconds of CPU time, making it approximately 36% faster than the 308-second baseline.

The oxygen mass fraction range was 0.40, compared with 0.42 in the baseline case — a deviation of less than 5%. This suggests that allowing the flow field more time to develop before freezing can provide a better balance between calculation time and maintaining the baseline mixing result.

Gas mixer result with Flow Freezing starting at 100 iterations, showing an oxygen mass fraction range of 0.40 at the outlet.
Figure 6: The result of the simulation with Flow Freezing starting at 100 iterations. The study took 198 seconds and calculated a mass fraction range of 0.40.

What About Periodic Flow Freezing?

Permanent Flow Freezing works well when the velocity field can remain fixed. In some cases, however, the velocity field still needs to respond to changes in temperature or species concentration, as in natural convection.

In these situations, Periodic Flow Freezing can be used. Instead of freezing the flow permanently, Periodic Flow Freezing recalculates the velocity field at regular intervals. The user specifies the number of iterations for which the flow is frozen and the number of iterations for which it is recalculated. This can be useful when the flow changes more quickly than the temperature or concentration field but still needs to be updated periodically.

Conclusion: Let the Flow Develop Before Freezing It

The gas mixer example demonstrates how Flow Freezing can reduce the calculation time of a steady-state mixing simulation.

Without Flow Freezing, the baseline calculation required 308 seconds. Starting Permanent Flow Freezing at 50 iterations reduced the CPU time to 133 seconds, but the resulting oxygen mass fraction range was significantly different from the baseline. Starting Flow Freezing at 100 iterations required 198 seconds but produced results much closer to the baseline study.

Bar chart of CPU time for Flow Freezing off, Flow Freezing at 50 iterations, and Flow Freezing at 100 iterations.
Figure 7: The runtimes are shown here. Disabling Flow Freezing resulted in the longest runtime of the three studies, while starting Flow Freezing at 50 iterations resulted in the shortest runtime.

The results show that there is a balance between calculation time and when the flow is frozen. Freezing too early may save more time, but the flow field may not yet be sufficiently developed.

When using Flow Freezing, it is therefore important to allow the flow to develop before freezing it. Finding the appropriate starting point may require testing different values for the specific simulation.

For steady-state mixing problems where the flow develops faster than the concentration field, Flow Freezing can provide a useful way to reduce calculation time while still allowing the slower mixing process to reach its final state.

Bar chart of oxygen mass fraction range for Flow Freezing off, Flow Freezing at 50 iterations, and Flow Freezing at 100 iterations.
Figure 8: Even though starting Flow Freezing at 50 iterations resulted in the shortest runtime, the study produced results much different from the baseline study. Starting Flow Freezing at 100 iterations produced results much closer to the baseline study while also shaving down runtime.

Flow Freezing works in transient studies, too. For a transient example, see Speeding Up Transient Simulations with Flow Freezing, which applies Permanent Flow Freezing to a hammer cooling study.

Have questions about using Flow Freezing in your own simulations? Contact us to talk with Hawk Ridge Systems.

Frequently Asked Questions

What is Flow Freezing in SOLIDWORKS Flow Simulation?

Flow Freezing freezes the calculations for the pressure and velocity field once the flow has developed, so the solver can continue focusing on slower processes such as diffusion. It helps when the flow field becomes established much sooner than the mixture concentration.

How much time did Flow Freezing save in the gas mixer example?

The baseline study without Flow Freezing required 308 seconds of CPU time. Permanent Flow Freezing starting at 50 iterations required 133 seconds, approximately 57% faster, and starting at 100 iterations required 198 seconds, approximately 36% faster.

Can freezing the flow too early affect accuracy?

Yes. Starting Flow Freezing at 50 iterations changed the oxygen mass fraction range from 0.42 in the baseline case to 0.63, a 50% deviation. Starting at 100 iterations gave a range of 0.40, less than 5% deviation. This suggests that giving the flow more time to develop before freezing it provides a better balance between calculation time and accuracy.

When should Flow Freezing start?

Allow the flow to develop before freezing it. Freezing too early may save more time, but the flow field may not yet be sufficiently developed. Finding the appropriate starting point may require testing different values for the specific simulation.

Where do you turn on Flow Freezing?

Go to Calculation Control Options > Solving. In the gas mixer example, the freezing strategy was set to Permanent, with freezing starting at 50 or 100 iterations.

When is Periodic Flow Freezing a better choice?

Periodic Flow Freezing is useful when the velocity field still needs to respond to changes in temperature or species concentration, as in natural convection. It recalculates the velocity field at regular intervals, and the user specifies the number of iterations for which the flow is frozen and the number of iterations for which it is recalculated.

Keep Learning

Picture of Kenny Truong

Kenny Truong

Kenny Truong is an Applications Engineer based out of our Brooklyn Park, MN office. He comes from a background of engineering at a local startup and student teaching at the University of Minnesota. He specializes in SOLIDWORKS 3D modeling.

Get a Price Match

Thank you for submitting your quote! A confirmation email is on its way. Please check your spam folder if you do not receive it.

While you are waiting, check out our Resource Center or read our Blog!

Success

Register Now

Thank you for registering! A confirmation email is on its way. Please check your spam folder if you did not receive one. See you soon!

While you are waiting, check out our Resource Center or read our Blog!

success

Register Now

Thank you for registering! A confirmation email is on its way. Please check your spam folder if you did not receive one. See you soon!

While you are waiting, check out our Resource Center or read our Blog!

success

Register Now

Thank you for registering! A confirmation email is on its way. Please check your spam folder if you did not receive one. See you soon!

While you are waiting, check out our Resource Center or read our Blog!

success

Get Your Download Today!

Thank you for your download! We've sent your download to the email address you provided. Please check your spam or junk folder if you don't receive it. It may take a few minutes to arrive.

success