communication between python and rp_varibles #3319
Replies: 2 comments 4 replies
-
Hello Etienne, By the way -- from you description it sounds if you want to control the outlet static pressure boundary condition based on the outlet mass flow rate through that same outlet. |
Beta Was this translation helpful? Give feedback.
-
@etiennelame Would you also know how to create an rp-var within the pythonic/fluent side? I tried this which follows an example in the doc: I.e, something similar to (rp-var-define) but without using scheme_eval. best, |
Beta Was this translation helpful? Give feedback.
-
hi everyone,
Recently i am working with a case, where I read the outlet flow and use it to calculate outlet pressure boundary. Instead of in udf, i want to calculate it in python.
My idea is to create a rp-variable, calculate the outlet flow with DEFINE_ON_DEMAND and set the rp-variable value, and read the rp-variable value in python. The session class has access to the rp-variable value.
However, I find that the rp-variable read with python do not change, even though it is changed in udf or changed in Fluent GUI console.
Now, to do the same thing, I have to report the flow in fluent and capture the fluent stream to capture the flow value. If I can get the rp-variable value directly, it would be more convenient.
If you have any idea about my question, please tell me the solution. Thanks for your kindness.
Beta Was this translation helpful? Give feedback.
All reactions