How to get the gradient of species mass fraction?
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. |
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 |
Thank you very much coglione!
|
?
Hi,
I'm new to Fluent. Can you show me how to work with these macros? |
Thank you very much!
It was very helpful
I really appreciate your answer |
Quote:
DEFINE_ADJUST(gradient, domain) { Thread *t; Thread **pt; cell_t c; Domain *pDomain = DOMAIN_SUB_DOMAIN(domain,P_PHASE); real voidx, voidy, voidz=0.0; mp_thread_loop_c (t,domain,pt) { if (FLUID_THREAD_P(t) && n_udm > 0) { Thread *tp = pt[P_PHASE]; begin_c_loop (c,t) { C_UDMI(c,t,0) = C_YI_G(c,tp,0)[0]; } end_c_loop (c,t) } } } this code compile and initialize correctly without any error but in calculating in 1st iteration appear the message "the f1 process could not be started" and fluent crashes. Where do you think the problem is? |
how to calculate gradient of species mole fraction in fluent?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
How to calculate gradient of species mole fraction in fluent?
Quote:
I was trying to get calculate the gradients of species mass and mole fraction in fluent. I could find the command for gradient of species mass fraction from your chat in this platform. Could you help me how to get the gradient of species mole fraction in ANSYS-FLUENT? Thanking you in anticipation, With warm wishes, Debojit Sharma |
All times are GMT -4. The time now is 08:41. |