# What are C_VAR, F_VAR and THREAD_VAR ?

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

 March 24, 2017, 07:43 What are C_VAR, F_VAR and THREAD_VAR ? #1 Member   Join Date: Jun 2014 Location: Taiwan Posts: 83 Rep Power: 5 Hi~ I found some example udf on the internet were using C_VAR, F_VAR and THREAD_VAR. The example is like 1. Cell flow variables: C_var(c,t) = flow variable “var” Where: var={R,P,U,V,W,T,H} For: density,pressure,velocity(XYZ),temperature,enthalp y 2. Boundary face flow variables: F_var(f,t) = flow variable “var” and I found this in "species.h" : F_VAR(f,THREAD,THREAD_VAR(THREAD).TYPE.yi[_ns]); and this in "profile.h" : F_VAR(f,t,prof) It seems a property from the Boundary Condition setting for GUI? 3. THREAD_VAR(tc).fluid.omega THREAD VAR(t).fluid.porous What are they and how to use@@? For example, how to find the name behind THREAD_VAR(tc) or F_VAR, C_VAR, like fluid.omega? Thank you!

 March 24, 2017, 09:41 #2 Senior Member   Join Date: Nov 2013 Posts: 1,072 Rep Power: 14 The Fluent manual explains this all.

 March 24, 2017, 09:50 #3 Member   Join Date: Jun 2014 Location: Taiwan Posts: 83 Rep Power: 5 I didn't find anything about C_VAR, F_VAR and THREAD_VAR in ANSYS Help of ANSYS 16. The search result is 0. I'll search other place. Thank you~

 March 24, 2017, 10:42 #4 Senior Member   Join Date: Nov 2013 Posts: 1,072 Rep Power: 14 It is hard to decode what you really want to know. Code: ```Cell flow variables: C_var(c,t) = flow variable “var” Where: var={R,P,U,V,W,T,H}``` I parse this as Code: ```C_R(c,t); C_P(c,t); C_U(c,t); C_V(c,t); //and so on``` Those are all things you can find in the Fluent manual, with a list of all those properties that can be extracted. A literal answer to your last question: you can find it in c_fluid.h. But this is not at all useful, unless you want to work at Ansys and improve Fluent.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

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