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

dudek1992 April 7, 2016 03:14

Hi everyone,

First o all I would like to shortly introduce myself, since I'm new to this forum. Currently I am a student working on my Master Thesis which involves using Openfoam for CFD simulations. Before I got some experience with CFD in Formula Student team, where I designed and partly manufactured aerodynamic elements for the car.

I know it's an old topic, and the issues with MapFields where explained here before, but despite this I cannot map fields in User Guide cavity tutorial in OpenFoam 3.0.1.

link here:
http://cfd.direct/openfoam/user-guid...#x5-320002.1.8

According to tutorial I am doing following steps:
1. simulation of cavity 0 - 0.5s (according to tutorial)
2. creating cavityFine directory
3. copying system and constant directories from cavity to cavityFine
4. changing startTime in controlDict in cavityFine to 0.5
5. run 'mapFields ../cavity -consistent' in cavityFine directory

This is the error I get. Nothing is created:


Source: ".." "cavity"
Target: "blabla/OpenFOAM/pd187493-3.0.1/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

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib64/libc.so.6"
#3 ? at triangleFuncs.C:?
#4 Foam::triangleFuncs::intersectBb(Foam::Vector<doub le> const&, Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::treeBoundBox const&) at ??:?
#5 Foam::treeDataFace::overlaps(int, Foam::treeBoundBox const&) const at ??:?
#6 ? at patchProbes.C:?
#7 ? at patchProbes.C:?
#8 ? at patchProbes.C:?
#9 ? at calculateMeshToMesh0Addressing.C:?
#10 Foam::meshToMesh0::meshToMesh0(Foam::fvMesh const&, Foam::fvMesh const&) at ??:?
#11 ? at ??:?
#12 ? at ??:?
#13 __libc_start_main in "/lib64/libc.so.6"
#14 ? at ??:?
zsh: floating point exception (core dumped) mapFields ../cavity -consistent

I tried as well for example creating empty directory named 0.5 in cavityFine, changing endTime in controlDict of cavityFine, copying 0 folder from cavity to cavityFine... Error always the same.

Am I doing something wrong, or it's a problem with new Openfoam version? Did anyone try already to go through this tutorial in OpenFoam 3.0.1? Or maybe there is something I don' understand in User's Guide...

I would really appreciate your help.

Best regards,
Piotr


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