CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

PLEASE EXPLAIN: why reactingFoam is not outputting density and viscosity

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2016, 14:35
Default PLEASE EXPLAIN: why reactingFoam is not outputting density and viscosity
  #1
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
Dear all
I am using reactingFoam for one of my flame simulations. But I dont know why it is not spitting out properties like density and viscosity as an output. The density should be a function of P and T from ideal gas law and viscosity as a function of temperature from Sutherland law (used in this version of the solver). Could anyone PLEASE explain the reason why it is not spitting out in the output and how can I tell the solver to spit it out.
Your kind help is highly appreciated.
Thanks
sahmed is offline   Reply With Quote

Old   December 7, 2016, 14:48
Default
  #2
New Member
 
Dominic
Join Date: May 2016
Posts: 27
Rep Power: 10
Verse is on a distinguished road
Check your createFields.H file, and for density, there should be something like:

Code:
volScalarField rho
(
    IOobject
    (
        "rho",
        runTime.timeName(),
        mesh,
        IOobject::AUTO_READ,
        IOobject::NO_WRITE
    ),
    thermo.rho()
);
Change the NO_WRITE to AUTO_WRITE. That should solve the density problem. Can't comment too much about viscosity myself.
Verse is offline   Reply With Quote

Old   December 7, 2016, 16:31
Default
  #3
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
Thanks a lot Dominic for your prompt reply.
Anyone has any idea of the viscosity to spit out? Can I use the same procedure as Dominic mentioned to change in createFields.H??
sahmed is offline   Reply With Quote

Reply

Tags
density, ideal gas, reactingfoam, sutherland, viscosity

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Density correction function for turbulent viscosity Bando STAR-CCM+ 1 July 9, 2017 02:44
How to find density without having dynamic viscosity? ooo OpenFOAM Running, Solving & CFD 6 January 28, 2014 12:46
Variable density and viscosity ravibhadauria FLUENT 0 September 15, 2011 17:09
icoFoam >> density >> kinematic viscosity for air 20°C mgolbs OpenFOAM Pre-Processing 11 February 15, 2010 10:09
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 17:33.