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

Not all fields written as part of solution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2011, 18:46
Default Not all fields written as part of solution
  #1
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Hey all,
I am simulating a laminar diffusion flame using a solver that is built on the lines of reactingFoam in version 1.7.1. I have added some new fields for calculations, like the diffusivities, viscosities, mole fractions, etc. But I find that while running, some fields are not being written to the solution, even when I initialize them like this:
Code:
mu_
(
    IOobject
    (
        "mu",
        mesh.time().timeName(),
        mesh,
        IOobject::NO_READ,
        IOobject::AUTO_WRITE
    ),
    mesh,
    dimensionedScalar("zero",dimensionSet(1,-1,-1,0,0,0,0),0 )
)
I am using this initializer as part of a constructor of an object where I have this defines. Strangely, some other objects (volScalarFields) initialized in this way get written properly.
Any ideas? Thanks in advance.
adhiraj is offline   Reply With Quote

Old   April 23, 2011, 04:54
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
i guess you are going to define ur variable twice!
mu_ maybe is defined in another file too
nimasam is offline   Reply With Quote

Old   April 23, 2011, 11:16
Default
  #3
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Thanks for replying. Actually I managed to fix the issue by changning the string
"mu" to "Mu" in the function call. Maybe it was in conflict with a different variable of same name in the IOdict .
adhiraj is offline   Reply With Quote

Reply


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
grid dependancy gueynard a. Main CFD Forum 19 June 27, 2014 21:22
Exact solution of Burgers equation mcaro Main CFD Forum 3 January 25, 2011 06:46
Steady solution from Transient simulations wawa FLUENT 2 November 9, 2010 17:44
Unsteady solution Christophe FLUENT 0 August 11, 2006 11:13
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 01:16


All times are GMT -4. The time now is 18:23.