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

TwoPhaseProperties

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kathrin_kissling

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2008, 11:26
Default Hello. I'm getting an outpu
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Hello.

I'm getting an output in one of my self-made tools:

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian

I think its because if using

const dimensionedScalar& rho1 = twoPhaseProperties.rho1();
const dimensionedScalar& rho2 = twoPhaseProperties.rho2();


Can anybody tell from in which file this ouput is generated?
I want to suppress it by uncommenting the corrosponding Info code.

Thanks so far!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   July 16, 2009, 04:22
Default
  #2
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 16
isabel is on a distinguished road
I think the file is generated by twoPhaseMixture.H and twoPhaseMixture.C
Am I wrong?
isabel is offline   Reply With Quote

Old   July 18, 2009, 11:19
Default
  #3
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
the output is created by the newViscosityModel.C file

transportModels/incompressible/viscosityModels/viscosityModel/newViscosityModel.C on line 48
feijooos is offline   Reply With Quote

Old   July 22, 2009, 03:21
Default
  #4
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 16
isabel is on a distinguished road
Do you know what this interFoam line means: ?

twoPhaseProperties.correct();
isabel is offline   Reply With Quote

Old   July 22, 2009, 09:03
Default
  #5
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
Dear Isabel,

twoPhaseProperties.correct() calls a funktion you can find in twoPhaseMixture.H

twoPhaseProperties.correct() calculates the laminar viscosity by calling calcNu(), which is defined in twoPhaseMixture.C.

calcNu() calculates the kinematic viscosity nu_ which is defined as the volume averaged dynamic viscosity mu_ divided by the volume averaged density.

mu_ is also calculated in twoPhaseMixture.C as mu_ = gamma * rho1_ *nuModel1_->nu() + (scalar(1)- gamma)*rho2_nuModel2_->nu()
mu_ is the volume averaged dynamic viscosity

I hope this helps you.


Regards

Kathrin
Saideep likes this.
kathrin_kissling is offline   Reply With Quote

Old   July 22, 2009, 18:09
Default
  #6
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
What is the difference between twoPhaseProperties.correct() and twoPhaseProperties->correct() ? When should we use Ptr -> ?

In addition, what is turbulence->correct() ?
sandy is offline   Reply With Quote

Old   June 1, 2015, 12:27
Default Newer Version for the .correct() function.
  #7
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 11
Saideep is on a distinguished road
Hi guys,

just to comment here. I see this as an old post and I had some trouble linking it with the new versions. The functions look alike but the directories seems to have changed.

The correct function is called from the incompressibleTwoPhaseMixture.H file under the code:
virtual void correct(){calcNu();}


What is really doing? it is finding the kinetic viscosity by dividing the laminar viscosity by the average density:

// Average kinematic viscosity calculated from dynamic viscositynu_ = mu()/(limitedAlpha1*rho1_ + (scalar(1) - limitedAlpha1)*rho2_);

for further reference please lookup in the github page specified here:
https://github.com/OpenFOAM/OpenFOAM...PhaseMixture.C

Saideep
Saideep 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



All times are GMT -4. The time now is 00:10.