Timedependent groovybc
Hey, I am just doing my first baby steps with groovybc and as a start I want to set a T boundary condition to a simple time dependent function. Not sure what I am doing wrong, this is the code:
Code:
oben Code:
--> FOAM Warning : Code:
--> FOAM FATAL ERROR: |
Quote:
- the syntax error: count the ( and the ) and you will be enlightened - "no value defined": groovyBC does not evaluate valueExpression during loading (the reason is that the expression might use a field that has not yet been loaded) so it falls back 'value' - if that is there. If it is not there it falls back to '0' - which it tells you in the warning. That is "good enough" for many applications. In your case (temperature) it is not so good (unless your physics make sense at 0 K). Solution is to provide a 'value' for the initialization with a sensible value ("value $internalField" is always a good guess) |
All times are GMT -4. The time now is 23:51. |