CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

Problem getting the complete patches using SurfaceToPatch

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

Like Tree1Likes
  • 1 Post By vineet_bhola

Reply
 
LinkBack Thread Tools Display Modes
Old   August 11, 2015, 05:53
Default Problem getting the complete patches using SurfaceToPatch
  #1
Member
 
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 2
vineet_bhola is on a distinguished road
Hi All,
I have to smulate heat transfer between air to a solid to water. Please refer to the attachment cfd_summary. Cylinder colored red is hot air, white casing is solid and then blue as water.
Currently i am meshing only water and solid. I have created the mesh successfully but I am was unable to get patches from stl surface directly after snappyhexmesh.(please refer to the compressed file for scripts) It was showing 0 faces for all the patches except defaultFaces. So i used surfaceToPatch after it using the combined water and solid stl data.
Problem with that is it does not extract the complete patch, some of the triangular faces are not attributed to inlet and outlet. Compare the attachment of wasser_zoom versus wasser_stl
Does anyone know the reason behind this error. Which parameters or tolerances can I vary for surfaceToPatch command.
Thanks
Vineet
Attached Images
File Type: png cfd_wasser_auslass2.png (56.6 KB, 2 views)
File Type: png cfd_wasser_stl2.png (77.0 KB, 2 views)
File Type: png cfd_wasser_zoom2.png (83.9 KB, 2 views)
File Type: png cfd_summary2.png (36.4 KB, 3 views)
Attached Files
File Type: gz scripts.tar.gz (33.4 KB, 2 views)
vineet_bhola is offline   Reply With Quote

Old   August 11, 2015, 05:57
Default
  #2
Member
 
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 2
vineet_bhola is on a distinguished road
Just to avoid any confusion. Red circle in "Wasser_stl" is not hot air. That was the default color of stl geometry. It is just to compare, what I need and what I actually got as an nlet patch
vineet_bhola is offline   Reply With Quote

Old   August 12, 2015, 04:40
Default
  #3
Member
 
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 2
vineet_bhola is on a distinguished road
Has no one worked with surfaceToPatch before?
vineet_bhola is offline   Reply With Quote

Old   August 18, 2015, 09:54
Default
  #4
Member
 
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 2
vineet_bhola is on a distinguished road
I don't know the exact Background process. But by hit and Trial I found out that by changing tolerance Option in surfaceToPatch, these missing faces can be regained..For example, when I used .01 as tolerance, it showed 79 missing faces but with 0.0005 it showed 0...beware that if you Keep tolerance too low, it can shift all the faces to Defaultpatch OR OldinternalFaces...
By Default the tolerance is 0.001 OR 1.0 e-3
peppino likes this.
vineet_bhola 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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 60 February 14, 2016 17:06
Two way Fsi Problem- Non linear problem kmgraju CFX 4 April 28, 2015 11:15
Problem with inconsistent patches (AMI, interDyMFoam) jrrygg OpenFOAM Running, Solving & CFD 3 February 1, 2013 04:23
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


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