CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

mapFields error: Plane normal defined with zero length

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2015, 13:42
Default mapFields error: Plane normal defined with zero length
  #1
New Member
 
Gerd Fade
Join Date: Jul 2015
Posts: 7
Rep Power: 11
schiffbauer is on a distinguished road
Dear Foamers,

mapping a field with OF 2.4.0, I get the following error:

Code:
Create databases as time
Case   : ../testMap
nProcs : 1

Source time: 0
Target time: 0

Create meshes

Source mesh size: 36509    Target mesh size: 36509


Consistently creating and mapping fields for time 0

Creating mesh-to-mesh addressing for region0 and region0 regions using cellVolumeWeight


--> FOAM FATAL ERROR: 
Plane normal defined with zero length
Bad points:(0.18 0.0839999 0.012) (0.18 0.0899998 0.012) (0.18 0.0959993 0.012)

    From function void plane::calcPntAndVec
(
    const point&,
    const point&,
    const point&
)

    in file meshes/primitiveShapes/plane/plane.C at line 116.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::plane::calcPntAndVec(Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Vector<double> const&) at ??:?
#3  Foam::tetOverlapVolume::tetTetOverlapVol(Foam::tetPoints const&, Foam::tetPoints const&) const at ??:?
#4  Foam::tetOverlapVolume::cellCellOverlapVolumeMinDecomp(Foam::primitiveMesh const&, int, Foam::primitiveMesh const&, int, Foam::treeBoundBox const&) const at ??:?
#5  Foam::meshToMeshMethod::interVol(int, int) const at ??:?
#6  Foam::cellVolumeWeightMethod::calculateAddressing(Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, int, int, Foam::List<int> const&, Foam::List<bool>&, int&) at ??:?
#7  Foam::cellVolumeWeightMethod::calculate(Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&) at ??:?
#8  Foam::meshToMesh::calcAddressing(Foam::word const&, Foam::polyMesh const&, Foam::polyMesh const&) at ??:?
#9  Foam::meshToMesh::calculate(Foam::word const&) at ??:?
#10  Foam::meshToMesh::constructNoCuttingPatches(Foam::word const&, Foam::word const&, bool) at ??:?
#11  Foam::meshToMesh::meshToMesh(Foam::polyMesh const&, Foam::polyMesh const&, Foam::meshToMesh::interpolationMethod const&, bool) at ??:?
#12  ? at ??:?
#13  ? at ??:?
#14  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#15  ? at ??:?
Aborted (core dumped)
The mesh is a NACA profile in .stl-format, created with sHM.

Trying to find a solution, I did the following:
1.) run the simulation - OK
2.) copied the case folder and deleted the time directories
3.) run
Code:
mapFields ../sourceCase/
- NOT OK

Besides, I changed the mesh in the source case. The result was the same with the difference that the
Code:
Bad points: (...) ...
changed.

The other thread linked to this error didn't provide a solution. Do you have an idea?
schiffbauer is offline   Reply With Quote

Old   September 1, 2015, 05:23
Default not solved
  #2
New Member
 
Gerd Fade
Join Date: Jul 2015
Posts: 7
Rep Power: 11
schiffbauer is on a distinguished road
I still have the same problem, does somebody has an idea?
schiffbauer is offline   Reply With Quote

Old   September 1, 2015, 16:54
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings schiffbauer,

I've searched with Google just now for:
Code:
site:www.cfd-online.com openfoam Plane normal defined with zero length
And quickly found this thread: http://www.cfd-online.com/Forums/ope...pfields-2.html - where in post #32 is the answer.

In addition to this, in OpenFOAM-dev, mapFields from 2.2 was restored and the one from 2.3 was renamed to mapFieldsPar: http://www.openfoam.org/mantisbt/view.php?id=1702

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 2, 2015, 03:43
Default Thanks
  #4
New Member
 
Gerd Fade
Join Date: Jul 2015
Posts: 7
Rep Power: 11
schiffbauer is on a distinguished road
Thanks for your quick answer.
Well, actually I wanted to solve it with the actual OF version 2.4.0, but this might be not the easiest way...
schiffbauer is offline   Reply With Quote

Old   July 19, 2016, 06:46
Default
  #5
New Member
 
danielbanos10's Avatar
 
Join Date: Jun 2016
Location: Malaga, Spain
Posts: 15
Rep Power: 10
danielbanos10 is on a distinguished road
I had the same error in OF 2.4, and the solution I found was to move the target mesh a little bit into the soure mesh, in orden to use cuttingPatches instead of patchMap.
And now it works, and there is no normal errors.
Best regards
danielbanos10 is offline   Reply With Quote

Old   April 26, 2018, 18:02
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I followed the suggestion in #34 and added
Code:
-mapMethod mapNearest
the default is cellVolumeWeight. Using mapNearest successfully mapped.
ssa_cfd likes this.
LuckyTran is offline   Reply With Quote

Old   April 10, 2023, 16:23
Default tried mapNearest, but causes a problem
  #7
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 284
Rep Power: 6
boffin5 is on a distinguished road
For the run error of "plane nomal defined with zero length", I tried the suggestion of using "mapNearest" in fvOptions.

I have two simulations that I tried it on; the first was a chtMultiRegion case with complicated geometry which takes a long time to mesh. Using mapNearest, the simulation locked up in the chtMultiRegionFoam phase.

So I then went to a simple template case with the same setup. This one runs quickly, so is good to try things on. However, when I used mapNearest, it simply caused the simulation to lock up just as with the complicated case.

Am I missing something? Maybe a tolerance setting?
boffin5 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] How can I define different zones in ICEM? llrr ANSYS Meshing & Geometry 14 February 12, 2017 14:44
UDF to Access Wall Normal Concentration Gradient Daniel Tanner Fluent UDF and Scheme Programming 4 February 18, 2015 15:35
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 06:06
DPM: Particle Tracking Madhukar FLUENT 1 July 24, 2007 04:51


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