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

[surface handling] How to create Patches depending on normal vector

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2024, 10:29
Default How to create Patches depending on normal vector
  #1
New Member
 
Join Date: Jul 2024
Posts: 4
Rep Power: 2
pchris22 is on a distinguished road
Hello,

I'm trying to create patches on an existing STL-File depending on the normale vector of the faces.
That are the things I already have done:

- I have the STL-File which should not be changed. It was created with FreeCAD via a Python-Code. I have already read that patches which are defined before exporting as STL-File are not be transfered.

- I have already have done SurfaceFeatureExtract where I have the Points, edges and normals of the features stored in a file.

How can I now create the following patches:

1. inlet for normal vector (0 -1 0)
2. outlet for normal vector (0 1 0)
3. side1 for normal vector (-1 0 0)
4. side2 for normal vector (1 0 0)
5. top for normal vector (0 0 1)
6. bottom for normal vector (0 0 -1)
7. solid for every face which has not one of the above normal vectors

I would be very grateful for your help!

Kind regards,
Christian
pchris22 is offline   Reply With Quote

Old   October 9, 2024, 08:13
Default
  #2
New Member
 
Skill-Lync CFD
Join Date: Sep 2024
Location: Chennai
Posts: 21
Rep Power: 2
CFD_with_Skill-Lync is on a distinguished road
You could create the mesh as is and define the patches in post using topoSet.

Otherwise, identifying the patches would be difficult. Personally, using blender works for me where I essentially open the STL files, group the faces together and create patch names to export to snappy.

I am not aware of a method where using surfaceFeatureExtract, you can create these patches.

Look into cfMesh, the utility is called surfaceFeatureEdges, where you can divide the surface mesh file into features depending on an angle. Resource link.

Feel free to reach out in case you have any questions!
Team Skill-Lync
CFD_with_Skill-Lync is offline   Reply With Quote

Old   October 10, 2024, 06:42
Default
  #3
New Member
 
Join Date: Jul 2024
Posts: 4
Rep Power: 2
pchris22 is on a distinguished road
Quote:
Originally Posted by CFD_with_Skill-Lync View Post
You could create the mesh as is and define the patches in post using topoSet.

Otherwise, identifying the patches would be difficult. Personally, using blender works for me where I essentially open the STL files, group the faces together and create patch names to export to snappy.

I am not aware of a method where using surfaceFeatureExtract, you can create these patches.

Look into cfMesh, the utility is called surfaceFeatureEdges, where you can divide the surface mesh file into features depending on an angle. Resource link.

Feel free to reach out in case you have any questions!
Team Skill-Lync
Thanks for your reply. How do I that create patches from there on on?
pchris22 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
[Other] Create new patches using a guide vector Reptider OpenFOAM Meshing & Mesh Conversion 0 June 23, 2021 11:46
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 09:00
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
How do I compute the normal vector to a surface with FEM Vasilis Main CFD Forum 3 July 31, 2009 08:59
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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