|
[Sponsors] |
Freeze some of the additional variables with transport scalers |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 14, 2020, 10:17 |
Freeze some of the additional variables with transport scalers
|
#1 |
New Member
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
Dear all,
Is there any way to freeze some of the additional variables while solving the rest? All the additional variables are defined as transport scalers. Some of them are initialised with external files and actually act as data stacks, thus, they are preferred to be frozen. I know the expert parameter might help when the model is overridden as "solve scalar = t/f". But the question is how could I disable the scaler equation selectively? Maybe someone has an idea? |
|
April 14, 2020, 17:47 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Under the additional variable definition, i.e.
ADDITIONAL VARIABLE: MyAV Option = Definition ... Update Loop = None ... END You can do that by a right-click on the icon in the outline for that variable, and use Edit in Command Editor
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
April 14, 2020, 23:08 |
|
#3 |
New Member
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
Thanks for your remarks. May I ask what version of CFX do you use? I tried exactly as your suggestion with CFX 17.1, but it shows little difference.
|
|
April 14, 2020, 23:36 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
May I ask why you are using transported variables for stack variables, when you have algebraic variables already for that exact purpose?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
April 14, 2020, 23:42 |
|
#5 |
New Member
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
Yes, you are right. The algebraic variables work perfectly for data stacks. However, these variables are intended to be updated during the calculation with a user-defined function. If algebraic variables are used, the updated value will be automatically overridden by the specific expressions.
|
|
April 15, 2020, 00:37 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Then don't you make the expression setting the algebraic variable point to your user function?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
April 15, 2020, 01:06 |
|
#7 |
New Member
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
||
April 15, 2020, 01:14 |
|
#8 | |
New Member
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
My problem has been solved by setting the variable type with the algebraic equations and disabling the loop updating by the command line "Update Loop = None" as suggested by Opaque.
Quote:
|
||
April 15, 2020, 01:25 |
|
#9 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
No, what I meant was that you set the algebraic variable to UserFortran() where UserFortran is a CEL link into your user fortran routine. Then you set it to whatever you like in your user fortran expression. Should be no need to use GETVAR. Have a look in the CFX documentation on user fortran expressions for CEL.
There should be no need to use undocumented features like Update Loop for this. But at the end of the day you have to use whatever works.....
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
April 15, 2020, 01:30 |
|
#10 | |
New Member
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
Quote:
|
||
April 15, 2020, 02:33 |
|
#11 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
That is what I am saying. If you use a user CEL function and not a junction box then you won't get this problem. User CEL functions are much easier to get working, as well.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
additional variables, user fortran |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Access additional variable in TRN file | rebholzp | CFX | 4 | May 27, 2016 09:08 |
Q on additional variables in CFX5 | bobbob | CFX | 0 | April 29, 2003 10:25 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |
Additional variables in CFX5 | Cath Noakes | CFX | 1 | May 13, 2002 11:18 |
additional equation for heat transport | Sascha Becker | CFX | 2 | December 20, 1999 03:58 |