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

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

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 7, 2009, 06: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: 7
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, 10:58
Default
  #2
New Member
 
Join Date: Apr 2009
Location: KA, Germany
Posts: 20
Rep Power: 8
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, 13:40
Default
  #3
New Member
 
anonymous
Join Date: Aug 2009
Posts: 4
Rep Power: 7
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, 22:48
Default
  #4
New Member
 
maye
Join Date: Oct 2009
Posts: 9
Rep Power: 7
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, 02:41
Default
  #5
New Member
 
Join Date: Apr 2009
Location: KA, Germany
Posts: 20
Rep Power: 8
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

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



All times are GMT -4. The time now is 20:59.