groovyBC results diferent from funkySetBoundaryField?!
Hello,
I'm trying to run a case with groovyBC because my boudary condition will need to change with time and I notice that time() is available there. However when I'm running the case (without using time, check bottom expression) the correct values are putted on the boundary but the internal field it's not changing. Code:
Inlet Perhaps I'm doing something wrong with groovy?!:confused: |
Quote:
BTW: which version of swak are you using? Check if there is an output "swakVersion: x.y.z" just below the regular OF-Header when you run funkySetBoundaryField. Not that I think that this is your problem because I'm not aware of a bug like this in the past |
The value and refValue are the same and both of them are the same as funkySetBoudary.
valueFraction should be "1" Drichilet BC The version is 0.2.0. But, one strange thing happen, when I'm use a similar expression for a scalar its works. Maybe its somehow related to my code (or not). At least I have find a way of get around this. Thanks for your help Bernhard, Carlos |
Quote:
Quote:
What you could do is: set the type of the BC to mixed. Set the refValue with funkySetBoundaryField to the value you want and try this. If the problem persists then it is a problem with mixed |
Yes it is "1".
I'm sure now that the problem is with my code. I'm working on a solution now.. Thanks, Carlos |
Another question..
Imagine that in my BC I need to know the field value in the cell next to the wall and I need to know the distance from the BC to that cell. Something like this Code:
One feature that was suggested by a user for old-school groovyBC was to access the values on other boundaries • This is done via external variables • For technical reasons only a single value (min, max, average) is stored • This has been extended for other entities (fields, sets, . . . ) Thanks, Carlos |
Quote:
Quote:
|
Great!!
Your utilities are the best... Thanks, Carlos |
Quote:
|
All times are GMT -4. The time now is 21:09. |