Closed martinbaun closed 1 year ago
Here is info on something related: https://scikit-fem.readthedocs.io/en/latest/howto.html#discrete-functions-in-forms
Another comment is that usually you move those functions, such as $A_0$ that you already know, to right-hand side load vector.
The combination of your comments solved my problem. Thanks!
Hi,
I can solve the static poisson equation $\Delta A \frac{1}{\mu} = J$ with
and the harmonic poisson equation $\Delta A \frac{1}{\mu} + 1j \cdot \omega \sigma A= J$ with
So far so good. But I want to implement the time stepping method, know.
$\Delta A \frac{1}{\mu} + \sigma \frac{\partial A}{ \partial t}= J$
I think I have to replace $\frac{\partial A}{ \partial t}$ with $\frac{A_{t-1}-A_t}{\Delta t}$
but I don't know how to use the solution of A from the previous simulation step. Following code doesn't work because "u" and "A_0" have different shapes.
Any hints for me?