CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   How to use 2 tableFile? (https://www.cfd-online.com/Forums/openfoam-pre-processing/205597-how-use-2-tablefile.html)

IgnacioSarmientoINH August 21, 2018 15:59

How to use 2 tableFile?
 
There is a boundary condition called oscillatingFixedValue, there is a tutorial about it too, using this bc you can assign time varying amplitude and frequency, but if you try to assign both as:
inlet
{

type oscillatingFixedValue;


amplitude tableFile;
tableFileCoeffs
{
fileName "$FOAM_CASE/a.data";
}


frequency tableFile;
tableFileCoeffs
{
fileName "$FOAM_CASE/f.data";
}
}


OpenFoam doesn't recognize both at the same time, and only recognize the last tableFileCoeffs so in the next time step the output says:


inlet
{
type oscillatingFixedValue;
value uniform (1.10955 0 0);
refValue uniform (1 0 0);
offset (0 0 0);
amplitude tableFile;
tableFileCoeffs
{
fileName "$FOAM_CASE/f.data";
}
frequency tableFile;
tableFileCoeffs
{
fileName "$FOAM_CASE/f.data";
}
}


Am I doing something wrong?
I know I could just write several tables, but I'm working in a boundary with a lot o data, and groovyBC doesn't seems to have problems using several tableFiles, we can't do the same?

IgnacioSarmientoINH August 23, 2018 07:23

I just realized the problem exists only in old versions of OP~
In the old versions it says:
<entryName> tableFile;
tableFileCoeffs
{
dimensions [0 0 1 0 0]; // optional dimensions
fileName dataFile; // name of data file
outOfBounds clamp; // optional out-of-bounds handling
interpolationScheme linear; // optional interpolation method
}
and in the new ones its like:
<entryName> tableFile;
<entryName>Coeffs

{

fileName dataFile; // name of data file

outOfBounds clamp; // optional out-of-bounds handling

interpolationScheme linear; // optional interpolation method

}
at somepoint they realized~
my bad


All times are GMT -4. The time now is 20:37.