|
[Sponsors] |
How to get the gradient of species mass fraction? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 19, 2010, 13:47 |
How to get the gradient of species mass fraction?
|
#1 |
New Member
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 17 |
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. |
|
August 23, 2010, 04:19 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
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 |
|
August 23, 2010, 22:07 |
|
#3 |
New Member
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 17 |
Thank you very much coglione!
|
|
October 22, 2016, 15:35 |
?
|
#4 |
New Member
Amor
Join Date: Oct 2015
Posts: 1
Rep Power: 0 |
Hi,
I'm new to Fluent. Can you show me how to work with these macros? |
|
October 2, 2018, 05:35 |
Thank you very much!
|
#5 |
New Member
Yunsung Park
Join Date: Sep 2018
Posts: 2
Rep Power: 0 |
It was very helpful
I really appreciate your answer |
|
March 9, 2020, 18:25 |
|
#6 | |
Senior Member
mahdi rostami
Join Date: Jan 2020
Posts: 155
Rep Power: 6 |
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? |
||
August 4, 2020, 02:34 |
|
#7 |
New Member
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6 |
how to calculate gradient of species mole fraction in fluent?
|
|
August 4, 2020, 02:35 |
|
#8 |
New Member
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6 |
||
August 4, 2020, 02:36 |
|
#9 |
New Member
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6 |
How to calculate gradient of species mole fraction in fluent?
|
|
August 4, 2020, 02:38 |
|
#10 | |
New Member
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6 |
Quote:
|
||
August 4, 2020, 02:39 |
|
#11 | |
New Member
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6 |
Quote:
|
||
August 5, 2020, 01:57 |
How to calculate gradient of species mole fraction in fluent?
|
#12 | |
New Member
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6 |
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
gradient of species mass fraction | zhou | FLUENT | 1 | March 14, 2020 08:55 |
Gradient of species mass fraction | zhou | FLUENT | 1 | March 14, 2020 07:28 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
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 12:57 |