


{"id":453258,"date":"2026-02-25T13:27:13","date_gmt":"2026-02-25T13:27:13","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/floating-point-error-amg-divergence\/"},"modified":"2026-02-25T13:27:13","modified_gmt":"2026-02-25T13:27:13","slug":"floating-point-error-amg-divergence","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/floating-point-error-amg-divergence\/","title":{"rendered":"Floating point error \/ AMG divergence"},"content":{"rendered":"<p>&lt;p data-start=&#8221;220&#8243; data-end=&#8221;603&#8243;&gt;I 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 &times; 10 cells), cavity length 51 mm (and height 3.81 mm &#8211; 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).&lt;\/p&gt;&lt;p data-start=&#8221;851&#8243; data-end=&#8221;860&#8243;&gt;Behavior:&lt;\/p&gt;&lt;ul data-start=&#8221;861&#8243; data-end=&#8221;1350&#8243;&gt;&lt;li data-start=&#8221;861&#8243; data-end=&#8221;1044&#8243;&gt;&lt;p data-start=&#8221;863&#8243; data-end=&#8221;1044&#8243;&gt;When viscous model = Inviscid, the simulation runs without crashing (pressure decreases as expected for expansion &amp; temperature and density barely change due to low Mach number).&lt;\/p&gt;<\/li>\n<p>&lt;li data-start=&#8221;1045&#8243; data-end=&#8221;1350&#8243;&gt;&lt;p data-start=&#8221;1047&#8243; data-end=&#8221;1189&#8243;&gt;When switching to viscous model = Laminar, the solver crashes immediately with a fl&lt;span style=&#8221;text-decoration: underline;&#8221;&gt;oating-point exception \/ AMG divergence&lt;\/span&gt;, even when:&lt;\/p&gt;&lt;ul data-start=&#8221;1192&#8243; data-end=&#8221;1350&#8243;&gt;&lt;li data-start=&#8221;1192&#8243; data-end=&#8221;1231&#8243;&gt;&lt;p data-start=&#8221;1194&#8243; data-end=&#8221;1231&#8243;&gt;piston velocity = 0 (no mesh motion),&lt;\/p&gt;<\/li>\n<p>&lt;li data-start=&#8221;1234&#8243; data-end=&#8221;1280&#8243;&gt;&lt;p data-start=&#8221;1236&#8243; data-end=&#8221;1280&#8243;&gt;walls are tested with both slip and no-slip,&lt;\/p&gt;<\/li>\n<p>&lt;li data-start=&#8221;1317&#8243; data-end=&#8221;1350&#8243;&gt;&lt;p data-start=&#8221;1319&#8243; data-end=&#8221;1350&#8243;&gt;very small time steps are used&lt;\/p&gt;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&lt;p data-start=&#8221;1319&#8243; data-end=&#8221;1350&#8243;&gt;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?&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-453258","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27818"],"_bbp_topic_id":["453258"],"_bbp_subscription":["637056","199"],"_bbp_author_ip":["193.190.207.1"],"_bbp_last_reply_id":["453311"],"_bbp_last_active_id":["453311"],"_bbp_last_active_time":["2026-02-26 09:43:38"],"_bbp_reply_count":["7"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["637056","199"],"_btv_view_count":["142"],"_bbp_topic_status":["unanswered"]},"test":"afroditi-chalkopouloumil-be"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/453258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/453258\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=453258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}