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

RP_Get_Real

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By evandro991
  • 3 Post By ZAB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2005, 04:32
Default RP_Get_Real
  #1
evandro991
Guest
 
Posts: n/a
Does anybody know how to get the values of Gas Constant, Especific Heat, etc, through RP_Get_Real command and/or where can I to find more information about this?
donatello likes this.
  Reply With Quote

Old   August 27, 2017, 21:39
Default Reading values in UDF from RP_GET_REAL
  #2
ZAB
New Member
 
Zaka Muhammad
Join Date: Jan 2012
Posts: 6
Rep Power: 14
ZAB is on a distinguished road
Its too late, but someone else could benifit
First you need to create a scheme variable by typing in the followong command in either the fluent or in a file fileName.scm and reading it from Menu->File->Read->Scheme...
Code:
(rp-var-define 'gas-constant 8.314459 'real #f)
Then you can use the following command in your UDF file which should then be able to access your variable named gas-constant defined in scheme.
Code:
real R;
R = RP_GET_REAL("gas_constant");
you can use as many values in your UDF as you want with same procedure
ZAB is offline   Reply With Quote

Old   December 1, 2019, 23:13
Smile
  #3
Member
 
Soumitra Vadnerkar
Join Date: Aug 2018
Posts: 70
Rep Power: 7
soumitra2102 is on a distinguished road
Quote:
Originally Posted by ZAB View Post
Its too late, but someone else could benifit
It did.

P.S. I think the UDF must be Compiled not just Interpreted.

Thanks
soumitra2102 is offline   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



All times are GMT -4. The time now is 01:37.