CFD Online Logo CFD Online URL
Home > Forums > FLUENT

[UDF]How to get flow variables at specific coords?

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

LinkBack Thread Tools Display Modes
Old   July 17, 2002, 09:58
Default [UDF]How to get flow variables at specific coords?
Mickael PERRIN
Posts: n/a

I would to get flow variables in UDF at specific coordinates. However I only see functions like C_V(c,t) or C_P(c,t) which required the cell and thread pointers.

So it is possible to know the cell and thread pointers with physical coordinates?

The only one solution I see for instance is to do a loop over all cells on the domain and to test their coordinates... I am not sure of efficiency

So, any ideas are welcome.


  Reply With Quote

Old   July 18, 2002, 15:11
Default Re: [UDF]How to get flow variables at specific coo
Posts: n/a
There might be an efficient way if we knew exactly what you are attempting. However, the only way I can think of is to loop to match the x, y, z location with the variable. If you can create a surface in your original mesh, i.e. so a thread ID exists for it, you could minimize the search time by focussing the search on that surface ID.
  Reply With Quote

Old   July 18, 2002, 15:25
Default Re: [UDF]How to get flow variables at specific coo
Mickael PERRIN
Posts: n/a
Thanks for your answer !

In fact, my main goal is to export data at specific location in all data files. I want to draw the pressure, speed,etc.. at specific locations in function of time.

I know how to do the loop over all data files. However, i have no idea of an efficient way to write into a file the pressure, speed at specific locations!

I hope this help you to find an efficient way !

Thanks again.

Best regards.

  Reply With Quote


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
Target Mass Flow Rate Nitin FLUENT 9 June 17, 2017 10:30
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
transform navier-stokes eq. to euler-eq. pxyz Main CFD Forum 37 July 7, 2006 08:42
Question on 3D potential flow Adrin Gharakhani Main CFD Forum 13 June 21, 1999 05:18
computation about flow around a yawed cone Tylor Xie Main CFD Forum 0 June 9, 1999 07:33

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