Using Perl script and power Syntax in CFX-Pre
i am trying to simulate a moving mesh problem, and i need to have pressure on each node of moving surface. i interest to use Perl and command editor in CFX-pre in my simulation.
what is the capabilities of Perl scripts in CFX-pre?can i access to arrays of pressure matrix there?
Can i define user function by Perl scripts?
i search the forum about this but i find some example about use of Perl in CFD-Post.
Perl in CFX can only write stuff to the CCL file. It does not access any variable arrays. In fact perl is only evaluated when the run starts and is not evaluated during run-time.
You need user fortran to access the variable arrays during running.
But based on your post in another thread I do not think this is what you want. Simple CEL expressions should be fine for what you are doing.
Thanks for your kind answer ghorrocks.
about last thread (Access to array of pressure...) i use an expression like this: LogicalExp= if(x>0[m]&&x<10[m]&&z=1[m],Pressure,0)
my purpose from this expression is the pressure of specified location( 0<x<10, z=1) store in it ( Logical expression).
i tested it, but i think pressure of any node of location that i use in my relation be stored. (not in range 0<x<10 , z=1) !! Do you have any idea?
Thanks, best regards.
As I said, you cannot access variables using perl.
You need to use a CEL expression.
|All times are GMT -4. The time now is 19:01.|