CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for Forchheimer and Brinkman Term

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Bruno Machado

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2016, 03:27
Post UDF for Forchheimer and Brinkman Term
  #1
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Hi there!

I am new to ANSYS Fluent and I wish to model porous media using Darcy-Brinkman-Forchheimer model. I've been given an understanding that Darcy and inertial term are present in Fluent and we need to write separate UDFs for Forchheimer and Brinkman terms.

Can anyone please help me in understanding how exactly can we model DBF equation and how to write that in UDF?

Thanks in advance!
Tempest is offline   Reply With Quote

Old   June 2, 2016, 07:05
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tempest View Post
Hi there!

I am new to ANSYS Fluent and I wish to model porous media using Darcy-Brinkman-Forchheimer model. I've been given an understanding that Darcy and inertial term are present in Fluent and we need to write separate UDFs for Forchheimer and Brinkman terms.

Can anyone please help me in understanding how exactly can we model DBF equation and how to write that in UDF?

Thanks in advance!
The porosity profile has to be implemented through the DEFINE_PROFILE macro. If you have to add a source term in the momentum equation to implement the model, it has to be done using DEFINE_SOURCE macro.
granzer and Tempest like this.
Bruno Machado is offline   Reply With Quote

Old   June 2, 2016, 07:18
Smile
  #3
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
The porosity profile has to be implemented through the DEFINE_PROFILE macro. If you have to add a source term in the momentum equation to implement the model, it has to be done using DEFINE_SOURCE macro.
Thank you Bruno for your quick and helpful response.

As I've already mentioned, I'm new to Fluent. Hence, the terms you are saying are familiar, but I am not conversant with the technique.

It would be very helpful if you could post a sample code or some reference where I can find the appropriate method of implementing DBF model using UDF.
Tempest is offline   Reply With Quote

Old   June 2, 2016, 10:12
Default
  #4
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tempest View Post
Thank you Bruno for your quick and helpful response.

As I've already mentioned, I'm new to Fluent. Hence, the terms you are saying are familiar, but I am not conversant with the technique.

It would be very helpful if you could post a sample code or some reference where I can find the appropriate method of implementing DBF model using UDF.
have a look at the UDF manual. there are plenty examples you could use as a base to your problem.
Bruno Machado is offline   Reply With Quote

Old   June 2, 2016, 10:20
Default
  #5
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
I have a problem linking the UDF with porous zone section. I am not able to find the hooking option there. If you know please tell me about this.
Tempest is offline   Reply With Quote

Old   June 2, 2016, 11:05
Default
  #6
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tempest View Post
I have a problem linking the UDF with porous zone section. I am not able to find the hooking option there. If you know please tell me about this.
in your fluid domain, you go to cell zone conditions, click 'edit', check 'porous zone' and the parameters necessary to simulate the porous reagion can be defined there.

if you are adding source terms to the momentum equation, in the same box click 'Source Terms' and define it there.
Bruno Machado is offline   Reply With Quote

Old   June 3, 2016, 02:43
Default
  #7
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Thank you.
So is it that the Brinkman term will be taken care of by the porosity added in NS equation and we need to add udf only for Darcy and Forchheimer term?
Tempest is offline   Reply With Quote

Old   June 3, 2016, 05:53
Default
  #8
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tempest View Post
Thank you.
So is it that the Brinkman term will be taken care of by the porosity added in NS equation and we need to add udf only for Darcy and Forchheimer term?
as you can see in the manual, the in built porosity model is defined by the Darcy's Law. Anything else has to be added through UDF.
Bruno Machado is offline   Reply With Quote

Old   June 3, 2016, 06:16
Default
  #9
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Thanks.

So is it that I need to explicitly add Brinkman and Forchheimer term?
Tempest is offline   Reply With Quote

Old   June 3, 2016, 06:28
Default
  #10
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tempest View Post
Thanks.

So is it that I need to explicitly add Brinkman and Forchheimer term?
As I said in the previous post...
Quote:
Anything else has to be added through UDF.
Bruno Machado is offline   Reply With Quote

Old   June 3, 2016, 06:30
Default
  #11
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Can you provide any sample code if you have any? Particularly for Brinkman term. I have written code for Fochheimer now.
Tempest is offline   Reply With Quote

Old   September 30, 2018, 04:53
Default How to add inertial parameter in Fluent
  #12
New Member
 
Arsalan Kheradmand
Join Date: Sep 2018
Posts: 3
Rep Power: 8
Arsalan_kh is on a distinguished road
Hello
Nowadays I'm just working on modeling the heat transfer in a channel using porous media with a constant wall temperature.
First of all, I'm validating an article before starting my project. In the article, it has mentioned the inertial parameter and inertial coefficient of porous media by these equations:
AE= (CE*H*e)/[(K)^(0.5)]
CE=(1.75*e)/[(150*(e^5))^(0.5)]

AE=inertial parameter
CE=inertial coefficient of porous media
H=channel height(m)
e=porosity
K=permeability of the porous medium (m^2)

The value of AE=16.5 and H=1 and e=0.75 and K=10^(-4) has been considered.

This is my question. How can I add inertial parameter in porous zone area in the fluent?

( Fluent -> Cell Zone Conditions -> porous zone area )

Thanks.
Arsalan_kh is offline   Reply With Quote

Reply

Tags
darcy, darcy-brinkmann, forchheimer, porous, udf and programming


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for thermal conductivity relation of nano fluid ngonbadipoor@yahoo.com Fluent UDF and Scheme Programming 29 April 1, 2017 04:02
How to add Brinkman Term to porousSimpleFoam solver? AmirBaqa1987 OpenFOAM Programming & Development 2 April 30, 2016 15:59
Brinkman term in UDF ? dotapro Fluent UDF and Scheme Programming 2 August 8, 2014 09:52
Porous Media UDF Trident FLUENT 0 July 9, 2008 01:37
Porous media Brinkman extension Andrew Hayes Main CFD Forum 6 July 28, 2006 12:01


All times are GMT -4. The time now is 01:50.