December 1, 2022 at 1:02 pmImam TantowiSubscriber
Hello every one.
Sorry take your time. here, I want to request your help to solving my simulation problem.
Now, I am simulating cooling process of grain. the fluid medium of cooling is moist air. because I want to know temperatur and moisture content of grain, I initiate to model this problem with eulerian multhiphase in ANSYS Fluent. I model the moist air as mixture of air and water vapor, and grain as mixture of dry grain dan water liquid. Because of that, mass transfer UDF has build to describe a moisture transfer phenomena. this is my UDF.
static real EMC(cell_t c, Thread *tu, int v) /*this function to know Equilibrium moisture content*/
real MMwl, R_bar;
MMwl=18.02; /*Molecular weight of water*/
static real masstf_coeff(cell_t c, Thread *tj,Thread *tu)
real Dv=2.6*pow(10,-5); /*mass diffusivity of air*/
real bul=0.6; /*roundness of grain */
real d=C_PHASE_DIAMETER(c,tj); /*grain's diameter*/
real NV_VEC(v), vel, Re, Sc,Ai,vof;
real bul=0.6; /*kebulatan*/
real d=C_PHASE_DIAMETER(c,jg); /*Grain diameter*/
real vof=C_VOF(c,jg); /*volume fraction of grain*/
Ai=6*vof/(d*bul); /*interfacial area*/
the compiling procces of code is success. but when I run the calculation. Floating point is happen. there is any one know what the problem?.
December 1, 2022 at 1:24 pmDrAmineAnsys Employee
Even if UDF are compiled succesfully this does not mean that the Solver won't crash. It will crash if you try accessing data which is not valid, which is not availalable or you want to access data but in the wrong place. Actually I do not debug UDF's but please start to check if the specfication of the thread index and threads in your mass transfer routine are correct.
December 2, 2022 at 12:51 amImam TantowiSubscriber
Thanks for your answer sir. Actually, I am newbie for using udf. I dont understand about what's the problem make crash happen. I have check the thread index, and I think it is OK. So, I write the message to detect this code, and yes this UDF is the main problem that make floating point. When starting to run the calculation, the program try to compute again and again, but divergen. I have no idea to solve this. I really dont know.
Do DrAmine have some suggestion to me for solving this problem?
December 2, 2022 at 12:57 amImam TantowiSubscriber
before using udf, I have tried using rault's law model for species mass tranfer, and it's working. So, I wanna try to set actual model that I need by using udf for my last undergraduated project .
- You must be logged in to reply to this topic.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2023 Copyright ANSYS, Inc. All rights reserved.