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

Momentum source term UDF to simulate anisotropic porous media

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2021, 08:34
Post Momentum source term UDF to simulate anisotropic porous media
  #1
New Member
 
Ross
Join Date: Jun 2021
Posts: 2
Rep Power: 0
Roscoe341 is on a distinguished road
Hi. I am trying to simulate the flow of air though a packed rock bed in ANSYS Fluent. The flow resistance in the bed is anisotropic. As far as i understand the best way to simulate an anisotrpic porous media is by adding a momentum source term to the standard fluid flow equations. I have the resistance tensor but am not sure how to implement it in Ansys with a UDF. My resistance tensor is below.

𝑆𝑥 = 𝜇𝑢𝑥𝐷𝑥𝑥 + 𝜇𝑢𝑦𝐷𝑥𝑦 + 𝜇𝑢𝑧𝐷𝑥𝑧 + 1 2 𝜌|𝑢|{𝑢𝑥𝐶𝑥𝑥 + 𝑢𝑦𝐶𝑥𝑦 + 𝑢𝑧𝐶𝑥𝑧}

𝑆𝑦 = 𝜇𝑢𝑥𝐷𝑦𝑥 + 𝜇𝑢𝑦𝐷𝑦𝑦 + 𝜇𝑢𝑧𝐷𝑦𝑧 + 1 2 𝜌|𝑢|{𝑢𝑥𝐶𝑥𝑦 + 𝑢𝑦𝐶𝑦𝑦 + 𝑢𝑧𝐶𝑦𝑧}

𝑆𝑧 = 𝜇𝑢𝑥𝐷𝑧𝑥 + 𝜇𝑢𝑦𝐷𝑧𝑦 + 𝜇𝑢𝑧𝐷𝑧𝑧 + 1 2 𝜌|𝑢|{𝑢𝑥𝐶𝑧𝑥 + 𝑢𝑦𝐶𝑧𝑦 + 𝑢𝑧𝐶𝑧𝑧 }

I also have the values for the D and C matrix.

Any assistance in setting up this problem would be much appreciated.

Thanks
Roscoe341 is offline   Reply With Quote

Old   August 30, 2021, 01:16
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,255
Rep Power: 32
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may try to use this link to make your code
UDF - Anisotropic Conductivity

to make define momentum source you need define_source macro, not DEFINE_ANISOTROPIC_CONDUCTIVITY
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
ansys fluent, momentum sources, porous media, udf and programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to add Source term (2) for PYROLYSIS - reactingOneDim Kummi OpenFOAM 10 April 12, 2021 22:11
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 06:46.