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

[ANSYS Meshing] Creating a 2D Mesh with Ansys Workbench for OpenFOAM v1912

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By shereez234

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2020, 01:25
Arrow Creating a 2D Mesh with Ansys Workbench for OpenFOAM v1912
  #1
Member
 
Join Date: Oct 2011
Posts: 56
Rep Power: 15
fanta is on a distinguished road
Hi,
i am stuck with a problem and thought i would like to ask here in the OpenFOAM Sub-Forum instead of asking at the Ansys Meshing Forum.


I want to create a 2D study in OpenFOAM. How do i mesh it with Ansys? There is no z-direction. As far as i understand for OpenFOAM 2D studies are 3D with one cell in z-direction (in my case its the z-direction). So I need a 3D body, since i have to name the faces for the boundary conditions. But how do i mesh with Ansys, I don't know how it can be done with Ansys Workbench.
fanta is offline   Reply With Quote

Old   April 4, 2020, 09:59
Default
  #2
Senior Member
 
shereez234's Avatar
 
M Sereez
Join Date: Jan 2014
Location: England
Posts: 353
Blog Entries: 1
Rep Power: 13
shereez234 is on a distinguished road
Quote:
Originally Posted by fanta View Post
Hi,
i am stuck with a problem and thought i would like to ask here in the OpenFOAM Sub-Forum instead of asking at the Ansys Meshing Forum.


I want to create a 2D study in OpenFOAM. How do i mesh it with Ansys? There is no z-direction. As far as i understand for OpenFOAM 2D studies are 3D with one cell in z-direction (in my case its the z-direction). So I need a 3D body, since i have to name the faces for the boundary conditions. But how do i mesh with Ansys, I don't know how it can be done with Ansys Workbench.
You just create a regular ANSYS 2D mesh and then export it to OpenFOAM.

The way to convert a fluent style mesh to OpenFOAM is :
fluentMeshToFoam "name.msh"

there is one for CFX mesh as well.


OpenFOAM will automatically extrude it to three D (with one cell in Z)
The extrusion width can then be found using the "checkMesh" utility,

After that you can scale the Z extrusion to by using the command "transformPoints -scale "(X Y Z)"

Beware that the extrusion will be done in +Z and -Z like "0.005 and -0.005" giving a total extrusion of 0.01

best
fanta and marcusaurelius like this.
shereez234 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
[Workbench] Error creating mesh by using ANSYS workbench newbie384 ANSYS Meshing & Geometry 7 January 14, 2021 01:59
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[Workbench] Ansys Workbench mesh problem engeagle ANSYS Meshing & Geometry 0 March 21, 2016 11:22
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


All times are GMT -4. The time now is 00:12.