CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Non-equilibrium model in porous media (https://www.cfd-online.com/Forums/fluent-udf/242104-non-equilibrium-model-porous-media.html)

ahmadimasoud April 5, 2022 13:42

Non-equilibrium model in porous media
 
Hello all,

I am trying to simulate a water vapor adsorption process by a solid desiccant in Fluent 2021 R1.

The geometry is a simple 2-D channel. It has one entrance region (non-porous) and one exit region (non-porous) and the porous domain of solid desiccant between them.

As you know, Fluent creates a new solid zone when the non-equilibrium model is activated.

Now, my question is:

For setting a source term in the species transport equation of the fluid region of the porous domain, I need to have access to the solid zone temperature. But since the UDF for the source term is hooked to the fluid region, it just loops in the threads which are for the fluid region and I do not know how to access the temperature of the solid threads (T=C_T(c,t) is the fluid temperature and not the solid temperature).

I appreciate it if you could help me find the solution.

AlexanderZ April 5, 2022 22:21

as you told new solid zone is created, so It must have thread ID, you may try to access solid zone by its ID

ahmadimasoud April 6, 2022 10:45

Quote:

Originally Posted by AlexanderZ (Post 825585)
as you told new solid zone is created, so It must have thread ID, you may try to access solid zone by its ID

Thank you for your reply.

The problem is: when the source term is hooked to the fluid region of the domain it just have the "fluid region" thread ID and when I try to access other threads, it shows and error and close Fluent.

Hasan_Najafi June 16, 2022 02:50

Quote:

Originally Posted by ahmadimasoud (Post 825664)
Thank you for your reply.

The problem is: when the source term is hooked to the fluid region of the domain it just have the "fluid region" thread ID and when I try to access other threads, it shows and error and close Fluent.

Since you have source term UDF, I guess you can access to the solid threads as AlexanderZ said.

I have a question here, when you generated the solid zone, what did you do with the boundary of your solid zone. In my case, I have rectangular fluid and solid (porous) zone in the center and all four edge of them covered by solid zones. There is interface boundary betwen fluid zone in the center and solid zone around it. But, when the solid zone of porous is created by fluent, it has own boundaries. So, what boundary type should I chose for them?

Thanks

Selawe97 April 14, 2023 18:07

Same issue
 
Quote:

Originally Posted by Hasan_Najafi (Post 829892)
Since you have source term UDF, I guess you can access to the solid threads as AlexanderZ said.

I have a question here, when you generated the solid zone, what did you do with the boundary of your solid zone. In my case, I have rectangular fluid and solid (porous) zone in the center and all four edge of them covered by solid zones. There is interface boundary betwen fluid zone in the center and solid zone around it. But, when the solid zone of porous is created by fluent, it has own boundaries. So, what boundary type should I chose for them?

Thanks

I am also facing the same issue, I don't know which wall I should apply the boundary condition, for example, heat flux, should I apply it to the fluid wall or to the new solid wall, did you solve it?

thanks

Hasan_Najafi April 16, 2023 21:59

Quote:

Originally Posted by Selawe97 (Post 848207)
I am also facing the same issue, I don't know which wall I should apply the boundary condition, for example, heat flux, should I apply it to the fluid wall or to the new solid wall, did you solve it?

thanks

Hi, after validating my problem with experimental work, I realized that I should keep it as it was. I mean we do not have to select a specific boundary for that, because Ansys Fluent use this solid zone as a place to save the data for the solid zone (metal foam zone), and these two zones are connected with heat transfer which is located in two-equation local non-equilibrium thermal model. This is how I think it works.


All times are GMT -4. The time now is 15:55.