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

copy/write a same volVectorField to every time step folder

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2016, 23:33
Default copy/write a same volVectorField to every time step folder
  #1
New Member
 
Yi Han
Join Date: Oct 2013
Location: Laramie WY
Posts: 15
Rep Power: 13
hy1112006 is on a distinguished road
I created a volVectorField "HAG_BC " in the "0" time folder before running the case.

This HAG_BC will not be changed in the following time step, it remains the same but it should be appeared in every time step folder because the boundary condition needs to read it every time step.

How can I implement it ?

I added the the following staff in the "creatFields.H":

volVectorField HAG_BC
(
IOobject
(
"HAG_BC",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

//==============

But still get the error:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/yhan/Desktop/PrecTest/1/HAG_BC at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

//====================================

Which means HAG_BC is not written in the "1" (next)time folder.

How can I implement it ?

Thanks
hy1112006 is offline   Reply With Quote

Reply

Tags
openfoam 2.1.1


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
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
InterFoam negative alpha karasa03 OpenFOAM 7 December 12, 2013 04:41
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 05:35


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