mick223 |
September 15, 2015 22:39 |
Warning running groovyBC: "min ... max ... differ, I will use the average"
Hi everyone,
I'm running a case where heat loss is calculated through the walls using a groovyBC gradientExpression. The code used for this in 0/T is:
Code:
leftWall
{
type groovyBC;
refValue uniform 1680;
refGradient uniform 0;
valueFraction uniform 1;
value uniform 1680;
valueExpression "0";
gradientExpression "(Toutlet > 1680) ? ((-(h*A*(Toutlet-T_inf)+esp*A*sig*(pow(Toutlet,4)-pow(T_surr,4))))/kl) : ((-(h*A*(Toutlet-T_inf)+esp*A*sig*(pow(Toutlet,4)-pow(T_surr,4))))/ks) ";
fractionExpression "0";
evaluateDuringConstruction 0;
variables
9
(
"h=10.0;"
"A=0.00845561879;"
"T_inf=297.0;"
"T_surr=297.0;"
"esp=0.3;"
"sig=5.67e-8;"
"ks=20;"
"kl=60;"
"Toutlet{leftWall}=oldTime(T);"
)
;
timelines (
);
lookuptables (
);
}
The case runs and the results are similar to what is expected, however the warning:
Code:
--> FOAM Warning :
From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
in file ExpressionResult/ExpressionResultI.H at line 350
The minimum value 1674.98 and the maximum 1675.21 differ. I will use the average 1675.14
--> FOAM Warning :
From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
in file ExpressionResult/ExpressionResultI.H at line 350
The minimum value 1682.8 and the maximum 1959.02 differ. I will use the average 1838.05
--> FOAM Warning :
From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
in file ExpressionResult/ExpressionResultI.H at line 350
The minimum value 1682.8 and the maximum 1957.31 differ. I will use the average 1838.05
Any advice would be greatly appreciated. I have a feeling that it may be because of how Toutlet{backwall} is specified, it is looking to take data from another patch which would be required to be a uniform field, however I am not sure.
Thanks,
Mick.
|