Have you tried some of the FiPy examples. For example, the examples/diffusion/coupled.py [*] has examples of coupled diffusion equations. I would start with that and slowly add in source terms. Start off with a single equation and make sure that works and then add in the source terms and then add in a second equation uncoupled at first. Let us know where you get stuck in that process. I hope that helps.
[*]: https://www.ctcms.nist.gov/fipy/examples/diffusion/generated/examples.diffusion.coupled.html On Sat, Apr 17, 2021 at 5:09 PM 'Salah Al-Smairat' via fipy <[email protected]> wrote: > > Hello > I am python beginner, I need to model Two temperature model using python, but > have no idea where to start, the model assumes electrons and lattice are two > different subsystems, at two different temperatures, and the heat diffuses > from the electrons to lattice through electron-phonon coupling, the equations > are > > the equations are > C_e (∂T_e)/∂t=∇ ∙[k_e ∇T_e ]-G(T_e-T_ph )+A(r,t) > C_ph (∂T_ph)/∂t=∇ ∙[k_ph ∇T_ph ]+G(T_e-T_ph) > > thanks > > -- > To unsubscribe from this group, send email to [email protected] > > View this message at https://list.nist.gov/fipy > --- > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. -- Daniel Wheeler -- To unsubscribe from this group, send email to [email protected] View this message at https://list.nist.gov/fipy --- To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
