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

keyword file is undefined in dictionary

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By chridelivery

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2023, 20:50
Default keyword file is undefined in dictionary
  #1
New Member
 
chri
Join Date: Nov 2022
Posts: 3
Rep Power: 3
chridelivery is on a distinguished road
I'm trying to simulate a bubble rising process using interFoam with a time-dependent boundary condition in the inlet, but I get the following error.

--> FOAM FATAL IO ERROR:
keyword file is undefined in dictionary "/home/chir/OpenFOAM/chri-9/0.0715mm_test/0/U.boundaryField.inlets"

file: /home/chir/OpenFOAM/chri-9/0.0715mm_test/0/U.boundaryField.inlets from line 50 to line 54.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 570.

FOAM exiting

The content of 0/U are also pasted below.

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{

inlet
{
type fixedValue;
value uniform (0 0 0);
}

outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}

fixedWall
{
type noSlip;
}

frontAndBack
{
type empty;
}

inlets
{
type uniformFixedValue;
uniformValue tableFile;
tablefileCoeffs
{
fileName "/home/chir/OpenFOAM/chri-9/0.0715mm_test/0/velocity.txt";
}
}

}

// ************************************************** *********************** //

The content of velocity.txt are also pasted below.

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class IOobject;
location "0";
object velocity.txt;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
(
(0.0000 (0 0 0))
(0.0005 (0 0 0))
(0.0010 (0 0 0))
(0.0015 (0 0 0))
(0.0020 (0 0 0))
(0.0025 (0 0 0))
(0.0030 (0 0 0))
(0.0035 (0 0 0))
(0.0040 (0 0 0))
(0.0045 (0 0 0))
(0.0050 (0 0 0))
(0.0055 (0 0 0))
(0.0060 (0 0 0))
(0.0065 (0 0 0))
(0.0070 (0 0 0))
(0.0075 (0 0 0))
(0.0080 (0 0 0))
(0.0085 (0 0 0))
(0.0090 (0 0 0))
(0.0095 (0 0 0))
(0.0100 (0 0 0))
(0.0105 (0 0 0))
(0.0110 (0 0 0))
(0.0115 (0 0 0))
(0.0120 (0 0 0))
(0.0125 (0 0 0))
(0.0130 (0 0 0))
(0.0135 (0 0 0))
(0.0140 (0 0 0))
(0.0145 (0 0 0))
(0.0150 (0 0 0))
(0.0155 (0 0 0))
(0.0160 (0 0 0))
(0.0165 (0 0 0))
(0.0170 (0 0 0))
(0.0175 (0 0 0))
(0.0180 (0 0 0))
(0.0185 (0 0 0))
(0.0190 (0 0 0))
(0.0195 (0 0 0))
(0.0200 (0 0 0))
(0.0205 (0 0 0))
(0.0210 (0 0 0))
(0.0215 (0 0 0))
(0.0220 (0 0 0))
(0.0225 (0 0 0))
(0.0230 (0 0 0))
(0.0235 (0 0 0))
(0.0240 (0 0.00156593 0))
(0.0245 (0 0.001063172 0))
(0.0250 (0 0.000846011 0))
(0.0255 (0 0.000696035 0))
(0.0260 (0 0.000588906 0))
(0.0265 (0 0.000509218 0))
(0.0270 (0 0.000416362 0))
(0.0275 (0 0.000336062 0))
(0.0280 (0 0.000233895 0))
(0.0285 (0 7.12525E-05 0))
(0.0290 (0 4.7625E-05 0))
(0.0295 (0 5.01143E-05 0))
(0.0300 (0 3.77587E-05 0))
(0.0305 (0 3.26555E-05 0))
(0.0310 (0 3.28253E-05 0))
(0.0315 (0 3.00343E-05 0))
(0.0320 (0 2.55025E-05 0))
(0.0325 (0 2.7974E-05 0))
(0.0330 (0 3.47557E-05 0))
(0.0335 (0 2.02958E-05 0))
(0.0340 (0 1.9056E-05 0))
(0.0345 (0 2.81555E-05 0))
(0.0350 (0 2.11088E-05 0))
(0.0355 (0 1.74512E-05 0))
(0.0360 (0 2.5883E-05 0))
(0.0365 (0 1.63815E-05 0))
(0.0370 (0 2.24218E-05 0))
(0.0375 (0 1.4104E-05 0))
(0.0380 (0 1.55229E-05 0))
(0.0385 (0 2.0793E-05 0))
(0.0390 (0 1.17405E-05 0))
(0.0395 (0 1.19289E-05 0))
(0.0400 (0 1.21918E-05 0))
(0.0405 (0 1.25422E-05 0))
(0.0410 (0 1.2932E-05 0))
(0.0415 (0 1.32342E-05 0))
(0.0420 (0 1.32109E-05 0))
(0.0425 (0 1.26991E-05 0))
(0.0430 (0 1.1704E-05 0))
(0.0435 (0 1.04686E-05 0))
(0.0440 (0 9.20825E-06 0))
(0.0445 (0 8.03881E-06 0))
(0.0450 (0 6.96891E-06 0))
(0.0455 (0 5.9968E-06 0))
(0.0460 (0 5.09135E-06 0))
(0.0465 (0 1.87577E-05 0))
(0.0470 (0 7.76778E-06 0))
(0.0475 (0 5.2274E-06 0))
(0.0480 (0 3.6938E-06 0))
(0.0485 (0 2.44637E-06 0))
(0.0490 (0 7.02536E-06 0))
(0.0495 (0 2.5946E-06 0))
(0.0500 (0 0 0))
);
// ************************************************** *********************** //
chridelivery is offline   Reply With Quote

