|
[Sponsors] |
December 4, 2012, 16:44 |
Two questions about groovyBC
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
1)if the variable or constant names in variables list is same as the name of a field it makes any problem?names should be different?
2)as well as variables is it possible to write formulas in valueExpression and others in more than one line?how? thanks again. |
|
December 4, 2012, 16:53 |
|
#2 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
another little question.
groovy makes error in ^ sign.is there another easy way for making power(except itself!) thanks. |
|
December 4, 2012, 19:38 |
|
#3 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Power function is named pow. But all that is (I admin not very verbosely) documented at http://openfoamwiki.net/index.php/Co...e_implemented:
__________________
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 |
||
December 4, 2012, 19:42 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
But the answer is: a variable with the name alpha "shadows" a field with the name alpha ... no problem but you can't access the field anymore. Anyway: if you're unsure about the behaviour name the variable differently You asked that elsewhere
__________________
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 |
||
|
|
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] some questions about neibours of patches in groovyBC | immortality | OpenFOAM Community Contributions | 7 | March 3, 2013 12:38 |
[swak4Foam] questions about groovyBC | immortality | OpenFOAM Community Contributions | 2 | December 14, 2012 11:07 |