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

what is the correct way of giving transport properties for using in interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2019, 09:02
Default what is the correct way of giving transport properties for using in interFoam
  #1
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
Hello All,


I was trying to include an artificial viscosity term in the momentum equation. Doing so I realized that momentum equation written in Ueqn.H is consistent with the dynamic viscosity and not the kinematic viscosity. But we gave the input in transport property as kinematic viscosity. So is it really the correct way ?


My piece of code:


art_mu=runTime.deltaT()*sigma*mag(fvc::grad(Hs));

MRF.correctBoundaryVelocity(U);

fvVectorMatrix UEqn
(
fvm::ddt(rho, U) + fvm::div(rhoPhi, U) - fvm::laplacian(art_mu, U)
+ MRF.DDt(rho, U)
+ turbulence->divDevRhoReff(rho, U)
==
fvOptions(rho, U)
);


So If I try to include art_nu by dividing by rho then it say error of dimensions. Am I doing it correct way ? Are my interpretation correct?
kk415 is offline   Reply With Quote

Old   November 30, 2019, 13:17
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,


a) please use code tags so that we can read you code snippet more properly
b) we provide the kinematic viscosity and the density. Thus we can recalc the "constant" dynamic viscosity
c) the following function:
Code:
+ turbulence->divDevRhoReff(rho, U)
is doing everything for you. If you need to know how this function works, you can either check out the source code or the information given in my book.


divDevRhoReff = divergence of the deviatoric part of the Reynolds Stress tensor = shear rate tensor (:
If you want to use your code, you need to remove the turbulence-> function and further:


a) you do not take care about turbulent increase of mu
b) you do not have stabilization terms included
c) thus, your equation is not as stable as the one provided by FOAM directly
kk415 likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply


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
Evaporation due to Heat Transport using InterFoam (Correct Implementation?) ovie OpenFOAM 14 August 3, 2019 07:00
InterFoam and species transport PKeller OpenFOAM Running, Solving & CFD 7 October 7, 2014 02:40
interFoam | Hydraulic Jump | Correct boundary condition p_rgh pythag0ra5 OpenFOAM Running, Solving & CFD 17 September 5, 2014 04:31
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Material Properties for Sat. Liquid and Sat. Vapor Blackhawks84 FLUENT 0 September 17, 2012 19:11


All times are GMT -4. The time now is 14:51.