On 07/18/2017 12:52 PM, Maxi Miller wrote:
> That would result in (including my starting equations):
>
> <
https://lh3.googleusercontent.com/-j1YR1Gju6b8/WW5YkX74UMI/AAAAAAAACPw/_oAfa2Oc7TkfDCfDU-ne5yWOoPQY99PzACLcBGAs/s1600/time_derivative_II.png>
>
> But how do I then get the value for A after each iteration?
That is a question for the time stepping scheme you use. If you use something
like step-21, you first solve the first equation for A, then put the result
into the second equation. If you use a semi-implicit scheme for the coupled
problem, you take the previous time step's value of A for the right hand side.
If you take a fully coupled scheme, you'd get a nonlinear system that you have
to solve for both A and B at the same time.
This is really no different than the case where A,B were only dependent on the
time. Think about how you would write an ODE solver in that case.