CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Global variables (https://www.cfd-online.com/Forums/openfoam-solving/58242-global-variables.html)

harly December 5, 2008 20:41

Hi, I want to define a vari
 
Hi,

I want to define a variable which consists of U_ and k_ two variables, for which the .oldTime()- scheme is working.

I want to stick my new variable into the ddt function, therefore the new variable should have this abilities too.

Where and How would I define such an variable ?

basically I want to define:

var = 0.5*magSqr(U_)+k_

and later I need

ddt(var)

in the kEpsilon.C

any thoughts?

thanks
-harly


All times are GMT -4. The time now is 08:30.