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

How to obtain the mesh size?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2013, 03:00
Default How to obtain the mesh size?
  #1
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
hustxinxin is on a distinguished road
Excuse me

Is there anybody knows how to obtain the mesh size through User Fortran? I want to add a source term to the k-ω equation, and this term is a function of the maximum length of the mesh edges.

I am really appreciate your help!
hustxinxin is offline   Reply With Quote

Old   June 28, 2013, 06:09
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Must be a strange source term....

This is difficult to define let alone code. CFX supports tet, pyramid, prism and hex meshes - are you going to code a different case for each of them? But even trickier is that the equations are solved on control volumes centred on the nodes, and these control volumes are polyhedral. Read the documentation for more detail on this. But it means the mesh you define is not the mesh it uses for solving the equations, so working out what the longest edge length on the original mesh would appear to be of little benefit.
ghorrocks is offline   Reply With Quote

Old   June 28, 2013, 06:43
Default
  #3
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
hustxinxin is on a distinguished road
Thanks for your kindly reply!
So, I worked out the problem with another method, that I used "Volume of Finite Volumes^0.3333" instead, and farther more, I think it's more approriate.


Quote:
Originally Posted by ghorrocks View Post
Must be a strange source term....

This is difficult to define let alone code. CFX supports tet, pyramid, prism and hex meshes - are you going to code a different case for each of them? But even trickier is that the equations are solved on control volumes centred on the nodes, and these control volumes are polyhedral. Read the documentation for more detail on this. But it means the mesh you define is not the mesh it uses for solving the equations, so working out what the longest edge length on the original mesh would appear to be of little benefit.
hustxinxin 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
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[ANSYS Meshing] max mesh element size ulalala ANSYS Meshing & Geometry 8 January 20, 2013 17:30
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 13:40
Guides for calculation of mesh size for combustion Luk CFX 4 March 17, 2008 02:34
How to decide the mesh size? echo Siemens 1 May 23, 2006 05:34


All times are GMT -4. The time now is 17:49.