|
[Sponsors] |
November 17, 2008, 11:26 |
Hello.
I'm getting an outpu
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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!" |
|
July 16, 2009, 04:22 |
|
#2 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 16 |
I think the file is generated by twoPhaseMixture.H and twoPhaseMixture.C
Am I wrong? |
|
July 18, 2009, 11:19 |
|
#3 |
Member
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17 |
the output is created by the newViscosityModel.C file
transportModels/incompressible/viscosityModels/viscosityModel/newViscosityModel.C on line 48 |
|
July 22, 2009, 03:21 |
|
#4 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 16 |
Do you know what this interFoam line means: ?
twoPhaseProperties.correct(); |
|
July 22, 2009, 09:03 |
|
#5 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
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 |
|
July 22, 2009, 18:09 |
|
#6 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
What is the difference between twoPhaseProperties.correct() and twoPhaseProperties->correct() ? When should we use Ptr -> ?
In addition, what is turbulence->correct() ? |
|
June 1, 2015, 12:27 |
Newer Version for the .correct() function.
|
#7 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
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 |
|
|
|