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

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

 September 13, 2013, 07:37 how can see mu(laminar) like mut(turbulent)? #1 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,210 Rep Power: 19 Sponsored Links 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.

 September 13, 2013, 07:44 #2 Senior Member   Bernhard Join Date: Sep 2009 Location: Delft Posts: 790 Rep Power: 14 Can you give more details? If laminar viscosity is constant, it doesn't make a lot of sense, right?

 September 13, 2013, 10:36 #3 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,210 Rep Power: 19 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.

September 13, 2013, 11:21
#4
Member

Felipe Portela
Join Date: Dec 2012
Location: London
Posts: 64
Rep Power: 6
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 in some thermophysical models like JANAF it varies with T for perfect gases.

 September 13, 2013, 11:31 #5 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,210 Rep Power: 19 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.

September 13, 2013, 12:05
#6
Member

Felipe Portela
Join Date: Dec 2012
Location: London
Posts: 64
Rep Power: 6
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 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.

 September 15, 2013, 16:04 #7 Super Moderator   Bruno Santos Join Date: Mar 2009 Location: Lisbon, Portugal Posts: 9,978 Blog Entries: 39 Rep Power: 108 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. __________________ OpenFOAM: FAQ | Getting started Forum: How to get help, to post code/output and forum guide What am I doing/planning: blog/wiki Read this before sending me PM

 Thread Tools Display Modes Linear Mode

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