CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] groovy BC - which value is used

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By rapierrz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2015, 06:57
Default groovy BC - which value is used
  #1
New Member
 
Alexander
Join Date: Aug 2014
Location: Graz
Posts: 11
Rep Power: 12
ThorgrimmCFD is on a distinguished road
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
ThorgrimmCFD is offline   Reply With Quote

Old   April 30, 2015, 13:01
Default
  #2
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hello,

yes, T is oldTime(T) and you can write it oldTime(T).
ThorgrimmCFD likes this.
rapierrz is offline   Reply With Quote

Old   May 7, 2015, 05:06
Default
  #3
New Member
 
Alexander
Join Date: Aug 2014
Location: Graz
Posts: 11
Rep Power: 12
ThorgrimmCFD is on a distinguished road
Thx for the help!!!
ThorgrimmCFD is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Groovy BC - time dependend Inlet Tobi OpenFOAM Community Contributions 20 August 27, 2020 10:22
[swak4Foam] How to use groovy Boundary conditions Zhiheng Wang OpenFOAM Community Contributions 8 November 6, 2019 10:28
[swak4Foam] groovy boundary condition for pressure Ahmed Khattab OpenFOAM Community Contributions 4 November 14, 2015 21:18
[swak4Foam] groovy BC Ahmed Khattab OpenFOAM Community Contributions 4 November 7, 2013 08:51
[swak4Foam] using groovy boundry condition in multiphase problom javad814 OpenFOAM Community Contributions 1 November 30, 2011 17:29


All times are GMT -4. The time now is 01:33.