|
[Sponsors] |
copy/write a same volVectorField to every time step folder |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 18, 2016, 23:33 |
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 |
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 |
|
Tags |
openfoam 2.1.1 |
|
|
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 |