Error using groovyBC - 'parser error for expression driver'
I'm using a valueExpression in my 0/U file in order to implement a boundary condition which is a function of a 'measurement' (probe reading). In the controlDict I have:
Code:
vorticity Code:
sensorMeasurement In my 0/U file I then have something which looks like this: Code:
BOUNDARY1 Code:
[0] --> FOAM FATAL ERROR: Thank you |
No ideas?
No ideas? :(
|
An idea
I've just thought - this could potentially because I'm using a quantity I've computed called vorticity, which is a vector quantity - I actually only mean the z-component of the vector - what is the syntax in openFOAM to address a particular element of the variable?
In matlab for example one would write vorticity(3) to access the third element of the vector. Thanks |
Quick answer: I'm not familiar enough with groovyBC, but I suspect that the problem is in the first line of the expression list, namely this part:
Code:
set'vorticity_sensor1 Where did you read about this feature, namely the ability to use the value on a "set"? |
Quote:
I *think* I've now got it working, by saying average(vorticity.z) in order to access the z-component. It seems to be running fine, so we'll see. |
All times are GMT -4. The time now is 07:31. |