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

Field output not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2018, 20:26
Default Field output not working
  #1
Member
 
Martin
Join Date: Dec 2011
Posts: 40
Rep Power: 15
msaravia is on a distinguished road
I'm having problems to write fields. I created some fields in the createFields.H file as follows:

volVectorField H
(
IOobject
(
"H",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
B / mu0
);

If this field is created in the createFields.H file it is written to file correctly; however, when I create a field (with the same arguments) and place it in a .H file that is included in every iteration it does not writes the data to a file.

I think that the problem could be that the object is created every iteration and therefore is not added to the object registry. Is that correct?

Thanks in advane
msaravia is offline   Reply With Quote

Reply

Tags
field output, ioobject, volscalarfield output


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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
How to control output time of pressureTools functions? Fluido OpenFOAM Post-Processing 1 May 19, 2014 09:49
kEpsilon divergence s.m OpenFOAM Running, Solving & CFD 0 May 27, 2013 10:30
field functions - table crevoise STAR-CCM+ 3 March 26, 2013 10:37
Fundamental output format control of field values and time dbxmcf OpenFOAM 1 January 12, 2011 11:50


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