CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   HOW TO ACCESS THE CG VELOCITY (HELP) (https://www.cfd-online.com/Forums/fluent/50252-how-access-cg-velocity-help.html)

itoa January 9, 2009 10:44

HOW TO ACCESS THE CG VELOCITY (HELP)
 
Hi all,

if there are two dynamic zones 1 and 2

i want to write a udf for zone 2 in which i want to access the CG VEL of zone 1.

i cant find anything .

Thanks in advance

itoa

Amine January 13, 2009 05:53

Re: HOW TO ACCESS THE CG VELOCITY (HELP)
 
Itoa,,

You can use this macro :

DT_VEL_CG(dt)

itoa January 13, 2009 12:03

Re: HOW TO ACCESS THE CG VELOCITY (HELP)
 
Thanks for replying amine

but the dynamic thread pointer that is dt is not passed by the solver in this case. because i dont want to access the velocity of the zone on which the UDF will be applied instead of that i want to access the velocity of some other dynamic zone. I guess you have not read my question properly.

Thanks for your time itoa

Amine January 14, 2009 04:17

Re: HOW TO ACCESS THE CG VELOCITY (HELP)
 
Hi Itoa, In fact, I've not read completely your message, I was looking for a macro in a list of macros and I found that, I thought that it could help you !!

May someone can help u !!

Rami January 14, 2009 05:29

Re: HOW TO ACCESS THE CG VELOCITY (HELP)
 
itoa,

I haven't yet done this myself, but intend to in the near future.

You may either use a global variable (an array seems most convenient) or a file. In either case, each of the zones 1 and 2 will enter a UDF where they put their own CG velocity in the variable or write it to the file. They can access other zones CG velocity by retrieving it from the array or reading it from the file.

Please let us know if this (or other idea) solved your problem.

itoa January 17, 2009 04:07

Re: HOW TO ACCESS THE CG VELOCITY (HELP)
 
yes i solved my problem with same idea that rami described that is writing to and reading from a file.

Thanks all for your precious time and mind


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