|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Alain Bouvier
Join Date: Apr 2009
Posts: 3
Rep Power: 6 ![]() |
Hello,
I'm using the rhoSimpleFoam solver and i'm tryin to print both viscosity mu and mut in every cell. My problem : unlike p, this viscosities aren't created -in creatField.H- with a volScalarField declaration but came from compressible::RASModel. So they don't appear in the volfieldstatus panel in paraview. Does somebody know how to access this datas, in paraView or with any other means ? Thx for your help Alain |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.com/
Posts: 766
Rep Power: 16 ![]() |
Attached are two examples of post-processing utilities for calculating the laminar and turbulent viscosities. If you are not fussy about getting the Cmu value from the dictionary (or if you have different dictionaries than I do), you can comment out that bit (eg, with #if 0 .. #endif).
Creating a non-compressible version shouldn't be too hard either. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Alain Bouvier
Join Date: Apr 2009
Posts: 3
Rep Power: 6 ![]() |
Thx for your answer.
I have solved this problem by switching mu in basicThermo.C (and mut in kEpsilon.C) from NO_WRITE to AUTO_WRITE, but your solution is far less intrusive. I'm knew to OpenFoam and your exemples are a good way for me to go further in the code understanding ; - ) |
|
|
|
|
|
|
|
|
#4 | |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.com/
Posts: 766
Rep Power: 16 ![]() |
Quote:
You could try this in the main time-loop (haven't checked if it actually works): Code:
if (runTime.write())
{
thermo->mu().write();
turbulence->mut().write();
}
|
||
|
|
|
||
|
|
|
#5 |
|
New Member
Alain Bouvier
Join Date: Apr 2009
Posts: 3
Rep Power: 6 ![]() |
Thx,
it works but only for mu. I don't know why but mut "has no member named ‘write’". I've achieved to post-process mu and mut so I'm happy ; - ), even if a clean solution is always welcome |
|
|
|
|
|
|
|
|
#6 | |
|
Member
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 6 ![]() |
Quote:
Thanks for your post processing utilities im sorry, stupid question, could you please teach, clear step by step how to work with your post-processing utilities for calculating the laminar and turbulent viscosities? im facing a similar case. please give me help |
||
|
|
|
||
![]() |
| Tags |
| monitor print viscosity |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 17:08 |
| TRANSONIC FLOW in RHOSIMPLEFOAM | dinonettis | OpenFOAM Running, Solving & CFD | 9 | October 21, 2009 12:02 |
| RhoSimpleFoam | jphandrigan | OpenFOAM Running, Solving & CFD | 18 | March 29, 2009 11:05 |
| RhoSimpleFoam FoamX | spv24 | OpenFOAM Running, Solving & CFD | 1 | July 21, 2008 10:29 |
| Stability startup problems with rhoSimpleFoam | olesen | OpenFOAM Running, Solving & CFD | 1 | July 18, 2006 08:09 |