|
[Sponsors] |
how to access species molar weight in DEFINE_DIFFUSIVITY macro? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 3, 2019, 00:51 |
how to access species molar weight in DEFINE_DIFFUSIVITY macro?
|
#1 |
Senior Member
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 9 |
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 |
|
March 3, 2020, 08:44 |
|
#2 |
New Member
Tamil Nadu
Join Date: Dec 2019
Posts: 11
Rep Power: 7 |
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 |
|
March 3, 2020, 10:46 |
Molecular Weight
|
#3 |
Senior Member
|
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. |
|
March 3, 2020, 15:37 |
|
#4 |
New Member
Tamil Nadu
Join Date: Dec 2019
Posts: 11
Rep Power: 7 |
Thank you for the instant reply. i will carry out your suggestions and let you know.
Thanks Sowmiya |
|
April 25, 2020, 04:46 |
|
#5 | |
Member
Lee Jo
Join Date: Mar 2020
Posts: 30
Rep Power: 6 |
Quote:
I can't seem to find it in manuals...do you have any links to PDFs or sites?! |
||
|
|
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 |