CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Error during tutorial Mapfields

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

LinkBack Thread Tools Display Modes
Old   November 8, 2016, 11:23
Default Error during tutorial Mapfields
New Member
Join Date: Nov 2016
Posts: 2
Rep Power: 0
mazamitla is on a distinguished road
Hey everybody,

I just started using openFOAM and am working my way through the tutorial. So far I encountered a few problems which I eventually was able to fix myself with a little search here and there.

However during step of the tutorial I am now stuck.

I created a new folder cavityFine in the workingDir using as in of the tuturial:

mkdir cavityFine
cp -r cavity/constant cavityFine
cp -r cavity/system cavityFine
cd cavityFine

Then I edited the blockMeshDict file as described in step of the tutorial, subsequently ran blockMesh (this works).

However during step when I execute the command:

mapFields ../cavity -consistent

The utility should run with output to the terminal including:
Source: ”..” ”cavity”
Target: ”.” ”cavityFine”

Create databases as time

Source time: 0.5
Target time: 0.5

Create meshes

Source mesh size: 400 Target mesh size: 1600

Consistently creating and mapping fields for time 0.5

interpolating p
interpolating U

This is supposed to be the result as stated in the tutorial however I get the following outcome:
Source: ”..” ”cavity”
Target: ”.” ”cavityFine”

Create databases as time

cannot find file

file: ./cavity/system/controlDict at line 0.
From function regI0object::readStream()
in file db/regI0object/regI0objectRead.C at line 237.
FOAM exiting
I am not sure how to proceed and would appreciate any help advise that you could provide to tackle this problem.

mazamitla is offline   Reply With Quote

Old   November 8, 2016, 13:17
Join Date: Jul 2014
Posts: 72
Rep Power: 4
arsalan.dryi is on a distinguished road
Hi Roy,

Problem is explained obviously in the error text, just read it.
Check if the controlDict is exist at cavity/system.

arsalan.dryi is offline   Reply With Quote

Old   November 9, 2016, 09:47
New Member
Join Date: Nov 2016
Posts: 2
Rep Power: 0
mazamitla is on a distinguished road
Hey arsalan,

Thanks for the advice, I checked the folder cavity/system and there is definately a "controlDict" file present there. See image below.

Any other suggestions? Maybe I am missing something very simple.

mazamitla is offline   Reply With Quote

Old   November 9, 2016, 14:12
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 270
Rep Power: 11
anishtain4 is on a distinguished road
Are you sure you are in the right directory?
It should read:
Source: ”..” ”cavity”
Target: ”<path>” ”cavityFine”
but in the attached picture it says:
source "." "cavity"
Target: ”<path>” ”cavityFine”

Note the single and double dots on the first line. You should be in cavityFine when running the mapFields utility. Also both cases should be in the same directory for .. to be able to address the cavity case
anishtain4 is offline   Reply With Quote


cavity, cavityfine, error, mapfields, tutorial

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
AMI - Propeller Tutorial diverging kingmaker OpenFOAM Running, Solving & CFD 2 November 4, 2016 03:57
tutorial files KITetima FLUENT 7 December 9, 2014 01:38
STAR-CD Tutorial shekhar aryal STAR-CD 4 March 22, 2010 04:25
CFD-ACE Tutorial for Serpentine Fuel cell Channel Taqi Main CFD Forum 0 April 13, 2008 13:12
Rotor/stator tutorial, and how to... gilberto CFX 5 January 21, 2002 10:41

All times are GMT -4. The time now is 08:28.