Old   February 20, 2023, 03:32
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 230
Rep Power: 5
Alczem is on a distinguished road
Hello


You probably used the wrong keyword. OpenFoam expects a file keyword and your 0/U file only has tablefileCoeffs in your inlets boundary.
Alczem is offline   Reply With Quote

Old   February 20, 2023, 09:34
Default Thanks for your reply!
  #3
New Member
 
chri
Join Date: Nov 2022
Posts: 3
Rep Power: 3
chridelivery is on a distinguished road
Quote:
Originally Posted by Alczem View Post
Hello


You probably used the wrong keyword. OpenFoam expects a file keyword and your 0/U file only has tablefileCoeffs in your inlets boundary.
I try to modify the boundary condition of inlets,It works!

inlets
{
type uniformFixedValue;
uniformValue tableFile;
uniformValueCoeffs
{
file "velocity.txt";
}
value (0 0 0);
}
my velocity.txt is :
(
(0.0000 (0 0 0))
(0.0005 (0 0 0))
(0.0010 (0 0 0))
(0.0015 (0 0 0))
(0.0020 (0 0 0))
(0.0025 (0 0 0))
(0.0030 (0 0 0))
(0.0035 (0 0 0))
(0.0040 (0 0 0))
(0.0045 (0 0 0))
(0.0050 (0 0 0))
(0.0055 (0 0 0))
(0.0060 (0 0 0))
(0.0065 (0 0 0))
(0.0070 (0 0 0))
(0.0075 (0 0 0))
(0.0080 (0 0 0))
(0.0085 (0 0 0))
(0.0090 (0 0 0))
(0.0095 (0 0 0))
(0.0100 (0 0 0))
(0.0105 (0 0 0))
(0.0110 (0 0 0))
(0.0115 (0 0 0))
(0.0120 (0 0 0))
(0.0125 (0 0 0))
(0.0130 (0 0 0))
(0.0135 (0 0 0))
(0.0140 (0 0 0))
(0.0145 (0 0 0))
(0.0150 (0 0 0))
(0.0155 (0 0 0))
(0.0160 (0 0 0))
(0.0165 (0 0 0))
(0.0170 (0 0 0))
(0.0175 (0 0 0))
(0.0180 (0 0 0))
(0.0185 (0 0 0))
(0.0190 (0 0 0))
(0.0195 (0 0 0))
(0.0200 (0 0 0))
(0.0205 (0 0 0))
(0.0210 (0 0 0))
(0.0215 (0 0 0))
(0.0220 (0 0 0))
(0.0225 (0 0 0))
(0.0230 (0 0 0))
(0.0235 (0 0 0))
(0.0240 (0 0.00156593 0))
(0.0245 (0 0.001063172 0))
(0.0250 (0 0.000846011 0))
(0.0255 (0 0.000696035 0))
(0.0260 (0 0.000588906 0))
(0.0265 (0 0.000509218 0))
(0.0270 (0 0.000416362 0))
(0.0275 (0 0.000336062 0))
(0.0280 (0 0.000233895 0))
(0.0285 (0 7.12525E-05 0))
(0.0290 (0 4.7625E-05 0))
(0.0295 (0 5.01143E-05 0))
(0.0300 (0 3.77587E-05 0))
(0.0305 (0 3.26555E-05 0))
(0.0310 (0 3.28253E-05 0))
(0.0315 (0 3.00343E-05 0))
(0.0320 (0 2.55025E-05 0))
(0.0325 (0 2.7974E-05 0))
(0.0330 (0 3.47557E-05 0))
(0.0335 (0 2.02958E-05 0))
(0.0340 (0 1.9056E-05 0))
(0.0345 (0 2.81555E-05 0))
(0.0350 (0 2.11088E-05 0))
(0.0355 (0 1.74512E-05 0))
(0.0360 (0 2.5883E-05 0))
(0.0365 (0 1.63815E-05 0))
(0.0370 (0 2.24218E-05 0))
(0.0375 (0 1.4104E-05 0))
(0.0380 (0 1.55229E-05 0))
(0.0385 (0 2.0793E-05 0))
(0.0390 (0 1.17405E-05 0))
(0.0395 (0 1.19289E-05 0))
(0.0400 (0 1.21918E-05 0))
(0.0405 (0 1.25422E-05 0))
(0.0410 (0 1.2932E-05 0))
(0.0415 (0 1.32342E-05 0))
(0.0420 (0 1.32109E-05 0))
(0.0425 (0 1.26991E-05 0))
(0.0430 (0 1.1704E-05 0))
(0.0435 (0 1.04686E-05 0))
(0.0440 (0 9.20825E-06 0))
(0.0445 (0 8.03881E-06 0))
(0.0450 (0 6.96891E-06 0))
(0.0455 (0 5.9968E-06 0))
(0.0460 (0 5.09135E-06 0))
(0.0465 (0 1.87577E-05 0))
(0.0470 (0 7.76778E-06 0))
(0.0475 (0 5.2274E-06 0))
(0.0480 (0 3.6938E-06 0))
(0.0485 (0 2.44637E-06 0))
(0.0490 (0 7.02536E-06 0))
(0.0495 (0 2.5946E-06 0))
(0.0500 (0 0 0))
);
// ************************************************** *********************** //
Alczem likes this.
chridelivery is offline   Reply With Quote

Reply

Tags
uniformfixedvalue


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 03:52
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


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