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

keyword Phi is undefined in dictionary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2017, 04:52
Default keyword Phi is undefined in dictionary
  #1
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
Hi.

I am running a pipe flow simulation in Simflow and this is my first time. and since it uses Openfoam, I thought that someone who is using OpenFoam can help me with my problem.

When I start running my simulation, it ends unsuccessful. The problem has to do with this "keyword Phi is undefined in dictionary fvsolver".

I checked the file fvsolver, changed some values there but to no avail.

How do I proceed? How do I solve this problem?

Thank you.
Chris2 is offline   Reply With Quote

Old   March 29, 2017, 04:57
Default
  #2
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Hi,

could you post your fvSolution file? The problem is inside of it, but more information is needed to help you
agustinvo is offline   Reply With Quote

Old   March 29, 2017, 05:02
Default
  #3
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
Thanks Agustinvo for the reply.

Here it is.

FoamFile
{
version 2.0;
class dictionary;
format ascii;
location "system";
object fvSolution;
}
solvers
{
p
{
smoother GaussSeidel;
relTol 0.1;
cacheAgglomeration true;
maxIter 100;
nPreSweeps 0;
nPostSweeps 1;
nFinalSweeps 0;
agglomerator faceAreaPair;
nCellsInCoarsestLevel 10;
tolerance 1.0E-6;
mergeLevels 1;
solver GAMG;
}
U
{
relTol 0.1;
preconditioner DILU;
tolerance 1.0E-6;
maxIter 100;
solver PBiCG;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 1;
pRefPoint (0.0 0.0 0.0);
pRefValue 10.0;
residualControl
{
p 1.0E-4;
U 1.0E-4;
}
}
relaxationFactors
{
p 0.3;
U 0.7;
}
potentialFlow
{
nNonOrthogonalCorrectors 10;
pRefPoint (0.0 0.0 0.0);
pRefValue 10.0;
}
Chris2 is offline   Reply With Quote

Old   March 29, 2017, 05:33
Default
  #4
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
By the way Agustin, I am using the simplefoam for my simulation. I am simulating a flow through a pipe that is connected to a tank. The flow of water out of the tank is also through a pipe that is connected to it.
Chris2 is offline   Reply With Quote

Old   March 31, 2017, 02:44
Default
  #5
New Member
 
Sana Ullah
Join Date: Sep 2014
Location: Daejeon,South Korea
Posts: 28
Blog Entries: 2
Rep Power: 12
Mehar is on a distinguished road
Define in fvsolver file as

phi
{
$p;
}



Sent from my LG-F600L using CFD Online Forum mobile app
__________________
Mehar, Phd Scholar
KAIST, Korea
Mehar is offline   Reply With Quote

Old   March 31, 2017, 03:38
Default
  #6
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
Thanks Sana for the reply. I changed the file, however the problem persists. It is interesting to note that after I change the file and run the Simflow, the fvsolution reverts back to its previous contents, ie, without the
phi
{
$p;
}.


Did I do it correctly when I added the text you mentioned inside solvers?
Chris2 is offline   Reply With Quote

Old   March 31, 2017, 03:41
Default
  #7
New Member
 
Sana Ullah
Join Date: Sep 2014
Location: Daejeon,South Korea
Posts: 28
Blog Entries: 2
Rep Power: 12
Mehar is on a distinguished road
In that case....please confirm that file is not replaced during the run....Looks like when you run your simulation...it copies fvsolution file from some other location and replaces the existing file...

Sent from my LG-F600L using CFD Online Forum mobile app
__________________
Mehar, Phd Scholar
KAIST, Korea
Mehar is offline   Reply With Quote

Old   March 31, 2017, 03:55
Default
  #8
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
Thanks Sana.

I think the file is replaced (the File's time modified changes and coincides with the time of the simulation, not the time of editing) since the changes are not there anymore after I run the simulation.
Chris2 is offline   Reply With Quote

Old   March 31, 2017, 03:57
Default
  #9
New Member
 
Sana Ullah
Join Date: Sep 2014
Location: Daejeon,South Korea
Posts: 28
Blog Entries: 2
Rep Power: 12
Mehar is on a distinguished road
Please check your run script...

Sent from my LG-F600L using CFD Online Forum mobile app
__________________
Mehar, Phd Scholar
KAIST, Korea
Mehar is offline   Reply With Quote

Old   March 31, 2017, 04:04
Default
  #10
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
What do I need to check for in my run script so that the file is not replaced?
Chris2 is offline   Reply With Quote

Old   March 31, 2017, 04:10
Default
  #11
New Member
 
Sana Ullah
Join Date: Sep 2014
Location: Daejeon,South Korea
Posts: 28
Blog Entries: 2
Rep Power: 12
Mehar is on a distinguished road
Could u copy ur run script

Sent from my LG-F600L using CFD Online Forum mobile app
__________________
Mehar, Phd Scholar
KAIST, Korea
Mehar is offline   Reply With Quote

Old   March 31, 2017, 04:13
Default
  #12
New Member
 
Chrismar Punzal
Join Date: Mar 2017
Posts: 7
Rep Power: 9
Chris2 is on a distinguished road
Thanks Sana for the help. I am running it through Simflow, by the way.

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0+ |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Windows port by SIMFLOW Technologies *\
\*---------------------------------------------------------------------------*/
Build : 3.0+-949e02381429
Exec : C:/Program Files/simFlow/engine-3.0+/bin/potentialFoam -noFunctionObjects -writep
Date : Mar 31 2017
Time : 15:03:18
Host : "DESKTOP-165GQND"
PID : 5792
Case : C:/Users/TRANS-ASIA/Desktop/4/4
nProcs : 1
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


potentialFlow: Operating solver in PISO mode

Reading velocity field U

Constructing pressure field p

Constructing velocity potential field Phi

Creating MRF zone list from MRFProperties

Calculating potential flow


--> FOAM FATAL IO ERROR:
keyword Phi is undefined in dictionary "C:/Users/TRANS-ASIA/Desktop/4/4/system/fvSolution.solvers"

file: C:/Users/TRANS-ASIA/Desktop/4/4/system/fvSolution.solvers from line 13 to line 55.

From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const
in file db/dictionary/dictionary.C at line 640.

FOAM exiting
Chris2 is offline   Reply With Quote

Old   March 31, 2017, 04:33
Default
  #13
New Member
 
Sana Ullah
Join Date: Sep 2014
Location: Daejeon,South Korea
Posts: 28
Blog Entries: 2
Rep Power: 12
Mehar is on a distinguished road
I never used OpenFoam with simFlow...what I can guess is that while preparing your case using simFlow...there will be some option to define Phi...

Sent from my LG-F600L using CFD Online Forum mobile app
__________________
Mehar, Phd Scholar
KAIST, Korea
Mehar is offline   Reply With Quote

Old   March 15, 2018, 18:49
Default
  #14
New Member
 
Metikurke
Join Date: May 2017
Posts: 21
Rep Power: 9
Metikurke is on a distinguished road
For the future readers this following code works, but you should use Phi instead of phi, and add these in the solvers area of fvSolutions. And thank you Chrismar and Sana for this thread.

Quote:
Originally Posted by Chris2 View Post
Thanks Sana for the reply. I changed the file, however the problem persists. It is interesting to note that after I change the file and run the Simflow, the fvsolution reverts back to its previous contents, ie, without the
phi
{
$p;
}.


Did I do it correctly when I added the text you mentioned inside solvers?
Regards,

Metikurke
Metikurke is offline   Reply With Quote

Reply

Tags
openfoam


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 12:50.