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

How to get the gradient of species mass fraction?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 19, 2010, 12:47
Default How to get the gradient of species mass fraction?
  #1
New Member
 
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 9
legendyxg is on a distinguished road
Dear my friends.

I want to get access to the gradient of species mass fractions. The manual said that the macro C_YI_G(c,t,i) can be used only in the density-based solver. To use this in the pressure-based solver, you will need to set the rpvar 'species/save-gradients? to #t. What does that means? How can I set the "rpvar"? Since I know nothing about the scheming languages, can someone give me an example of how to set the rpval in my UDFs?

Thanks a lot.
legendyxg is offline   Reply With Quote

Old   August 23, 2010, 03:19
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 9
coglione is on a distinguished road
Type
(rpsetvar 'species/save-gradients? #t)
in the text-console of Fluent.
(rpgetvar 'species/save-gradients?) can be used to check the current value of this variable. It should return #t (true) now.
cheers
coglione is offline   Reply With Quote

Old   August 23, 2010, 21:07
Default
  #3
New Member
 
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 9
legendyxg is on a distinguished road
Thank you very much coglione!
legendyxg 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
mass fraction of species Ahmed FLUENT 0 April 18, 2007 11:57
Gradient of species mass fraction zhou FLUENT 0 July 19, 2004 17:36
gradient of species mass fraction zhou FLUENT 0 March 3, 2004 23:55


All times are GMT -4. The time now is 08:16.