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

Updating data from a lookup table

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 16, 2013, 14:04
Default Updating data from a lookup table
  #1
New Member
 
SJ
Join Date: Jul 2013
Posts: 1
Rep Power: 0
sjendoubi is on a distinguished road
Hi,

I have a BC that uses groovyBC. The BC data is read from a table stored in a file (using lookuptables). The table/file is generated by an external code.
The table changes from one time step to an other. The problem that is faced on this process is that the table is only read once at the beginning of the calculation. OpenFoam never updated the file/table. Therefore, the BC that is used by OpenFoam is the initial data that is given by the table/file that is loaded at the first time steps.

How can I tell OpenFoam to update the table for each time step?


I used something like

functions
(
fileUpdate1
{
type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so");
outputControl outputTime;
outputInterval 6;
fileToUpdate "$FOAM_CASE/UVSX1.table";
timeVsFile
(
(-1 "$FOAM_CASE/UVSX2.table")
);
}
);



but it did not update the table. It only copy UVSX2.table to UVSX1.table at the beginning of the calculation.

Any thoughts on solving this?

Thanks

Last edited by sjendoubi; December 16, 2013 at 14:09. Reason: Correcting spelling
sjendoubi is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
how to pickup the mesh data and vector data oga_shin OpenFOAM 2 October 27, 2011 23:42
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
how to expend the table limingtiger CD-adapco 0 October 30, 2005 03:45


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