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

[swak4Foam] groovy BC, gradientExpression, return 0 value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2016, 06:40
Default groovy BC, gradientExpression, return 0 value
  #1
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
Dear Foamer,

solver: laplacianFoam
openfoam: foam-extend-3.0

I am using groovyBC to prescribe a neumann boundary condition in my heat conduction analysis, the gradient value will be updated during the simulations. however, it always return a zero gradient value, can someone check my setup of boundary condition for temperature?
Code:
OF_wall_01
{
type groovyBC;
value $internalField
gradientExpression "gt";
fractionExpression "0"
variables (
    "T_ambinet = 3.000000e+02;"
    "k = 1.454000e+01;"
    "hfc = 100.0;"
    "gt = hfc*(T-T_ambinet)/k;"
);
}
I also tried to set a valueExpression, where I think the value should be constant as 300.0.
Code:
OF_wall_01
{
    type groovyBC;
    value $internalField
    valueExpression "300.0";
    fractionExpression "1"
}
However, it is surprised to me that the temperature field is reduced to 1.9 K.

Thank you in advance!
Kan
nwpukaka 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
undefined reference to a C++'s class member function linyanx OpenFOAM Programming & Development 5 May 12, 2017 13:44
error adding void fraction into the solver & Error when chemistry is on cmigueis OpenFOAM Programming & Development 23 August 14, 2016 15:53
Creating a new field from terms of the turbulence model HaZe OpenFOAM Programming & Development 15 November 24, 2014 14:51
Derive fixed number of phase from clone () in multiphaseEulerFoam Solver Aj Nair OpenFOAM Programming & Development 0 December 16, 2013 21:41
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48


All times are GMT -4. The time now is 08:37.