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

Need Help to define mixing efficiency in supersonic combustion model in CFD-Post

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2023, 08:26
Default 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
vietle is on a distinguished road
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.
Attached Images
File Type: png Screenshot 2023-05-02 145148.png (79.3 KB, 8 views)
vietle is offline   Reply With Quote

Old   May 8, 2023, 10:30
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
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.
Gert-Jan 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
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


All times are GMT -4. The time now is 13:16.