-
-
June 22, 2023 at 4:01 pmBen.McCuenSubscriber
Shown below is contour plot of the mole fraction of a gas traveling from left to right.Â
I am attempting to simulate the gas in question permeating into the circular holes (gas 1). A second gas is also permeating out on a 1:1 molar basis, 'swapping' with the first gas (gas 2). 3 user defined functions have been made to mimic this behavior. One handles gas 1 permeating into the circles, the second handles gas 2 permeating out from the circles and the third is applied to the mass source term to handle the difference in molecular masses.Â
I have run this simulation numerous times and get reasonable results until my fluid flows beyond my last row of circles. Both gas 1 and gas 2 sharply decrease at this point even though there is no surface that has the udf applied to it. I created multiple vertical planes at various points along the flow and used "Surface Report - Mass Weighted Average" to find mass percent’s of both gas 1 and gas 2.Â
I would appreciate any guidance on what could be causing my issue.Â
Thank YouÂ
-
June 23, 2023 at 10:55 amRobForum Moderator
What are the backflow conditions and are you seeing any warnings?
-
June 23, 2023 at 1:20 pmBen.McCuenSubscriber
-
- The topic ‘User Defined Function not working as Intended’ is closed to new replies.
-
416
-
187
-
167
-
156
-
140
© 2024 Copyright ANSYS, Inc. All rights reserved.