CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   expression error in parametric set (https://www.cfd-online.com/Forums/cfx/97292-expression-error-parametric-set.html)

keeper February 14, 2012 04:43

expression error in parametric set
 
Hello everyone.

I am trying to define expression for first layer thickness as an input parameter in CFX study. But I am not able to define function exponantion (^).

The error message is: " unsupported operand type(s) for ^: 'float' and 'float'

How can I bypass this issue? Can anyone help please?

I have also one more question. Is it possible to modify mesh during the simulation? For example to calculate first few iterations and then use Reynolds number from this simulation to define first layer thickness for "improved simulation"?

Thanks for any reply.

Regards

monkey1 February 14, 2012 04:52

Have you tried ** instead of ^?
Just a guess as CFX uses a lot of FORTRAN and in FORTRAN you have to write **.

keeper February 14, 2012 05:02

thank you for quick reply. It really works so thanks again.

keeper February 14, 2012 05:04

concerning the second question any ideas pls?

monkey1 February 14, 2012 05:07

not really.
Except from running the simulation, stopping it at a special reynoldsnumber, remeshing, setting up a new file and restarting the computation...but i doubt it works automatically...

but as I said...dunno much about that...not to say nothing...never had such a problem and therefore never dealt with that subject...

keeper February 14, 2012 05:20

ok..and is it possible to use some output parameter as a part of expression for input parameter?

brunoc February 14, 2012 10:22

I guess you're running your case in Workbench, so yes, it is kind of possible. But WB doesn't really understand circular references, so every time your simulation is run and the output parameter is refreshed you have to hit the 'Update' button on WB so it restarts and updates everything with the new input parameter.

To make relations between parameters, simply click your input parameter at the 'Parameter Set' view and at the 'Description' box write the ID of the output parameter from the other cell (P1, P2, etc).

Cheers


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