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

[cfMesh] cfMesh 2D workflow layer optimization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2018, 07:10
Default cfMesh 2D workflow layer optimization
  #1
New Member
 
Earl Wilks
Join Date: May 2016
Posts: 3
Rep Power: 10
ewlks is on a distinguished road
Hey, I've been having some success with cfMesh for 3D problems, and have recently started exploring the 2D cartesian meshing workflow to answer some specific questions about the numerics I'm using with a less expensive simulation.

Two features that I've made use of with 3D meshes don't seem to work in the 2D workflow, namely:
  • layer optimization which smooths the boundary layer cell normals. This doesn't seem to run at all in the cartesian2DMesh workflow.
  • refinementThickness does result in greater refinement near the specified patch, but the transition between refinement layers is far more abrupt than in the cartesianMesh case.
I don't think its an issue with the meshDict (spelling, etc.) because with the same meshDict and a suitable geometry the cartesianMesh routine does generate these features.


Does anyone have any ideas? Is the cartesian2DMesh routine simply not as feature rich as the more general cartesianMesh case? Should I just give up, and generate a thin 3D mesh and then extrude a surface à la snappyHexMesh?



Thanks in advance for your help!
ewlks is offline   Reply With Quote

Old   March 22, 2018, 09:46
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 93
Rep Power: 14
einstein_zee is on a distinguished road
Quote:
Originally Posted by ewlks View Post
Hey, I've been having some success with cfMesh for 3D problems, and have recently started exploring the 2D cartesian meshing workflow to answer some specific questions about the numerics I'm using with a less expensive simulation.

Two features that I've made use of with 3D meshes don't seem to work in the 2D workflow, namely:
  • layer optimization which smooths the boundary layer cell normals. This doesn't seem to run at all in the cartesian2DMesh workflow.
  • refinementThickness does result in greater refinement near the specified patch, but the transition between refinement layers is far more abrupt than in the cartesianMesh case.
I don't think its an issue with the meshDict (spelling, etc.) because with the same meshDict and a suitable geometry the cartesianMesh routine does generate these features.


Does anyone have any ideas? Is the cartesian2DMesh routine simply not as feature rich as the more general cartesianMesh case? Should I just give up, and generate a thin 3D mesh and then extrude a surface à la snappyHexMesh?



Thanks in advance for your help!
Hi there,

I personally never made much experiment with cartesian2DMesh but one thing I remember and just wanted to notify you (only to make sure things are done in proper way) is that it has a restriction which only works when your geometry lies in x-y plane.
As a suggestion, if you want to check the difference you may try to draw a simple sketch in 2D and mesh it with a sample meshDict (using cartesian2DMesh), and then for the second case just extrude the 2D sketch in the third direction and mesh it with the same meshDict (this time using cartesianMesh). In that case you can really say that things are working or not.

hope it helps...
einstein_zee is offline   Reply With Quote

Old   October 14, 2022, 11:31
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 402
Rep Power: 19
quarkz is on a distinguished road
Hi,

I would like to add some pointers. You can download a tutorial guide from wolf dynamics:

http://www.wolfdynamics.com/training...cfmesh2017.pdf

Do take note that after using surfaceGenerateBoundingBox, you will need to edit the generated stl file and remove the part starting from this line:

solid zMin ...
...

Else, you will not be able to mesh and cartesian2DMesh will complain of errors.

Hope this helps.
quarkz is offline   Reply With Quote

Reply

Tags
boundary cell, cfmesh, refinement regions


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
[snappyHexMesh] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 08:26
[snappyHexMesh] snappyHexMesh Boundary Layer at Corner panpanzhong OpenFOAM Meshing & Mesh Conversion 5 July 3, 2018 05:53
Prismatic boundary layer KateEisenhower enGrid 5 September 15, 2015 07:48
[snappyHexMesh] Boundary layer generation problems ivan_cozza OpenFOAM Meshing & Mesh Conversion 0 October 6, 2010 13:47
errors Fahad Main CFD Forum 0 March 23, 2004 13:20


All times are GMT -4. The time now is 11:08.