farshadexp |
May 7, 2019 04:12 |
Swak4foam
Hi
I use swak4foam to calculate Nusselt number on a boundary:
Code:
functions
{
{
type swakExpression;
ignore_unimplemented_simpleFunctionObject::movePoints true;
valueType faceSet;
outputControlMode timeStep;
outputInterval 1;
writeStartTime 0;
fieldName k0;
verbose true;
autowrite false;
accumulations (average);
log true;
}*/
NusseltNumber
{
type patchExpression;
ignore_unimplemented_simpleFunctionObject::movePoints true;
outputControlMode timeStep;
outputInterval 1;
patches
(
hot
cold
);
verbose true;
variables
(
"T0=293;"
"L=1;"
"Th=307;"
"Tc=288;"
);
expression "snGrad(T)*L*((0.00000000000001*(pow(T,4)))+(0.00000000005*(pow(T,3)))-(0.00000008*(pow(T,2)))+(0.0001*T)-0.0006)/(((0.00000000000001*(pow(T0,4)))+(0.00000000005*(pow(T0,3)))-(0.00000008*(pow(T0,2)))+(0.0001*T0)-0.0006)*(Th-Tc))";
accumulations
(
average
max
weightedAverage
);*/
log true;
}
}
But as you see it just only report average, maximum and weighted average. How can I have Nusselt number for all cells along a patch?
Appreciated
|