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

question aobut Gas_universal_constant

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2007, 14:09
Default question aobut Gas_universal_constant
  #1
magda
Guest
 
Posts: n/a
hi~all,

I have a question about changing the Gas_universal_constant. I am just wondering how can i do this??? Can I just wrtie a udf and define Gas_universal_constant a new number?? and what kind of function should i use?? Did anyone know how to write this?? I will really appreciate if anyone can help. thanks.

magda

  Reply With Quote

Old   May 10, 2007, 14:41
Default Re: question aobut Gas_universal_constant
  #2
pablo
Guest
 
Posts: n/a
you can not change the gas universal constant, because that way you would be changing the universe and therefore you could destroy it.
  Reply With Quote

Old   May 10, 2007, 17:05
Default Re: question aobut Gas_universal_constant
  #3
magda
Guest
 
Posts: n/a
Due to the Non-Dimensional ideal gas equation. I would like to change my GAS_UNIVERSAL_CONSTANT. It will become 1/Temperature; This is the function i wrote for UDF. However, it didn't work. BC it said GAS_UNIVERSAL_CONSTANT should be int. Do i miss anything?? Anyone knows how to do this??

DEFINE_PROPERTY(GAS_UNIVERSAL_CONSTANT,cell,thread ) {

real gasconstant; real temp=C_T(cell,thread);

gasconstant=temp;

return gasconstant;

}

  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
question about uds tanven FLUENT 2 July 5, 2015 12:22
Unanswered question niklas OpenFOAM 2 July 31, 2013 17:03
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
CHANNEL FLOW: a question and a request Carlos Main CFD Forum 4 August 23, 2002 06:55
question K.L.Huang Siemens 1 March 29, 2000 05:57


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