CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to get the coordinates and velocities at the grid center and nodes simultaneously

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2009, 07:36
Default How to get the coordinates and velocities at the grid center and nodes simultaneously
  #1
New Member
 
maye
Join Date: Oct 2009
Posts: 9
Rep Power: 17
maye761 is on a distinguished road
when fluent is calculating, i want to export the coordinates and velocities at the grid center and nodes together to a data file. How should I do?
maye761 is offline   Reply With Quote

Old   October 12, 2009, 11:58
Default
  #2
New Member
 
Join Date: Apr 2009
Location: KA, Germany
Posts: 20
Rep Power: 17
Häwimeddel is on a distinguished road
Do you want to do this for every iteration?

Anyway, the macros you are looking for are

Code:
C_CENTROID(x,c,t); //coords of cell centre
C_U(c,t) //flow velocity x
C_V(c,t) //flow velocity y
C_W(c,t) //flow velocity z
Just loop over all the cells in the domain with

Code:
begin_c_loop(cell,thread) 
{
}
end_c_loop(cell,thread)
Häwimeddel is offline   Reply With Quote

Old   October 12, 2009, 14:40
Default
  #3
New Member
 
anonymous
Join Date: Aug 2009
Posts: 4
Rep Power: 17
crazyman is on a distinguished road
hey hi i want to know how do we define heat source in fluent
crazyman is offline   Reply With Quote

Old   October 18, 2009, 23:48
Default
  #4
New Member
 
maye
Join Date: Oct 2009
Posts: 9
Rep Power: 17
maye761 is on a distinguished road
Well, this is the macros for velocities at center of cells. How to export velocities at nodes?
maye761 is offline   Reply With Quote

Old   October 19, 2009, 03:41
Default
  #5
New Member
 
Join Date: Apr 2009
Location: KA, Germany
Posts: 20
Rep Power: 17
Häwimeddel is on a distinguished road
I don´t believe there are any macros for getting the velocities at the nodes. I believe Fluent only solves the velocities for the cell centres. You would have to interpolate betwen the cell centre velocities to get a value for the velocities at the nodes.
Häwimeddel 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



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