CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Darcy-Forchheimer OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2023, 08:27
Default Darcy-Forchheimer OpenFOAM
  #1
New Member
 
Miguel Martínez Valero
Join Date: Mar 2023
Posts: 1
Rep Power: 0
MiguelMValero is on a distinguished road
Hello everybody,

I have a concern about how the Darcy law is implemented in OpenFOAM. More specifically, I don't really understand the meaning of the vectors "d" and "f". In my case, I want:

d [0 -2 0 0 0 0 0] (2.71508e6 70891 69.2805)
f [0 -1 0 0 0 0 0] (0 0 0)

where I thought that "d" and "f" were "D" and "F", respectively, in the Darcy formula:

S_i = -\nu (D_{ij}+\frac{1}{2}\rho |u_{kk}| F_{ij})u_i.

However, when I tried to manually implement Darcy-Forchheimer in OpenFOAM by removing the file "porosityProperties" file and changing the incompressible solver "pimpleFoam" with the following expression in those cells affected by the porosity condition, I'm not getting the same results.

tmp<fvVectorMatrix> tUEqn
(
fvm::ddt(U) + fvm::div(phi, U)
+ MRF.DDt(U)
+ turbulence->divDegSigma(U)
+ nu*cmptMultiply(D, U)
==
fvOptions(U)
);

I appreciate any help you can give me. I think I misunderstood how the multiplication of D and U is performed. I already checked on this document, but the operation is not specified:

https://www.tfd.chalmers.se/~hani/ku...ukurReport.pdf

Many thanks for considering my request.

Last edited by MiguelMValero; March 21, 2023 at 08:29. Reason: LaTex misunderstanding
MiguelMValero is offline   Reply With Quote

Old   December 28, 2023, 12:34
Default
  #2
New Member
 
Suraj Gangani
Join Date: Feb 2021
Location: Germany
Posts: 2
Rep Power: 0
SurajGangani is on a distinguished road
Hey Valero,

I know you posted this a long time ago, but I am also doing similar stuff and want to know whether you succeeded or not?

Kind regards,
Suraj
SurajGangani is offline   Reply With Quote

Old   January 3, 2024, 09:58
Default
  #3
New Member
 
Miguel Martínez Valero
Join Date: Dec 2020
Posts: 2
Rep Power: 0
Miguel M Valero is on a distinguished road
Hello Suraj,

Honestly, I cannot provide a good answer to you. When I wrote the post, I was using version 8 of OpenFOAM. Then, I moved to version 9, and the fvOptions library no longer exists, but it has been split into two other libraries: fvConstraints and fvModels.

In my particular test case (I only used the linear relationship with the velocity), both methods seem to agree when coefficients constituting D are up to 1e5. When I try larger orders of magnitude, OpenFOAM appears to give good results whereas implementing the forcing term directly inside the solver gradually diverges the simulation. So, I think that OpenFOAM employs some diffusive schemes inside the fvOptions library that might stabilize the results.

I know it is not a very good reply, but unfortunately I cannot tell you further about this.
Miguel M Valero is offline   Reply With Quote

Reply

Tags
darcy-forchheimer, pimplefoam


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 20:20
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 08:18


All times are GMT -4. The time now is 02:34.