|
[Sponsors] |
[swak4Foam] Temperature Average on internal faceZone with swak4Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 26, 2013, 22:27 |
Temperature Average on internal faceZone with swak4Foam
|
#1 |
New Member
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13 |
Hello,
I was trying to get the average temperature over a faceZone. I installed swak4Foam and add the following lines in controlDict: Code:
T_averaged_CORE { type swakExpression; variables "T"; valueType faceZone; zoneName CORE; accumulations ( average ); expression "average(T)"; verbose true; } Code:
--> FOAM FATAL ERROR: Context: "- From dictionary: . T_averaged_CORE" No terminating ';' found in expression '"T"' |
|
October 26, 2013, 22:48 |
|
#2 |
New Member
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13 |
I solved the problem by using a similar sintax in the mass flow example
http://openfoamwiki.net/index.php/Co...e_calcMassFlow Code:
T_averaged_CORE { type swakExpression; enabled true; autoInterpolate true; // I introduced the previous instruction in order to avoid the error : Could not find a field name T of type scalar (neither surfaceScalarField nor volScalarField) autoInterpolate outputControl timeStep; outputInterval 1; //variables "T"; valueType faceZone; zoneName CORE; expression "T"; accumulations ( average ); verbose true; } |
|
October 28, 2013, 18:20 |
|
#3 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] time average sample set with swak4Foam | cnsidero | OpenFOAM Community Contributions | 3 | July 30, 2018 10:06 |
Anys Average temperature | apo | FLUENT | 2 | November 4, 2014 12:31 |
time derivative of average temperature | will_ca | OpenFOAM Post-Processing | 0 | September 10, 2014 11:49 |
mass weighted average temperature along a curve | preetam69 | FLUENT | 1 | July 5, 2013 02:48 |
[swak4Foam] Mass flow through faceZone using swak4foam when running in parallel | billie | OpenFOAM Community Contributions | 22 | May 14, 2013 07:20 |