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

[cfMesh] Symmetry patch issue in cfMesh from stl file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2017, 07:47
Default Symmetry patch issue in cfMesh from stl file
  #1
Member
 
badoumba
Join Date: Aug 2013
Posts: 68
Rep Power: 13
badoumba is on a distinguished road
Good morning everyone,

I am trying to set an external aerodynamic case with a symmetry plane in cfMesh. My 3D file is a stl, so there is only the patch name, no type (wall, patch, symmetry, slip...).
This is different from the racing car case in cfMesh website, although there is no symmetry plane declared in the fms file.

Should I simply use the renameBoundary dictionnary to change the type of my symmetry plane from whatever to symmetry?


Code:
boundaryLayers{
 ...
 symmetryPlaneLayerTopology 1;
 generateLayersAtSymmetryPlanes 0;
 ...
}

renameBoundary
{
 ...
 newPatchNames
 {
  sym
  {
   type symmetry
  }
 }
}
Thanks for any tip !
badoumba is offline   Reply With Quote

Old   May 28, 2018, 09:47
Default
  #2
New Member
 
Dr. Peyman Davvalo Khongar
Join Date: Mar 2018
Location: Helsinki (Finland)
Posts: 16
Rep Power: 8
peyman.davvalo.khongar is on a distinguished road
Moi,

I suggest you to do this, its much easier.
If you have an stl file (for example geo.stl) with boundaries, simply run the following command:

Code:
surfaceFeatureEdges -angle n geo.stl geo.fms
where n can be any feature angle that you want. (you can use for example 60)
Then cfMesh creates you the fms format of your geometry. Open the fms file and you can put the types that you have for your faces in the fms file. As an example here i have a face called banana and its type wall:

Code:
1(
banana
wall)

965
(
(0.0317752 0.00886576 0.0240078)
(0.0146394 0.027969 0.0258469)
(0.0257587 0.0212725 -0.0234224)
...
and I change the wall type to symmetry

Code:
1(
banana
symmetry)

965
(
(0.0317752 0.00886576 0.0240078)
(0.0146394 0.027969 0.0258469)
(0.0257587 0.0212725 -0.0234224)
...
You can even change the name of the face from for example banana to apple in the fms file. Then instead of stl in your meshDict use the fms file.

Its much easier to do this.

Moikka,

Peyman
peyman.davvalo.khongar 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 18:38.