CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] groovy BC - which value is used (https://www.cfd-online.com/Forums/openfoam-community-contributions/152132-groovy-bc-value-used.html)

ThorgrimmCFD April 24, 2015 05:57

groovy BC - which value is used
 
Hi!

I am using the groovy BC for the temperature T as followed:
{
type groovyBC;
value uniform 263.15;
variables "cp0=1006.4;rho0=1.34;lambda=0.03;thickness=0.09;h a=0.3;Ta=293.15;heatFlux=1/(1/ha+thickness/lambda)*(Ta - T);gradT=heatFlux/(cp0*alphaEff*rho0);";
gradientExpression "gradT";
fractionExpression "0";
}

In my "variables" I have the temperature T and my question is:

"For T in "variables" which value is used? Is it the patch value one time step before or is used the value T_C (internal field value) or the groovy BC solves the "variables" expression for my current T?

I made some tests and as I understand it T is the patch value one time step before but I don't know for sure.

Thx for any help
Kind regards
Alex

rapierrz April 30, 2015 12:01

Hello,

yes, T is oldTime(T) and you can write it oldTime(T).

ThorgrimmCFD May 7, 2015 04:06

Thx for the help!!!


All times are GMT -4. The time now is 19:17.