|
[Sponsors] |
May 10, 2007, 14:09 |
question aobut Gas_universal_constant
|
#1 |
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 |
|
May 10, 2007, 14:41 |
Re: question aobut Gas_universal_constant
|
#2 |
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.
|
|
May 10, 2007, 17:05 |
Re: question aobut Gas_universal_constant
|
#3 |
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; } |
|
|
|
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 |