|
[Sponsors] |
February 14, 2012, 04:43 |
expression error in parametric set
|
#1 |
Senior Member
Join Date: Jul 2010
Posts: 152
Rep Power: 16 |
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 |
|
February 14, 2012, 04:52 |
|
#2 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
Have you tried ** instead of ^?
Just a guess as CFX uses a lot of FORTRAN and in FORTRAN you have to write **. |
|
February 14, 2012, 05:02 |
|
#3 |
Senior Member
Join Date: Jul 2010
Posts: 152
Rep Power: 16 |
thank you for quick reply. It really works so thanks again.
|
|
February 14, 2012, 05:04 |
|
#4 |
Senior Member
Join Date: Jul 2010
Posts: 152
Rep Power: 16 |
concerning the second question any ideas pls?
|
|
February 14, 2012, 05:07 |
|
#5 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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... |
|
February 14, 2012, 05:20 |
|
#6 |
Senior Member
Join Date: Jul 2010
Posts: 152
Rep Power: 16 |
ok..and is it possible to use some output parameter as a part of expression for input parameter?
|
|
February 14, 2012, 10:22 |
|
#7 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What value shall I set for the Convergence criteria? | steventay | CFX | 7 | May 14, 2010 12:44 |
$FOAM_USER_APPBIN & LIBBIN variables not set | rassilon | OpenFOAM Installation | 2 | February 16, 2010 20:54 |
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise | mbeaudoin | OpenFOAM Installation | 20 | June 17, 2008 06:43 |
Problem in installation of OpenFOAM | sachin | OpenFOAM Installation | 7 | January 22, 2008 01:40 |
Installation problems | shellbell1999 | OpenFOAM Installation | 9 | April 6, 2006 13:29 |