Objects of multiapp and transfer system #30152
Unanswered
lvkas521424
asked this question in
Q&A General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Check these boxes if you have followed the posting rules.
Question
I'm currently trying to use an external program's solver as a multi-app to interact with moose, so I have a large number of arrays within my multi-app‘s code(.C and .h), and in the process of trying it out, I'm puzzled by the execution of the transfer:
The name of the data transferred by transfer is determined by the
source_variableandvariableof the input card, so how can I execute transfer so that the transfer to recognize which arrays of the multiiapp to be transferred (it's too many arraysin my .C code interface ), wethear set the array with the same name in the multiiapp code with the input card's source_variable?; similarly, when a multiiapp receives data from an external transfer, how to determine which data to transfer this data to?for a multi-app system, it seems that there can only be one data, if I define two variables, all their sizes are 10 * 10 * 10 , but in the multi-app system actually defined a 10 * 10 * 10 * 2 data?
I apologize for what may be a clumsy question, thanks.
example : I can't transfer my neutronicsmultiapp's
power_densityto parents-app'spowerdensityThis is input file
Here's my explicit scheduling for multi-app and transfer
Here's part of the code for my external multi-app. b1_excute is my external Fortran interface for reading
temperature_data.data(), outputpower_data.data()Unfortunately, when I try to output the
powerdensityof the parents-app, it's always 0, while my multi-app does execute normally and passes the value topower_density.Beta Was this translation helpful? Give feedback.
All reactions