Hi,

I am jumping into fipy and I really find it easy to use for day-to-day
simulations (mainly non-linear diffusion for me). I am trying to go one step
further and apply variable boundary conditions. I thought it would have been
straightforward looking at the documentation but... I would like to use my
own functions and I can't get it to work. Here is what I have in mind:

time = Variable()
bc = FixedValue(faces=faces, value=my_super_function(time))

for it in iterations:
    time.setValue(time() + dt)
    eq.solve...

The idea behind it is to use recorded data (like relative humidity), put a
spline on it (scipy.interpolate.interp1d for example) and use this callable.
A workaround will be to update the bc value at each timestep but I was
wondering wether there is a "nicer" solution.

Thanks for your help

-- 
Jean-Philippe

Reply via email to