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

Global variables

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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


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 21:10.