CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

how can see mu(laminar) like mut(turbulent)?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By fportela
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   September 13, 2013, 07:37
Default how can see mu(laminar) like mut(turbulent)?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
is it possible to see laminar mu(viscosity) after run by any postProcessing utility?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 13, 2013, 07:44
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Can you give more details? If laminar viscosity is constant, it doesn't make a lot of sense, right?
Bernhard is offline   Reply With Quote

Old   September 13, 2013, 10:36
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
in some thermophysical models like JANAF it varies with T for perfect gases.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 13, 2013, 11:21
Default
  #4
Member
 
Felipe Portela
Join Date: Dec 2012
Location: London
Posts: 58
Rep Power: 4
fportela is on a distinguished road
I'm not sure if there is any utility available to do that, but it shouldn't be very hard to implement.

Just create an IOobject for the viscosity, then go through your time steps and store it, is this what you want?

Quote:
Originally Posted by immortality View Post
in some thermophysical models like JANAF it varies with T for perfect gases.
fportela is offline   Reply With Quote

Old   September 13, 2013, 11:31
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
yes seems be simple to do it before run,but my runs have finished and thought may there be a postProcessing utility,not important,thanks for your consideration dear Felipe.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 13, 2013, 12:05
Default
  #6
Member
 
Felipe Portela
Join Date: Dec 2012
Location: London
Posts: 58
Rep Power: 4
fportela is on a distinguished road
You might want to look at the postChannel utility, just as a reference. This utility computes some fields for each of the time steps and prints out some other things (also for each time step), which I believe is along the same lines of what you are trying to do!

Quote:
Originally Posted by immortality View Post
yes seems be simple to do it before run,but my runs have finished and thought may there be a postProcessing utility,not important,thanks for your consideration dear Felipe.
immortality likes this.
fportela is offline   Reply With Quote

Old   September 15, 2013, 16:04
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Ehsan: This one seems to be very complicated. At least if we look directly at the thermodynamics part of OpenFOAM.

The problem here is that "nu" is not present in the thermodynamics part of OpenFOAM. It's only present in the transport-related libraries, such as the one for laminar flow, the multiphase flows and the turbulence flows.

The best I can find is the source code provided here: http://repo.or.cz/w/OpenFOAM-2.2.x.g...eclet/Peclet.C - it shows a few ways on how to get the "nuEff", but neither one seem to depend on thermodynamics.

Wait... no no no... it's a compressible model, you don't look for the "nu" directly, you look for "mu" and "rho" and calculate from there!
Arg... I read incorrectly the question You want "mu"!!! I'm tired already and the work week hasn't even started...



In theory, it should be as simple as adding something like this to either one of the other applications you sent me:
Code:
            Info<< "    Calculating mu" << endl;
            volScalarField mu
            (
                IOobject
                (
                    "mu",
                    runTime.timeName(),
                    mesh,
                    IOobject::NO_READ
                ),
                thermo.mu()
            );
immortality likes this.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:04.