|
[Sponsors] |
February 24, 2014, 22:05 |
mapFields error
|
#1 |
New Member
Kai Liang
Join Date: Nov 2013
Posts: 19
Rep Power: 13 |
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 |
|
February 25, 2014, 06:09 |
|
#2 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23 |
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 |
|
February 25, 2014, 21:41 |
|
#3 |
New Member
Kai Liang
Join Date: Nov 2013
Posts: 19
Rep Power: 13 |
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 |
|
April 7, 2016, 04:14 |
|
#4 |
New Member
Piotr
Join Date: Dec 2014
Posts: 2
Rep Power: 0 |
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:rintStack(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:verlaps(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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
c++ libraries and solver compiling | vaina74 | OpenFOAM Installation | 13 | February 3, 2012 18:43 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 16:46 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |