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

Has anyone used surfaceToPatch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 6, 2008, 10:19
Default Hi, I generated a mesh. Un
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

I generated a mesh. Unfortunately, it only has 1 patch. I need to split this one patch into several patches (inlet, outlet, wall,..etc.). Has anyone here tried surfaceToPatch utility? Supposely, it can read in a surface file and then, patch the faces ontop of the surface read. What type of surface file does it read? stl? Or can it be I-DEAS unv file (this will be a 3D shell mesh I think).

Thanks!

Pei
hsieh is offline   Reply With Quote

Old   February 6, 2008, 10:36
Default Hi Pei, Doesn't autoPatch hel
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Hi Pei,
Doesn't autoPatch help you? What about the gui patchTool?

Dragos
dmoroian is offline   Reply With Quote

Old   February 6, 2008, 12:46
Default Hi, Dragos, I have not used
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi, Dragos,

I have not used either autoPatch or gui patchTool before. Is gui patchTool part of FoamX? I usually do not use FoamX. Also, autoPatch may not achieve what I want.

Let me explain:

I have a complex geometry. The mesher reads stl surface in, then, mesh the geometry - NO surface information kept in the mesh generated. However, I can use my CAD software to only export the surface patch interested (say an inlet face) to a second stl file. I am hoping the surfaceToPatch can read this second stl file, then, searches through the boundary faces, save the faces that "belongs" to the stl face, AND then, created a new inlet patch in OF format.

I am reading the surfaceToPatch source code now - just curious how it works before I understand the source code.

Pei
hsieh is offline   Reply With Quote

Old   February 7, 2008, 03:17
Default Hi Pei, autoPatch will genera
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Hi Pei,
autoPatch will generate automatically a patch for every surface on your mesh.
patchTool runs separately from FoamX and will let you pick visually the surface you need. Then will generate the patch in a boundary file.
But now you made me curious about the surfaceToPatch which seems more apropriate for complex geometries with many different boundaries. I'll take a look at it too.
Please let me know about your findings.

Dragos
dmoroian is offline   Reply With Quote

Old   February 7, 2008, 22:40
Default Hi, Dragos, autoPatch split
  #5
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi, Dragos,

autoPatch splits external faces based on user specified angle. I remembered now that I tried it few times in the past and I was not able to get the patches I wanted due to curved/complex surfaces.

I was not able to find any info on gui patchTool. How can I start it?

When reading the second stl into surfaceToPatch, I got errors. I might need to convert the triangulates in stl to something surfaceToPatch can understand. If I can just get surfaceToPatch to split the boundary faces based on the stl file, then, it will be really cool.

Pei
hsieh 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



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