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

What are C_VAR, F_VAR and THREAD_VAR ?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 24, 2017, 07:43
Default What are C_VAR, F_VAR and THREAD_VAR ?
  #1
Member
 
Join Date: Jun 2014
Location: Taiwan
Posts: 89
Rep Power: 5
SJSW is on a distinguished road
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!
SJSW is offline   Reply With Quote

Old   March 24, 2017, 09:41
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,135
Rep Power: 15
pakk will become famous soon enough
The Fluent manual explains this all.
pakk is offline   Reply With Quote

Old   March 24, 2017, 09:50
Default
  #3
Member
 
Join Date: Jun 2014
Location: Taiwan
Posts: 89
Rep Power: 5
SJSW is on a distinguished road
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~
SJSW is offline   Reply With Quote

Old   March 24, 2017, 10:42
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,135
Rep Power: 15
pakk will become famous soon enough
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.
pakk 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 21:07.