Tagged: udf
-
-
December 4, 2022 at 11:48 am
Imam Tantowi
SubscriberHello everyone,
Now, I am simulating a drying phenomena in cooling system. I model the grain using porous medium. because I want to know of solid porous, I set heat transfer in the porous medium as non-equilibrium. I also set UDS for moisture content of grain and humidity ratio in air. in solid zone, I want to calculate the moisture removal. But there is variable that solve in fluid domain that I want to use to calculate moisture removal. I think this problem can solved by using UDM. But, I dont know to transfer the UDM in fluid zone to using in solid zone. Does anyone know to solve this?
-
December 5, 2022 at 12:18 pm
DrAmine
Ansys EmployeeWhat do you want to model in the solid zone? Moisture diffusion through solid?
-
December 5, 2022 at 1:45 pm
Imam Tantowi
SubscriberYes. I want to model moisture diffusion through solid. Actually, the main goal in my simulation is knowing temperatur and moisture characteristic in solid domain.
-
-
December 5, 2022 at 1:41 pm
Imam Tantowi
SubscriberYes. I want to model moisture diffusion through solid. Actually, the main goal in my simulation is knowing temperatur and moisture characteristic in solid domain.
-
December 5, 2022 at 2:04 pm
DrAmine
Ansys EmployeeOkay so you need to solve UDS equations through solid zone.
-
December 5, 2022 at 2:16 pm
Imam Tantowi
SubscriberYes, DrAmine. I have done. Then, I want to model source term in my solid zone to model the moisture transfer from solid to fluid. but, for the calculation of source term, I need data on the ratio of humidity and air temperature which is in the fluid zone. I'm confused about how to call the variables in the fluid zone.
-
December 5, 2022 at 2:25 pm
Imam Tantowi
SubscriberAssuming I'm using UDM, I think I can solve this by setting up the UDM in the solid zone and the UDM in the fluid zone for the same variable, for example variable X. I'll calculate variable X in the fluid zone and then I'll store it in UDM1. then there is a process where I will set the UDM2 value (which incidentally is for the solid zone) to be the same as the UDM1 value. I think so. However, I'm confused about how. is it possible to do something like that? do you use define adjust, define on demand, or something like that? how to give a pointer to the fluid zone and solid zone which can show that it is indeed data in the same cell?
-
December 5, 2022 at 3:26 pm
DrAmine
Ansys EmployeeYou need to calculate that ratio only in the fluid cells and the upper most in the near wall cells. There you calculate the amount which needs to be adsrobed or desorbed. That rate of flux / flow rate, can be used now at the solid wall side to provide a flux for the UDS / Boundary Value for UDS / Volumetric Source Rate.
Is not an easy step which I can comment on this open platform.
-
December 5, 2022 at 3:36 pm
DrAmine
Ansys EmployeeThe other way you are describing might require some low level function to transfer variable in one domain to another domain: dual cell appraoch. I am not sure if something like that is available on the customer portal.
-
December 5, 2022 at 3:58 pm
Imam Tantowi
SubscriberOkey DrAmine, thank you for your answer. I will try what you suggested.
-
December 5, 2022 at 4:01 pm
DrAmine
Ansys EmployeeSuper.-
December 6, 2022 at 12:48 pm
Imam Tantowi
SubscriberHello DrAmine, sorry I have one more question. In UDF fluent,Can I do looping in inner of other looping. let's say I write sample code below.
/*....*/int zone1=1;int zone2=2;cell_t c1;cell_t c2;Thread *t1=Lookup_Thread(d,zone1);Thread *t2=Lookup_Thread(d,zone2);begin_c_loop(c1,t1){...begin_c_loop(c2,t2){...}end_c_loop(c1,tuatas)}end_c_loop(c,tjatas)/*.....*/is it possible to do that?
-
-
December 6, 2022 at 1:08 pm
DrAmine
Ansys EmployeeNothing against that but it can be very expensive. Why do you need that?
-
December 6, 2022 at 1:30 pm
Imam Tantowi
SubscriberI'm just thinking. Okay thanks for your answer. I think it can be used to transfer UDM value in one cell thread to another cell thread.
-
-
- 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.

Ansys Blog
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
-
2616
-
2098
-
1323
-
1108
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.