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

Question about the Porosity model using DarcyForchheimer Equation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Chaoran
  • 1 Post By Tobi

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 12, 2020, 00:21
Default Question about the Porosity model using DarcyForchheimer Equation
  #1
New Member
 
Chaoran Guan
Join Date: Aug 2019
Posts: 5
Rep Power: 6
Chaoran is on a distinguished road
I'm confused about the implementation of the DarcyForchheimer equation in Openfoam. As I found in openfoam wiki https://openfoamwiki.net/index.php/DarcyForchheimer
the source term was like
S_m = - (\mu \bf{D}+\frac{1}{2}\rho tr(\bf{U}\cdot\bf{I})\bf{F})\bf{U}
or
\Delta p = -(\mu \bf{D}_i \bf{u}_i - \frac{1}{2} \bf{F}_i |u_{kk}|u_i)
But when I dig into the source code in DarcyForchheimer.H. I found something like
Code:
 forAll(cells, i)
         {
             const label celli = cells[i];
             const label j = this->fieldIndex(i);
             const tensor Cd =
                 mu[celli]*dZones[j] + (rho[celli]*mag(U[celli]))*fZones[j];
 
             const scalar isoCd = tr(Cd);
 
             Udiag[celli] += V[celli]*isoCd;
             Usource[celli] -= V[celli]*((Cd - I*isoCd) & U[celli]);
         }
where user defined values of D and f from the fvOptions dictionary are stored in the diagonal elements of the tensor \emph{dZones[j]} and 0.5*f in \emph{fZones[j]}.
I just can't understand the relations between the source code and the above equation. Why use the \emph{isoCd} trace of tensor \emph{Cd} and the term \emph{(Cd - I*isoCd)}.

And I want to implement a source term like
S_m = -(A + B*|\bf{u}|^{0.9})\bf{u}
Can anybody help? Thanks in advance.
vitto likes this.

Last edited by Chaoran; September 12, 2020 at 00:59. Reason: typing mistake
Chaoran is offline   Reply With Quote

 

Tags
darcy-forchheimer, fvoptions,momentum source, porosity model


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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Porosity and the energy equation shock77 OpenFOAM Running, Solving & CFD 11 May 9, 2020 15:52
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 18:19
Identification of the porous region in powerLawLopesdaCosta porosity model Tarak OpenFOAM 1 February 11, 2020 16:32
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


All times are GMT -4. The time now is 19:45.