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

[swak4Foam] groovyBC for coupled boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2014, 12:41
Default groovyBC for coupled boundary condition
  #1
Member
 
Join Date: Feb 2014
Posts: 32
Rep Power: 12
yeharav is on a distinguished road
Dear foamers,

I would like to set up the boundary condition for P that is coupled to the variable
T. For example:

dP
----- = - T
dn

on a specific patch (lets say floor)

I did try,
floor
{
type groovyBC;
gradientExpression "-thetaFloor";
fractionExpression "0";
variables "thetaFloor{floor}=T;";
value uniform 0;
}

But then I get

--> FOAM Warning :
From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
in file ExpressionResult/ExpressionResultI.H at line 332
The minimum value -47.6319 and the maximum 41.4594 differ. I will use the average -0.120515

every time step.

What am I doing wrong?
yeharav is offline   Reply With Quote

Old   July 3, 2014, 17:14
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 yeharav View Post
Dear foamers,

I would like to set up the boundary condition for P that is coupled to the variable
T. For example:

dP
----- = - T
dn

on a specific patch (lets say floor)

I did try,
floor
{
type groovyBC;
gradientExpression "-thetaFloor";
fractionExpression "0";
variables "thetaFloor{floor}=T;";
value uniform 0;
}

But then I get

--> FOAM Warning :
From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
in file ExpressionResult/ExpressionResultI.H at line 332
The minimum value -47.6319 and the maximum 41.4594 differ. I will use the average -0.120515

every time step.

What am I doing wrong?
This is a BC for the floor. So no need to access it as a "far away patch". Just write gradientExpression "-T" and you should be fine.

The problem of remote variables having to be uniform was discussed numerous times (I won't repeat this here especially as you don't need a remote)
__________________
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 6, 2014, 02:34
Default
  #3
Member
 
Join Date: Feb 2014
Posts: 32
Rep Power: 12
yeharav is on a distinguished road
Thanks it works.
yeharav 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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
[swak4Foam] Boundary condition set using groovyBC or codedFixedValue behzad-cfd OpenFOAM Community Contributions 17 December 19, 2017 13:30
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
[swak4Foam] turbulence boundary condition in groovyBC. immortality OpenFOAM Community Contributions 6 January 7, 2013 04:19


All times are GMT -4. The time now is 00:23.