-
-
February 25, 2026 at 1:27 pm
afroditi.chalkopoulou
SubscriberI am simulating a 2D closed cavity with a moving wall (similar to a piston) using ANSYS Fluent (2023 R2) and dynamic mesh with layering. The mesh is structured (100 × 10 cells), cavity length 51 mm (and height 3.81 mm - axisymmetric, transient and pressure-based solver). The piston is the right wall, moved using DEFINE_CG_MOTION, while the fluid cell zone is deforming. Top, bottom, and left walls are stationary (I included top and bottom in the dynamic mesh zones as deforming instead of fluid_region, which seems to have worked correctly).
Behavior:
When viscous model = Inviscid, the simulation runs without crashing (pressure decreases as expected for expansion & temperature and density barely change due to low Mach number).
When switching to viscous model = Laminar, the solver crashes immediately with a floating-point exception / AMG divergence, even when:
piston velocity = 0 (no mesh motion),
walls are tested with both slip and no-slip,
very small time steps are used
What could cause laminar + ideal gas + energy to crash immediately in a static or quasi-static case when inviscid works, and what should be checked regarding the parameters, mesh or something else? Could it be the dynamic mesh motion?
-
February 25, 2026 at 1:40 pm
Rob
Forum ModeratorPossibly, what conditions did you initialise the domain at? This should be in the Fluids channel.
-
February 25, 2026 at 1:58 pm
afroditi.chalkopoulou
SubscriberI initialized the domain using standard initialization.
Initial conditions are:Velocity = 0 m/s
Temperature = 300 K
Gauge pressure = 0 Pa
Material: air (density set to ideal gas)
Energy equation on
Operating pressure is set to 101325 Pa.
I have also tested piston velocity = 0 m/s (static case), and the laminar model still crashes immediately, while the inviscid model runs.
-
February 25, 2026 at 2:05 pm
Rob
Forum ModeratorInitialise with a very low velocity, eg 0.0001 m/s The above should work, but if everything is zero you risk a numerical oddity in the equations. I assume the mesh is OK?
-
February 25, 2026 at 2:13 pm
afroditi.chalkopoulou
SubscriberYes, according to mesh metrics the mesh quality is really good.
Even with the addition of the very low velocity it keeps breaking immediately.
-
February 25, 2026 at 2:22 pm
Rob
Forum ModeratorPlease can you post some images? Mesh, materials settings as a start.
-
February 25, 2026 at 2:42 pm
-
February 26, 2026 at 9:43 am
Rob
Forum ModeratorTry turning off the MDM and see what happens. When trouble shooting we turn things off until it works and turn things back on in a different order until it breaks. Then focus on whatever that was.
-
- You must be logged in to reply to this topic.
-
5274
-
1859
-
1403
-
1257
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.





