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

how to access species molar weight in DEFINE_DIFFUSIVITY macro?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2019, 00:51
Default how to access species molar weight in DEFINE_DIFFUSIVITY macro?
  #1
Senior Member
 
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 9
Weiqiang Liu is on a distinguished road
Hi all,
I wanna define my own diffusion coefficient with DEFINE_DIFFUSIVITY macro. I need species molar weight to calculate effective diffusion coefficient. however, I don't want to set molar weight as constant. I want to loop all species molar weight with species index i.
I wonder is it doable in fluent. If it is, how can I do that?
Best regards.
Weiqiang
Weiqiang Liu is offline   Reply With Quote

Old   March 3, 2020, 08:44
Default
  #2
New Member
 
Tamil Nadu
Join Date: Dec 2019
Posts: 11
Rep Power: 7
Sowmiya is on a distinguished road
Hi Sir
Did you find a solution? If so Can you suggest how to do?
I too face the same issue.
Please kindly give me few suggestions.

Regards
Sowmiya
Sowmiya is offline   Reply With Quote

Old   March 3, 2020, 10:46
Default Molecular Weight
  #3
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
The solution to this is available within Fluent's UDF manual. Properties of species are indexed and can be accessed using indices starting with PROP_, e.g., PROP_mwi for molecular weight. Do note that these are only indices and need to be used as argument for the function generic_property to fetch the value of the property. Look for generic_property within Fluent UDF manual.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 3, 2020, 15:37
Default
  #4
New Member
 
Tamil Nadu
Join Date: Dec 2019
Posts: 11
Rep Power: 7
Sowmiya is on a distinguished road
Thank you for the instant reply. i will carry out your suggestions and let you know.


Thanks
Sowmiya
Sowmiya is offline   Reply With Quote

Old   April 25, 2020, 04:46
Default
  #5
Member
 
Lee Jo
Join Date: Mar 2020
Posts: 30
Rep Power: 6
the_sixth_hokage is on a distinguished road
Quote:
Originally Posted by vinerm View Post
The solution to this is available within Fluent's UDF manual. Properties of species are indexed and can be accessed using indices starting with PROP_, e.g., PROP_mwi for molecular weight. Do note that these are only indices and need to be used as argument for the function generic_property to fetch the value of the property. Look for generic_property within Fluent UDF manual.
Hi is there any macros for accessing other properties such as critical temperature, critical volume, molecular weight etc of species...

I can't seem to find it in manuals...do you have any links to PDFs or sites?!
the_sixth_hokage 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access species molecular weight in UDFs Ellen FLUENT 3 June 2, 2019 20:55
Macro to access java files in sub-directory abraum STAR-CCM+ 3 July 11, 2012 03:46
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 21:23
direct access to species greg Main CFD Forum 3 July 15, 2006 05:37
Macro to access mean variables Dragos FLUENT 2 February 2, 2005 12:30


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