|
[Sponsors] |
May 29, 2018, 10:06 |
An Error in Using groovyBC
|
#1 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
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? |
|
June 2, 2018, 03:42 |
|
#2 |
New Member
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 11 |
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)"; |
|
June 2, 2018, 04:38 |
|
#3 | |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Quote:
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. |
||
Tags |
groovybc, outflow |
|
|
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 |