|
[Sponsors] |
[swak4Foam] Warning running groovyBC: "min ... max ... differ, I will use the average" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 15, 2015, 23:39 |
Warning running groovyBC: "min ... max ... differ, I will use the average"
|
#1 |
New Member
Mick McGill
Join Date: Jun 2015
Posts: 16
Rep Power: 11 |
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 ( ); } 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 Thanks, Mick. |
|
September 21, 2015, 11:52 |
|
#2 |
New Member
Mick McGill
Join Date: Jun 2015
Posts: 16
Rep Power: 11 |
For anyone that comes accross this wanting to know what the warning was for, the use of the {} bracketed terms eg
Code:
Toutlet{leftWall}=oldTime(T) |
|
July 28, 2017, 13:21 |
|
#3 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
|
||
July 30, 2017, 09:55 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
General interpolation from one patch to another is tricky and would need additional specifications (especially if the patches are not conformal) so swak4Foam doesn't bother to even try and only accepts uniform patches. If the patches are coupled or mapped the functions neighbourField(T) or mapped(T) give the corresponding values. But oldTime won't work in these cases
__________________
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 |
|
February 7, 2023, 09:48 |
|
#5 | |
Member
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 11 |
Quote:
Seems there is no way other than doing it in C++ |
||
Tags |
groovybc, heat loss, warnings |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cavitation around NACA hydrofoil using interPhaseChangeFoam | Kozan | OpenFOAM Running, Solving & CFD | 28 | March 12, 2023 00:30 |
multiphaseEulerFoam (OF2.3.0) : Courant number explodes when running in parallel | Mehrez | OpenFOAM Running, Solving & CFD | 10 | May 18, 2016 12:44 |
Sudden jump in Courant number | NJG | OpenFOAM Running, Solving & CFD | 7 | May 15, 2014 14:52 |
[Gmsh] discretizer - gmshToFoam | Andyjoe | OpenFOAM Meshing & Mesh Conversion | 13 | March 14, 2012 05:35 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |