CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

snak4foam/groovyBC problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2013, 19:16
Default snak4foam/groovyBC problem
  #1
New Member
 
Krzysztof Lamorski
Join Date: Jan 2012
Posts: 7
Rep Power: 14
klamorski is on a distinguished road
Hi All,

I have a strange problem with setting boundary using groovyBC.

The solver used is modified Laplace solver. The aim is to elaborate more complicated Neumann type boundary, but I face the problem with using groovyBC at the very beginning during, testing phase after installation.

The boundary for testing was set with:

...
upperWall
{
type groovyBC;
fractionExpression "0";
gradientExpression "vector(0,0,0)";
}
...

During evaluation for the first timestep solver generates the error:
"--> FOAM FATAL ERROR: The expected return type scalar is different from the stored result type "vector"".

What this error message is about?
klamorski is offline   Reply With Quote

Old   July 30, 2013, 07:22
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by klamorski View Post
Hi All,

I have a strange problem with setting boundary using groovyBC.

The solver used is modified Laplace solver. The aim is to elaborate more complicated Neumann type boundary, but I face the problem with using groovyBC at the very beginning during, testing phase after installation.

The boundary for testing was set with:

...
upperWall
{
type groovyBC;
fractionExpression "0";
gradientExpression "vector(0,0,0)";
}
...

During evaluation for the first timestep solver generates the error:
"--> FOAM FATAL ERROR: The expected return type scalar is different from the stored result type "vector"".

What this error message is about?
OpenFOAM-boundary conditions (and therefor groovyBC too) mean with "gradient" "gradient in the direction normal to the patch". So if your field is a scalar then this gradient is a scalar too (contrary to what you'd expect in "normal mathematics")
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 30, 2013, 07:41
Default
  #3
New Member
 
Krzysztof Lamorski
Join Date: Jan 2012
Posts: 7
Rep Power: 14
klamorski is on a distinguished road
Dear Bernard,

thank you very much for your explanation. Now it is clear. I proceed with the work.
klamorski is offline   Reply With Quote

Reply

Tags
groovybc


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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