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

mapFields error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 24, 2014, 22:05
Default mapFields error
  #1
New Member
 
Kai Liang
Join Date: Nov 2013
Posts: 18
Rep Power: 3
ljjouc is on a distinguished road
Hi, Foamers,

I strictly follow the UserGuide 2.2.2 version to practice mapFields from U-30 to U-31, but the shell pointed out the following error:


jianjun@linux-ulbc:~/OpenFOAM/jianjun-2.2.2/run/tutorials/incompressible/icoFoam/cavityFine> mapFields ../cavity -consistent
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.2-9739c53ec43f
Exec : mapFields ../cavity -consistent
Date : Feb 25 2014
Time : 09:29:36
Host : "linux-ulbc.site"
PID : 3717
Case : /home/jianjun/OpenFOAM/jianjun-2.2.2/run/tutorials/incompressible/icoFoam/cavityFine
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Source: ".." "cavity"
Target: "/home/jianjun/OpenFOAM/jianjun-2.2.2/run/tutorials/incompressible/icoFoam" "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


--> FOAM FATAL IO ERROR:
size 400 is not equal to the given value of 1600

file: /home/jianjun/OpenFOAM/jianjun-2.2.2/run/tutorials/incompressible/icoFoam/cavityFine/0.5/p from line 18 to line 438.

From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/jianjun/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/Field.C at line 236.

FOAM exiting

This really confused me a lot. Does anyone kindly help me to find the possible reason resulting in this error?

Last edited by ljjouc; February 24, 2014 at 22:48. Reason: the problem has been solved
ljjouc is offline   Reply With Quote

Old   February 25, 2014, 06:09
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 295
Rep Power: 13
Lieven will become famous soon enough
Hi Kai,

The pressure field size does not match the size of your domain in the cavityFine-case.
My guess is that you copied 'cavity' to 'cavityFine' and next changed the mesh resolution in cavityFine. What you should also do, however, is clean up all fields in the cavityFine case. The easiest way to do this is simply by removing all time folders except for 0. Then it should work.

Lieven
Lieven is offline   Reply With Quote

Old   February 25, 2014, 21:41
Default
  #3
New Member
 
Kai Liang
Join Date: Nov 2013
Posts: 18
Rep Power: 3
ljjouc is on a distinguished road
Hi, Lieven

Though I have solved this problem by myself, I am still very appreciated for your kind help. The solution is that only the 0.5 time folder should be deleted.

Best regards,
Kai
ljjouc is offline   Reply With Quote

Reply

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
blockMesh with double grading. spwater OpenFOAM Native Meshers: blockMesh 78 March 12, 2015 15:54
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
Saving ParaFoam views and case sail OpenFOAM Paraview & paraFoam 9 November 25, 2011 16:46
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 13:51.