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

[swak4Foam] How to compute total power released by chemical reaction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2018, 19:09
Default How to compute total power released by chemical reaction
  #1
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10
jf_vt is on a distinguished road
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); }
and get the error:
Code:
--> FOAM FATAL ERROR: 
 Parser Error for driver FieldValueExpressionDriver at "1.1-2" :"field dQ not existing or of wrong type"
"dQ"
  ^^
There is a discussion on this forum about this error message but this was related to a custom code.
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
jf_vt 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
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


All times are GMT -4. The time now is 12:25.