CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Recursive Addititonal Variable (https://www.cfd-online.com/Forums/cfx/21453-recursive-addititonal-variable.html)

stex July 18, 2005 04:40

Recursive Addititonal Variable
 
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

Robin July 18, 2005 16:47

Re: Recursive Addititonal Variable
 
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

stex July 20, 2005 06:38

Re: Recursive Additional Variable
 
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


Andrea August 9, 2005 10:57

Re: Recursive Additional Variable
 
Bank Darlehn Info Banken Geld Berechnen Schweizerkredit Konto Privatdarlehen Schufafreie Kredite in bar Kreditvermittlung

Jesper August 15, 2005 08:41

Re: Recursive Additional Variable
 
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


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