|
[Sponsors] |
September 13, 2013, 08:37 |
how can see mu(laminar) like mut(turbulent)?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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, 08:44 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
Can you give more details? If laminar viscosity is constant, it doesn't make a lot of sense, right?
|
|
September 13, 2013, 11:36 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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, 12:21 |
|
#4 |
Member
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 13 |
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? |
|
September 13, 2013, 12:31 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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, 13:05 |
|
#6 |
Member
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 13 |
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!
|
|
September 15, 2013, 17:04 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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() );
__________________
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|