|
[Sponsors] |
How to use variable value in CEL expression correctly. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 16, 2019, 10:36 |
How to use variable value in CEL expression correctly.
|
#1 |
Member
Abdullah Arslan
Join Date: Apr 2019
Posts: 94
Rep Power: 7 |
Hi all,
I am doing a catalyst reaction simulation in a 20 x 3.1 x1 mm geometry (x,y,z). Catalyst start at 8mm from inlet and last till 12mm. To calculate pressure of methane, in a mixture name MSR, I am using these expression. MSR.CH4.molf*pabs areaAve(MSR.CH4.molf)@Catalyst*pabs The first expression I guess taking bulk value of methane in 3D domain of catalyst region like 4x3.1x1mm whereas 2nd expression is taking avg value of methane at surface name 'Catalyst' (4x1 mm). Problem is I think both expressions are not valid as reaction only take place at catalyst surface and not in bulk 3D domain. Also, as methane reacts with oxidant so its value decreases so taking avg of the value is not good assumption. P.S 1. both expression give different results (5% difference). 2. Though i apply the expression as source at Catalyst surface (so expression is applicable to surface only) but it calculates the value of bulk CH4 mole fraction in 3D if I use first expression, I think. Last edited by Goenitz; September 16, 2019 at 10:37. Reason: addition |
|
September 16, 2019, 10:43 |
|
#2 |
Member
Abdullah Arslan
Join Date: Apr 2019
Posts: 94
Rep Power: 7 |
In other words I want to use local methane mole fraction at Catalyst which is varying as reaction is proceeding.
|
|
September 16, 2019, 11:44 |
|
#3 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
The first expression is what you want.
The local value for each variable in the expression at the evaluation location, say face, element, point, etc. |
|
Tags |
cfx |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with CEL syntax for additional variable | rbezerra | CFX | 4 | July 31, 2015 11:47 |
A new error in CFX CEL expression | Chander | CFX | 5 | August 24, 2013 15:09 |
Help with creating a simple CEL expression | MJ55 | CFX | 10 | February 18, 2012 10:28 |
Additional variable as output of an expression | Chander | CFX | 1 | November 22, 2011 13:54 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |