CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   mapFields error (http://www.cfd-online.com/Forums/openfoam-solving/130363-mapfields-error.html)

ljjouc February 24, 2014 22:05

mapFields error
 
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?

Lieven February 25, 2014 06:09

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

ljjouc February 25, 2014 21:41

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


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