CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Updating data from a lookup table (https://www.cfd-online.com/Forums/openfoam-solving/127639-updating-data-lookup-table.html)

sjendoubi December 16, 2013 13:04

Updating data from a lookup table
 
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


All times are GMT -4. The time now is 21:39.