CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] changing refValue in groovybc (https://www.cfd-online.com/Forums/openfoam-community-contributions/107230-changing-refvalue-groovybc.html)

hawkeye321 September 20, 2012 16:23

changing refValue in groovybc
 
Hi FOAMERS
do you have any idea how can I change the value of refValue in groovybc to some other value than the default 0?

nimasam September 22, 2012 05:31

Quote:

Originally Posted by mahdiiowa (Post 382847)
Hi FOAMERS
do you have any idea how can I change the value of refValue in groovybc to some other value than the default 0?

add:

refValue uniform 1.0;

gschaider September 24, 2012 18:35

Quote:

Originally Posted by mahdiiowa (Post 382847)
Hi FOAMERS
do you have any idea how can I change the value of refValue in groovybc to some other value than the default 0?

The refValue will only be used in the first timestep anyway. After that it will be "overwritten" by the result of valueExpression


All times are GMT -4. The time now is 23:07.