Deprecated solver.scheme_eval.exec - how to use the session.scheme command #4117
-
I am trying to replace the deprecated solver.scheme_eval.exec () with a session.scheme.exec(() command but when I try to run the pyFluent code with the session command i get the error NameError: name 'session' is not defined. The manual gives no information on what to do. Can you advise please and also update the documentation? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
https://fluent.docs.pyansys.com/version/stable/user_guide/legacy/scheme.html This is the updated docs. |
Beta Was this translation helpful? Give feedback.
-
Hi
Thanks for this. I am confused as to why the 3 and 4th commands give different outputs when they are identical. What am I missing?
Thanks
David
[cid:abe7d80e-4279-4313-8037-1cfd3a0beb08]
…________________________________
From: Prithwish Mukherjee ***@***.***>
Sent: Thursday, 31 July 2025 4:35 PM
To: ansys/pyfluent ***@***.***>
Cc: David Fletcher ***@***.***>; Author ***@***.***>
Subject: Re: [ansys/pyfluent] Deprecated solver.scheme_eval.exec - how to use the session.scheme command (Discussion #4117)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
https://fluent.docs.pyansys.com/version/stable/user_guide/legacy/scheme.html
This is the updated docs.
—
Reply to this email directly, view it on GitHub<#4117 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BTK77JU62OHNA4VBXWLVFIL3LHINVAVCNFSM6AAAAAB62Y5DGCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJUGQ2DMNI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@david-f-fletcher, could you please provide a snippet of your findings and explain once. Thank you. |
Beta Was this translation helpful? Give feedback.
-
My question is very simple. In the code in the manual, it shows that session.scheme.eval("(rpgetvar 'mom/relax)") in one case returns 0.7 and the other '0.7'. My question is how can this be correct, that the same code gives two different answers? Thanks, David |
Beta Was this translation helpful? Give feedback.
https://fluent.docs.pyansys.com/version/stable/user_guide/legacy/scheme.html
This is the updated docs.