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

How to obtain the mesh size?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2013, 03:00
Default How to obtain the mesh size?
  #1
New Member
 
Join Date: Mar 2012
Posts: 17
Rep Power: 5
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: 10,651
Rep Power: 84
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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: 17
Rep Power: 5
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] max mesh element size ulalala ANSYS Meshing & Geometry 8 January 20, 2013 18: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 03:34
How to decide the mesh size? echo CD-adapco 1 May 23, 2006 05:34
Gambit problems Althea FLUENT 21 February 6, 2001 08:05


All times are GMT -4. The time now is 13:53.