|
[Sponsors] |
Momentum source term UDF to simulate anisotropic porous media |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 27, 2021, 08:34 |
Momentum source term UDF to simulate anisotropic porous media
|
#1 |
New Member
Ross
Join Date: Jun 2021
Posts: 2
Rep Power: 0 |
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 |
|
August 30, 2021, 01:16 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
Tags |
ansys fluent, momentum sources, porous media, udf and programming |
|
|
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 |