Issue: Accessing MainApp time _t in a Steady SubApp (via FullSolveMultiApp) returns 0.0 in Custom Material
#32125
Unanswered
bo-qian
asked this question in
Q&A General
Replies: 1 comment
-
|
Hello No the subapp handles its own starting time. So it resets every time because a Steady solve goes from T=0s to t=1s Using a postprocessor (a Receiver) to keep track of the time in the parent application is a workable solution. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Check these boxes if you have followed the posting rules.
Question
Description:
I am running a coupled simulation where a Transient MainApp drives a Steady SubApp (Quasi-static approach). My goal is to calculate a time-dependent viscosity in the SubApp. Since the physical time is controlled by the MainApp, I expect the SubApp to inherit the current time step value when called.
However, I found that inside my custom C++ Material in the SubApp, the member variable
_t(current time) always evaluates to 0.0, even when the MainApp has advanced to t > 0 (e.g., t=0.2).Configuration:
Transient):Uses
FullSolveMultiAppto call the SubApp atINITIALandTIMESTEP_END.Steady):Uses
Steadyexecutioner to solve the Stokes equation at the current state.LinearHeatingViscosityMaterial):In
computeQpProperties(), I tried to access_tto calculate temperature and viscosity. I added a print statement to debug:Observation:
SubApp Material Time: 0(Correct)SubApp Material Time: 0(Incorrect, expected 0.2)SubApp Material Time: 0(Incorrect, expected 0.4)Questions:
FullSolveMultiAppautomatically update the_tvariable for a Steady SubApp? Or does theSteadyexecutioner reset_tto 0.0 at the beginning of each solve?Steadyresets the time, what is the recommended way to pass the MainApp's physical time to the SubApp so my Material can read it? Do I need to use aMultiAppPostprocessorTransferto pass time as a parameter?Any insights would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions