This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to continue transient calculation from previous results?

+2 votes

Hi,

Is it possible to continue transient calculation from previous results?
I write velocity and pressure distribution to paraview .pvd files.
How to use this results as initial guess or it isn't possible?

Like here:
V = VectorFunctionSpace(mesh, 'CG', 2)
Q = FunctionSpace(mesh, 'CG', 1)
u0 = Constant((0., 0., 0.)) # initial velocity
p0 = Constant(0.) # initial pressure
u0 = interpolate(u0, V)
p0 = interpolate(p0, Q)

Thanks in advance!

Regards, Maksim

asked Apr 17, 2014 by Maks FEniCS User (2,430 points)

1 Answer

+2 votes

I suggest you export your data to numpy arrays and then use numpy.save and numpy.load to store and save the data to the harddrive.

answered Apr 17, 2014 by Jan FEniCS User (8,290 points)
...