CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

Recursive Addititonal Variable

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 18, 2005, 04:40
Default Recursive Addititonal Variable
  #1
stex
Guest
 
Posts: n/a
Hi, I need to define an Addititonal Variable, function of this variable itself, i.e.:

Var = Var + 1

I can do it but I can not initialize the variable so the solver gives errors!!!

How can I do that with CCL in CFX-PRE?

Many thanks
  Reply With Quote

Old   July 18, 2005, 16:47
Default Re: Recursive Addititonal Variable
  #2
Robin
Guest
 
Posts: n/a
Hi Stex,

If you write this as an expression, you will get an error. If you actually create an algebraic additional variable, you can initialize it as you do velocity, temperature, etc.

Regards, Robin
  Reply With Quote

Old   July 20, 2005, 06:38
Default Re: Recursive Additional Variable
  #3
stex
Guest
 
Posts: n/a
Where in ccl editor?

FLOW: DOMAIN: hot

FLUID MODELS:

ADDITIONAL VARIABLE: mshot

Additional Variable Value = mshot + (30*(projMassFLow-MassFlow)/projMassFLow)

Option = Algebraic Equation

END

END END END

or

FLOW: INITIALISATION:

Option = Automatic

INITIAL CONDITIONS:

Velocity Type = Cartesian

CARTESIAN VELOCITY COMPONENTS:

Option = Automatic

END

STATIC PRESSURE:

Option = Automatic

END

TEMPERATURE:

Option = Automatic

END

END END END

  Reply With Quote

Old   August 9, 2005, 10:57
Default Re: Recursive Additional Variable
  #4
Andrea
Guest
 
Posts: n/a
Bank Darlehn Info Banken Geld Berechnen Schweizerkredit Konto Privatdarlehen Schufafreie Kredite in bar Kreditvermittlung
  Reply With Quote

Old   August 15, 2005, 08:41
Default Re: Recursive Additional Variable
  #5
Jesper
Guest
 
Posts: n/a
Hi stex, Did you find a solution? I have the same problem with initialization of an additional variable based on an algebraic equation.

Regards Jesper
  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
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 09:19
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


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