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 |
Hello,
yes, T is oldTime(T) and you can write it oldTime(T). |
Thx for the help!!!
|
All times are GMT -4. The time now is 19:17. |