CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Global variables (

harly December 5, 2008 21:41

Hi, I want to define a vari

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


in the kEpsilon.C

any thoughts?


All times are GMT -4. The time now is 12:35.