-
-
February 3, 2021 at 8:48 am
Anshul
SubscriberHi all,nI am working on methanol steam reforming using packed bed. nIn reference paper, they mentioned that effective mass diffusivity will:nD_eff= (porosity^tortousity)*Diffusion coefficientnnthis is valid for porous zone only, for other zone:nD_eff= Diffusion coefficientnnHow can we accomodate this in FLUENT as we can give diffusivity only once in mixture tab ?nIf there is any UDF format for this, please let me know.nPlease help me with this.nn -
February 3, 2021 at 11:51 pm
Surya Deb
Ansys EmployeeHello, nIf I understand your problem correctly, you want to modify or vary your mass diffusivity based on the cell zone conditions.nYou can achieve this by using DEFINE_DIFFUSIVITY UDF. Inside the UDF, you can use THREAD_ID() macro to fetch the integer id of the zone and then use it to check and modify your diffusivity values accordingly. nYou will find more information about DEFINE_DIFFUSIVITY UDF here:nnYou will find more information about the zone specific macros here:nnI hope this helps.nRegards,nSuryann -
February 4, 2021 at 5:24 am
Anshul
SubscriberHi!nThanks for the information.nI am not able to open up the links, please see if you can share some accessible links that I can use for making UDF.nnAnshuln -
February 4, 2021 at 5:33 pm
Rob
Ansys EmployeeClick on help in the software, that'll open up a browser. Then click on the link provided. Our documentation isn't public domain, but is available to licenced users of the software. n -
February 6, 2021 at 9:52 am
Anshul
SubscriberOkay, Thanks for the information. I'll do that.nAnshuln -
February 16, 2021 at 9:46 am
Anshul
SubscriberHi!nIn my case there are three zones as shown in the attached figure. Mass diffusivity value for ZONE 1 & ZONE 3 is 6.8e-05, whereas for ZONE 2 is 2.404e-05 m^2/s.nI have made the UDF as suggested here in forum. Please see if I am doing it correctly:nn#include udf.hn#define ZONE1_ID 8n#define ZONE2_ID 9n#define ZONE2_ID 10nDEFINE_DIFFUSIVITY(uds_diff, c, t, i)n{n real diff;n if(THREAD_ID(t) == ZONE2_ID)n diff = 2.404e-05;n elsen diff = 6.8e-05;n return diff;n}nnAnshuln
-
February 16, 2021 at 1:00 pm
Karthik R
AdministratorThis looks about right! Have you tried to compile and hook the UDF?nKarthikn -
February 16, 2021 at 6:23 pm
Anshul
SubscriberYes, I have used it and now my simulation is running by hooking up the UDF.nThanks for letting me know about it.nAnshuln
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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: Received signal SIGSEGV
-
5170
-
3275
-
2453
-
1308
-
970
© 2023 Copyright ANSYS, Inc. All rights reserved.