|
[Sponsors] |
[swak4Foam] How to compute total power released by chemical reaction |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 1, 2018, 19:09 |
How to compute total power released by chemical reaction
|
#1 |
Member
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10 |
Hi
With reactingFoam, I need to know at each time step the total power released by chemical reactions. The field dQ provides the power released in each cell so I need to sum dQ on all cells. I try with swak4Foam field expression: Code:
{type swakExpression; valueType internalField; verbose true; expression "dQ"; writeStartTime no; accumulations (sum); } Code:
--> FOAM FATAL ERROR: Parser Error for driver FieldValueExpressionDriver at "1.1-2" :"field dQ not existing or of wrong type" "dQ" ^^ This happens with 2DcounterFlame tutorial I understand that this might be related to the fact that dQ has not be created when the function Object calls it ( I am not sure of this) but on the other hand I dont see any options to wait for it. I tested other fields and they all worked fine with the function object above. What do I miss? What are the options to calculate sum(dQ) at runtime for each time step? Thanks JF |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compute the power of small wind turbine. | Luolin | FLUENT | 9 | May 27, 2013 15:52 |
Setting Chemical Reaction | usker | Siemens | 2 | April 29, 2009 10:21 |
Specifying a chemical reaction | hagupta | CFX | 3 | March 22, 2006 02:46 |
Simpler Chemical Reaction Problem | Sam | Siemens | 7 | February 7, 2006 10:28 |
as to chemical reaction simulation | Jun von Wang | FLUENT | 0 | July 7, 2005 06:47 |