CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Global variables

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 5, 2008, 21:41
Default Hi, I want to define a vari
  #1
Member
 
Daniel Harlacher
Join Date: Mar 2009
Location: Davis, CA, United States
Posts: 60
Rep Power: 8
harly is on a distinguished road
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
harly is offline   Reply With Quote

Reply

Thread Tools
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 On
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 0 August 19, 2008 07:08
Global Initialisation Chirag CFX 1 July 21, 2008 08:54
Global Length Andres Bernal CFX 2 December 20, 2006 11:51
Global and local variables Astrid CFX 8 April 16, 2002 00:52
Global variables storage in CFX. Fabio Kasper CFX 1 October 6, 2000 08:21


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