Hello everyone,
I am seeking to model the decomposition of a reacting solid domain as it is heated by surrounding flow. As the domain is heated, it ejects gases out of its boundaries. In the System Coupling approach, the fluid domain is modeled with an Ansys Fluent participant (passing heat flux to System Coupling), and the solid domain is modeled with an external Python participant (passing wall temperature to System Coupling).
This example "Heat transfer in a square channel" from the System Coupling Participant Library documentation gets me remarkably close to my end goal. It covers the heat transfer between Fluent and an external Python process.
The missing piece is how to perform the one-way passing of species mass flux from the external Python solver to Fluent. From reviewing the documentation, it appears that species mass flux is not a supported transfer variable out-of-the-box - this makes sense because typically anything dealing with species mass flux would be performed within the internals of the CFD participant.
My two paths forward are:
1. I see that UDMs are supported as input variables for a Fluent participant, but I have not been able to pin down any examples or documentation on how to accomplish this. If I can write to a face UDM (an F_UDMI) in Fluent, that would allow me to handle the injection of gas using UDFs. Does anyone have any pointers on how to do this? With this approach, I am able to stay in System Couplings standard Python API.
2. Possibly step into the PyAnsys ecosystem. I would perform a write operation on my Fluent participant using direct pyfluent calls to write information from the external Python solver to the fluid domain - within every pysystemcoupling solution step. I have a suspicion that injecting information into the PyFluent participant would clash with PySystemCoupling's solution process.
If anyone could provide input on how to accomplish this mass injection into Fluent via System Coupling - particularly how to transfer information to a UDM - that would be amazing.
Thank you,
John Havenar