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

mapFields error: Plane normal defined with zero length

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 13, 2015, 12:42
Default mapFields error: Plane normal defined with zero length
  #1
New Member
 
Gerd Fade
Join Date: Jul 2015
Posts: 3
Rep Power: 4
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, 04:23
Default not solved
  #2
New Member
 
Gerd Fade
Join Date: Jul 2015
Posts: 3
Rep Power: 4
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, 15:54
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,036
Blog Entries: 39
Rep Power: 110
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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, 02:43
Default Thanks
  #4
New Member
 
Gerd Fade
Join Date: Jul 2015
Posts: 3
Rep Power: 4
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, 05:46
Default
  #5
New Member
 
danielbanos10's Avatar
 
Join Date: Jun 2016
Location: Malaga, Spain
Posts: 15
Rep Power: 3
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

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
[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 12:21
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 05:06
DPM: Particle Tracking Madhukar FLUENT 1 July 24, 2007 03:51


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