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

keyword dimensions is undefined in dictionary

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By SteveRix
  • 1 Post By SteveRix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2024, 14:40
Default keyword dimensions is undefined in dictionary
  #1
New Member
 
Steve Rix
Join Date: Jun 2024
Posts: 3
Rep Power: 2
SteveRix is on a distinguished road
Hi, I have been been working on this for a while but can't find the solution and hope someone can point me in the right direction. I am using openfoam 11. It won't run and gives the error


"keyword dimensions is undefined in dictionary "/.../0/T".



so in 0/T I have the following;

dimensions [0 0 0 1 0 0 0];

internalField uniform 293;

boundaryField
{

AMI
{
type energyJumpAMIFvPatchScalarField;
value $internalField;
}

AMI_slave
{
type energyJumpAMIFvPatchScalarField;
value $internalField;
}

Fan
{
type zeroGradient;
}

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
value $internalField;
inletValue $internalField;
}

wall
{
type zeroGradient;
}

Barrel
{
type zeroGradient;
}
}


I have also added entries into fvSchemes and fvSolutions as follows


fvSchemes


divSchemes
{
default none;
div(phi,U) Gauss upwind;
div(phid,p) Gauss upwind;
div(phi,K) Gauss linear;
div(phi,h) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(phi,omega) Gauss upwind;
div((rho*R)) Gauss linear;
div(R) Gauss linear;
div(U) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,T) Gauss upwind;
}



fvSolutions


solvers
{
"(p|pcorr)"
{
solver GAMG;
smoother DICGaussSeidel;
tolerance 1e-06;
relTol 0.1;
}

"(p|pcorr)Final"
{
$p;
tolerance 1e-06;
relTol 0;
}

"(U|k|omega)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-06;
relTol 0.1;
}

"(U|k|omega)Final"
{
$U;
tolerance 1e-06;
relTol 0;
}

"(T)"
{
solver BICCG;
preconditioner DILU;
tolerance 1e-7;
relTol 0;
}

}
SteveRix is offline   Reply With Quote

Old   June 17, 2024, 04:33
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Steve,

It could be helpful to share the log file of the command leading to the error message, as well as the full 0/T file.

Regards,
Yann
Yann is offline   Reply With Quote

Old   June 17, 2024, 14:16
Default problem solved
  #3
New Member
 
Steve Rix
Join Date: Jun 2024
Posts: 3
Rep Power: 2
SteveRix is on a distinguished road
I have found the problem. My mistake, typo would you believe.
Yann likes this.
SteveRix is offline   Reply With Quote

Old   June 17, 2024, 14:18
Default Solved
  #4
New Member
 
Steve Rix
Join Date: Jun 2024
Posts: 3
Rep Power: 2
SteveRix is on a distinguished road
I will be sure to include the files next time and thanks for the interest
Yann likes this.
SteveRix is offline   Reply With Quote

Reply

Tags
keyword undefined


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
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 01:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34


All times are GMT -4. The time now is 14:25.