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

surfaceToPatch bug?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2009, 06:07
Default surfaceToPatch bug?
  #1
Member
 
bruce
Join Date: May 2009
Location: Germany
Posts: 42
Rep Power: 16
bruce is on a distinguished road
Hello

I have strange bug in surfaceToPatch utility.

I have polyMesh with patch called "wall".

I have created faceSet of wall called "wall" even though it is not necessary.

I have stl file called "in.stl"

I have to create new polyPatch called "in" using stl file where it matches tolerence of 0.001.

So i use surfaceToPatch utility :

I use OpenFOAM v1.6.x

Here is the bug report:

[bruce@cfd4 patchCheck]$ surfaceToPatch in.stl -faceSet wall
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-f802ff2d6c5a
Exec : surfaceToPatch in.stl -faceSet wall
Date : Oct 28 2009
Time : 16:34:46
Host : cfd4
PID : 12067
Case : /SNAPPY/01.full/patchCheck
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Reading surface from "in.stl" ...
Repatching only the faces in faceSet wall according to nearest surface triangle ...
All boundary faces further away than 0.001 of mesh bounding box (2729571.5 6066501 -50) (2766569.25 6103499 3230.00509) will keep their patch label ...
Before patching:
patch size
upperWall 25452
lowerWall 25452
wall 9234

Surface region 0 becomes boundary patch 0 with name stl_file
Created patch stl_file at 3


Could not find (2.73002e+06 6.08084e+06 919.998) in octree.#0 Foam::error:rintStack(Foam::Ostream&) in "/volume/cfd4_shared/2009-ct-PI-004//OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/volume/cfd4_shared/2009-ct-PI-004//OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam:ctreeDataFaceList::getSampleType(Foam:ctree <Foam:ctreeDataFaceList> const&, Foam::Vector<double> const&) const in "/volume/cfd4_shared/2009-ct-PI-004//OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#3 Foam::treeNode<Foam:ctreeDataFaceList>::setSubNo deType(int, Foam:ctree<Foam:ctreeDataFaceList>&, Foam:ctreeDataFaceList const&) in "/volume/cfd4_shared/2009-ct-PI-004//OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#4 Foam:ctree<Foam:ctreeDataFaceList>:ctree(Foa m::treeBoundBox const&, Foam:ctreeDataFaceList const&, int, double, double) in "/volume/cfd4_shared/2009-ct-PI-004//OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#5 Foam::boundaryMesh::getNearest(Foam:rimitiveMesh const&, Foam::Vector<double> const&) const in "/volume/cfd4_shared/2009-ct-PI-004//OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#6 main in "/volume/cfd4_shared/2009-ct-PI-004/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/surfaceToPatch"
#7 __libc_start_main in "/lib64/libc.so.6"
#8 __gxx_personality_v0 in "/volume/cfd4_shared/2009-ct-PI-004/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/surfaceToPatch"


From function octreeDataFaceList::getSampleType(octree<octreeDat aFaceList>&, const point&)
in file boundaryMesh/octreeDataFaceList.C at line 153.

FOAM aborting

Aborted

Can anyone help me to fix the problem?

Kind Regards
bruce is offline   Reply With Quote

Old   November 2, 2009, 06:59
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Do you have a small testcase you can post or send (m.janssens, domain opencfd.co.uk)
mattijs is offline   Reply With Quote

Old   November 6, 2009, 06:50
Default small test case
  #3
Member
 
bruce
Join Date: May 2009
Location: Germany
Posts: 42
Rep Power: 16
bruce is on a distinguished road
Hello Mattijs

I have posted a very small test case that reflects my problem.

Thanks and Best Regards
Attached Files
File Type: zip box.zip (16.4 KB, 31 views)
bruce is offline   Reply With Quote

Old   November 11, 2009, 12:35
Default
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
I've pushed some changes to 1.6.x. If I use attached controlDict (moved the minX? patch to coincide with the inlet.stl) it works. Please let me know if there any more problems with it.

Thanks,

Mattijs
Attached Files
File Type: gz blockMeshDict.gz (513 Bytes, 36 views)
mattijs is offline   Reply With Quote

Old   November 12, 2009, 08:23
Default It works
  #5
Member
 
bruce
Join Date: May 2009
Location: Germany
Posts: 42
Rep Power: 16
bruce is on a distinguished road
Hello Mattijs

Thanks, it works
bruce 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
Maybe a bug in CFX12.0 BETA? frank CFX 4 November 26, 2008 18:08
Bug in twoPhaseEulerFoam wallfunctions alberto OpenFOAM Bugs 1 February 9, 2007 14:15
Bug reports Mattijs Janssens (Mattijs) OpenFOAM 0 January 10, 2005 10:05
Win XP hot fix bug!!! Emilio Siemens 1 March 27, 2003 12:06
Forum y2k Bug Jonas Larsson Main CFD Forum 1 January 5, 2000 10:22


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