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!! |
Hi,
It looks like OpenFOAM searches for the keyword file instead of fileName. Hope that will solve your problem. Regards, Tom |
Thank you Tom!
That solved the problem. Kind regards, Evi |
All times are GMT -4. The time now is 22:25. |