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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2002, 10:58
Default [UDF]How to get flow variables at specific coords?
  #1
Mickael PERRIN
Guest
 
Posts: n/a
Hello,

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.

Thanks

Mickaël PERRIN
  Reply With Quote

Old   July 18, 2002, 16:11
Default Re: [UDF]How to get flow variables at specific coo
  #2
Lanre
Guest
 
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, 16:25
Default Re: [UDF]How to get flow variables at specific coo
  #3
Mickael PERRIN
Guest
 
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.

Mickaël PERRIN
  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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Target Mass Flow Rate Nitin FLUENT 9 June 17, 2017 11:30
transform navier-stokes eq. to euler-eq. pxyz Main CFD Forum 37 July 7, 2006 09:42
Question on 3D potential flow Adrin Gharakhani Main CFD Forum 13 June 21, 1999 06:18
computation about flow around a yawed cone Tylor Xie Main CFD Forum 0 June 9, 1999 08:33


All times are GMT -4. The time now is 22:16.