CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Problem with setFields

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 11, 2010, 10:22
Default Problem with setFields
New Member
Tommaso Massai
Join Date: Jun 2010
Location: Florence
Posts: 1
Rep Power: 0
svevo is on a distinguished road
Hi everybody,

I'm a new user of OpenFoam on a MacBookPro. I've installed OpenFOAM v.1.5 with ParaView v.3.8.

Only two words to understand the case.

I'm trying to run the "sloshingTank3D6DoF" tutorial because I think is a very close case respect to that I have to develop. I have to model a rigid tank (Dimensions: 60x30x20 cm) partially filled by water subjected to a time history of acceleration. About that I've received the suggest to employ a:

"VOF free surface
flow solver with a moving mesh"

available in OpenFOAM.

Well, every time that I try to run "setFields" to set the liquid phase fraction to 1 I get back from the program this strings of error:

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

Create mesh for time = 0

Reading setFieldsDict

Setting field default values
--> FOAM Warning :
From function void setFieldType(const fvMesh& mesh, const labelList& selectedCells,Istream& fieldValueStream)
in file setFields.C at line 100
Field gamma not found

wrong token type - expected word found on line 19 the label 0

file: /Users/tommasomassai/OpenFOAM/tommasomassai-1.5/run/tutorials/interDyMFoam/sloshingTank3D6DoF/system/setFieldsDict::defaultFieldValues at line 19.

From function operator>>(Istream&, word&)
in file primitives/strings/word/wordIO.C at line 77.

FOAM exiting

but there's nothing wrong because I merely run the preset tutorial.

Am I wrong ?

Have you any suggest about that, but also about the simulation that I describe before ?

Every answer is appreciated

thanks to all,

svevo is offline   Reply With Quote

Old   July 11, 2011, 18:21
Join Date: Apr 2011
Location: Eastern US
Posts: 31
Rep Power: 6
SMesser is on a distinguished road
You might check your directories and version numbers. I had a similar problem crop up when I was switching between 1.7.1 and 1.6-ext versions of OpenFOAM. It looks to me like 1.7.1 creates the "0" subdirectory based on the "", while 1.6-ext expects the "0" to be there already. Because of the different assumptions, the Allclean script is slightly different between the two versions.
SMesser is offline   Reply With Quote

Old   November 9, 2011, 22:45
New Member
Join Date: Jul 2010
Posts: 4
Rep Power: 7
gsingle is on a distinguished road
did you figure this out?
gsingle is offline   Reply With Quote

Old   November 10, 2011, 08:31
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,147
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
the error says:
"Field gamma not found"
so look at directory 0, is there any gamma file there?
if there is change into gamma
but if you use a higher version of openFoam, it
uses alpha1 instead of gamma so you should change in setFields gamma to alpha1
nimasam is offline   Reply With Quote


free surface model, setfields, sloshing, tank, vof model

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 10:33
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52

All times are GMT -4. The time now is 16:05.