Running a Python Script in MOOSE (via MultiApp?) #16497
-
Hi all, I'm currently running MOOSE as a heat transfer solver and I'm interested in adding in an existing script that solves a heat pipe environment. The issue is that the heat pipe script was originally FORTRAN and was recently, painstakingly, written into Python, so I have no interest in doing the same for C++. I've seen some evidence of people utilizing Python-based scripts in MOOSE, but I can't find any clear examples or actual code of how you go about tying them together. I understand the basics of embedding Python into C++, but I'm not sure that's the right method, or if there's just some easy implementation via the MultiApp functionality. I wanted to ask y'all for any advice or experiences you may have had on this sort of topic. Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You should probably create a MOOSE Wrapped App that is capable of running the python via C++. We do have a heat pipe application at INL, but I am not sure it is being released outside of the lab. @joshuahansel can you comment on that? |
Beta Was this translation helpful? Give feedback.
You should probably create a MOOSE Wrapped App that is capable of running the python via C++.
We do have a heat pipe application at INL, but I am not sure it is being released outside of the lab. @joshuahansel can you comment on that?