CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Global variables

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2008, 21:41
Default Hi, I want to define a vari
Daniel Harlacher
Join Date: Mar 2009
Location: Davis, CA, United States
Posts: 60
Rep Power: 16
harly is on a distinguished road

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?

harly is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Global variables or How to get a vector into an objectRegistry maddhi OpenFOAM Running, Solving & CFD 1 January 8, 2016 02:56
Global Initialisation Chirag CFX 1 July 21, 2008 09:54
Global Length Andres Bernal CFX 2 December 20, 2006 11:51
Global and local variables Astrid CFX 8 April 16, 2002 01:52
Global variables storage in CFX. Fabio Kasper CFX 1 October 6, 2000 09:21

All times are GMT -4. The time now is 03:37.