CFD Online Logo CFD Online URL
Home > Forums > FLUENT

question aobut Gas_universal_constant

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

LinkBack Thread Tools Display Modes
Old   May 10, 2007, 13:09
Default question aobut Gas_universal_constant
Posts: n/a

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.


  Reply With Quote

Old   May 10, 2007, 13:41
Default Re: question aobut Gas_universal_constant
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, 16:05
Default Re: question aobut Gas_universal_constant
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??


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


return gasconstant;


  Reply With Quote


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about uds tanven FLUENT 2 July 5, 2015 11:22
Unanswered question niklas OpenFOAM 2 July 31, 2013 16: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 05:55
question K.L.Huang CD-adapco 1 March 29, 2000 04:57

All times are GMT -4. The time now is 09:29.