CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

groovy BC - which value is used

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By rapierrz

Reply
 
LinkBack Thread Tools Display Modes
Old   April 24, 2015, 05:57
Default groovy BC - which value is used
  #1
New Member
 
Alexander
Join Date: Aug 2014
Location: Graz
Posts: 11
Rep Power: 5
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, 12:01
Default
  #2
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 4
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, 04:06
Default
  #3
New Member
 
Alexander
Join Date: Aug 2014
Location: Graz
Posts: 11
Rep Power: 5
ThorgrimmCFD is on a distinguished road
Thx for the help!!!
ThorgrimmCFD is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovy BC Ahmed Khattab OpenFOAM 4 November 7, 2013 08:51
Groovy BC - time dependend Inlet Tobi OpenFOAM Pre-Processing 16 October 20, 2013 16:54
zerogradient in groovy immortality OpenFOAM Pre-Processing 7 October 18, 2013 07:11
Setting BC for a passive scalar (groovy vs fvOptions) Tobi OpenFOAM Pre-Processing 0 May 23, 2013 14:53
using groovy boundry condition in multiphase problom javad814 OpenFOAM 1 November 30, 2011 17:29


All times are GMT -4. The time now is 16:20.