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

An Error in Using groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2018, 10:06
Default An Error in Using groovyBC
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Hi

I want to create a special BC (boundary condition) in a patch of a cavity. So I used "groovyBC" in such a way:

Code:
movingWal
{
type              groovyBC;
variables       "teta=atan(pos().y/pos().x);r=pow((pow(pos().x,2)+pow(pos().y,2)),0.5)";
valueExpression     vector(-sin(teta), cos(teta), 0)*pow(teta,2);
value     uniform (0,0,0);
conditions      "r<1.008";
}

but it gives me this error:


continuity error cannot be removed by adjusting the outflow.

Do you know what the reason?
alimea is online now   Reply With Quote

Old   June 2, 2018, 03:42
Default
  #2
New Member
 
rakesh927's Avatar
 
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 11
rakesh927 is on a distinguished road
Hi alimea,


I am just giving a wild guess, just place the valueExpression in quotations ("").
Code:
valueExpression     "vector(-sin(teta), cos(teta), 0)*pow(teta,2)";
Rakesh
rakesh927 is offline   Reply With Quote

Old   June 2, 2018, 04:38
Default
  #3
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by rakesh927 View Post
Hi alimea,


I am just giving a wild guess, just place the valueExpression in quotations ("").
Code:
valueExpression     "vector(-sin(teta), cos(teta), 0)*pow(teta,2)";
Rakesh
Dear rakesh

Thanks for your reply
Yes, I have put it on "" but I didn't write it here!
I solved it fortunately by initializing with a solution based on fixedValue BC.
alimea is online now   Reply With Quote

Reply

Tags
groovybc, outflow


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] groovyBC for oscillatory flow liybzd OpenFOAM Community Contributions 5 November 12, 2018 08:53
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC zanilu70 OpenFOAM Community Contributions 4 December 13, 2016 07:46
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 04:30
[swak4Foam] groovyBC issue - k and epsilon sagnikmazumdar OpenFOAM Community Contributions 24 March 1, 2015 08:16
[swak4Foam] groovyBC and Eqn.setReference() benk OpenFOAM Community Contributions 3 June 2, 2011 09:49


All times are GMT -4. The time now is 22:24.