|
[Sponsors] |
Need Help to define mixing efficiency in supersonic combustion model in CFD-Post |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 2, 2023, 08:26 |
Need Help to define mixing efficiency in supersonic combustion model in CFD-Post
|
#1 |
New Member
Quoc-Viet Le
Join Date: Mar 2023
Posts: 18
Rep Power: 3 |
Hello guys, I want to define mixing efficiency of ethylene with if-condition
How can I define this in CFD-Post? I tried to define like this: areaInt((if (C2h4.Mass Fraction <= 0.06796, C2h4.Mass Fraction, (C2h4.Mass Fraction*(C2h4.Mass Fraction-1)/(1-0.06796))))* Density * Velocity u)@ Plane 140 But it seems wrong. |
|
May 8, 2023, 10:30 |
|
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Better ask these things in the CFX forum. These guys have most experience in CFD-Post. Nevertheless, an If statement does not exists in Post. However, you can use a step function. which is 1 when the argument is larger than 0. And it is zero below zero.
It should be something like 1. Define a variable func 2. func = Step(0.06796-C2h4.Mass Fraction)*C2h4.Mass Fraction + Step(C2h4.Mass Fraction0.06796-)*(C2h4.Mass Fraction*(C2h4.Mass Fraction-1)/(1-0.06796))))* Density * Velocity u) 3. areaInt(func)@ Plane 140 Regarding the step function, I'm not completely sure I did it correctly. Best to try the function in Excel first to graphically make sure everything is okay. Last edited by Gert-Jan; May 31, 2023 at 05:23. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fixed Temperature Constraint problems for coal combustion | yglovella | OpenFOAM | 0 | February 16, 2023 02:00 |
Problem on EDC model for coal combustion | lei | FLUENT | 4 | September 3, 2015 10:39 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 11:19 |