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

Additional term in the Navier Stokes equation.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2018, 14:02
Default Additional term in the Navier Stokes equation.
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 231
Rep Power: 10
gu1 is on a distinguished road
Hi,

I would like to know if it is possible to add a term as highlighted below (original PISO code):

Quote:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
+ myTerm->divMyTerm(U)
==
fvOptions(U)
);
How could I do that?
I'm trying to add a term to the kEpsilon model, but unfortunately I'm having trouble understanding how the pisoFoam solver looks for this information contained in turbulence->divDevReff(U) and that are making it impossible for me to add another term.

And I have a second question, also related to the kEpsilon model. Based on original file: kEpsilon

On lines 132 and 133 I could substitute for:

Quote:
bound(k_, kMin_);
bound(epsilon_, epsilonMin_);

for

bound(k_, SMALL);
bound(epsilon_, SMALL);
and lines 259 and 275:

Quote:
bound(epsilon_, epsilonMin_);
bound(k_, kMin_);

for

bound(epsilon_, SMALL);
bound(k_, SMALL);
I could not understand if kMin and epsilonMin are updated every iteration. Could someone explain to me what their function is? Would I disrupt the efficiency of the kEpsilon model if I removed them?

OBS: I understand that SMALL is the default value of this function.

Last edited by gu1; November 20, 2018 at 06:51.
gu1 is offline   Reply With Quote

Reply

Tags
c++, kepsilon, pisofoam


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
Navier Stokes Equation for Non-newtonian fluid? shivasluzz Main CFD Forum 6 June 9, 2015 10:44
second derivatives in the navier stokes equation catapult OpenFOAM Running, Solving & CFD 0 March 27, 2014 09:32
Matlab CFD Complete Navier Stokes equation archeoptyrx Main CFD Forum 1 July 11, 2013 09:24
Stokes equation with source term dak81 OpenFOAM Running, Solving & CFD 0 March 12, 2008 08:41
help in coding navier stokes equation fowzan Main CFD Forum 2 January 17, 2006 09:20


All times are GMT -4. The time now is 20:32.