CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Error using tableFile as boundary condition (https://www.cfd-online.com/Forums/openfoam-post-processing/222474-error-using-tablefile-boundary-condition.html)

Evi November 26, 2019 04:28

Error using tableFile as boundary condition
 
Hello,

I am new to OF and for my boundary condition I want to read in a file.
Somehow I am not able to get it running with the OFv1906 version. When I change the BC to a fixed value the simulation runs without any error messages.


"cut_A82_1.tif_intens_p4_f.stl.*"
{
type uniformFixedGradient;
uniformGradient tableFile;
uniformGradientCoeffs
{
fileName "$FOAM_CASE/keyhole.data";
};

}

The error Message is:

--> FOAM FATAL IO ERROR:
Entry 'file' not found in dictionary "/mnt/c/Users/ac134577/OpenFOAM/Test2/0/T.boundaryField.cut_A82_1.tif_intens_p4_f.stl.*.un iformGradientCoeffs"


file: /mnt/c/Users/ac134577/OpenFOAM/Test2/0/T.boundaryField.cut_A82_1.tif_intens_p4_f.stl.*.un iformGradientCoeffs

From function bool Foam::dictionary::readEntry(const Foam::word&, T&, Foam::keyType:: option, bool) const [with T = Foam::fileName]
in file /home/pawan/OpenFOAM/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/dictionaryTemplates.C at line 317.


Does anyone know what I am doing wrong? Thank you for your help!!

tomf November 27, 2019 06:09

Hi,

It looks like OpenFOAM searches for the keyword file instead of fileName.

Hope that will solve your problem.

Regards,
Tom

Evi November 27, 2019 09:49

Thank you Tom!

That solved the problem.

Kind regards,

Evi


All times are GMT -4. The time now is 08:23.