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

[cfMesh] How to define patches in .stl file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2016, 17:23
Default How to define patches in .stl file
  #1
Member
 
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13
schuyler is on a distinguished road
Hello all,

I have decided to try out cfMesh but I am having some trouble defining my geometry. When I create the stl file I need in solidworks it only has one patch defined in it.

In all of the cfMesh tutorials they have different patches defined within the stl file. Does anybody know how this is achieved? I can't seem to figure out a straight forward way.

For example the elbow_90degree tutorial. The patches are defined in the stl file.

Is there another way to create patches for cfMesh?

Any help would be greatly appreciated!

schuyler
schuyler is offline   Reply With Quote

Old   September 2, 2016, 18:10
Default
  #2
Member
 
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13
schuyler is on a distinguished road
Isn't it funny how you can solve your own problem just by putting it into words for others?

Here are some notes that I found:

-When you run cartesianMesh on a .ftr file it outputs the surfaces it used as patches.
-When you run cartesianMesh on a .fms file it does not
-HOWEVER, if you run the openFoam utility autoPatch it generates the patches for you.

My main concern was with adding boundary layers. How could I select the patches for layering if there were no patches until AFTER you run the mesher? Well, the answer is easy actually. You just run the generateLayers utility after the mesh has been created and you run autopatch.

Maybe my experience will be helpful to someone?

Schuyler
schuyler is offline   Reply With Quote

Old   September 7, 2016, 03:39
Default
  #3
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Dear schuyler,
at the following link you can find more information regarding this topic http://sourceforge.net/projects/open...W09_P_0048.pdf

Kind regards, Franjo
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Reply

Tags
cfmesh, meshing


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 05:45.