Re: Solution to the sine-gordon equation

2019-03-21 Thread Meier Quintin
That worked thanks! > On 21 Mar 2019, at 18:44, Daniel Wheeler wrote: > > On Thu, Mar 21, 2019 at 1:14 PM Meier Quintin > wrote: >> >> Dear Daniel, >> Thanks a lot for the help. I got it to work by adding a transientterm(). >> >> If I try

Re: Solution to the sine-gordon equation

2019-03-21 Thread Meier Quintin
rceTerm(numerix.cos(phi)) sweeps=1000 view = Viewer(phi) for i in range(sweeps): res = eq.sweep(var=phi, dt=1000) print(res) view.plot() phi.updateOld() raw_input('stopped') On Thu, Mar 21, 2019 at 7:26 AM Meier Quintin mailto:quintin.me...@mat.ethz.ch>> wrote: D

Solution to the sine-gordon equation

2019-03-21 Thread Meier Quintin
Dear fipy community, I’m new to FiPy, so forgive me if this is a trivial question. I’m trying to find the kink solution to the (static) sine-gordon equation using this simply piece of code. import numpy as np from fipy import * nx = 1 dx = 0.01 mesh = Grid1D(nx=nx,dx=dx) phi = CellVariable(m