-
- Downloads
Change handling of outputs
The function `writeVTK` does not exist anymore. The syntax works now has follows. ``` import scheme; import mesh; import math; import writer; let m: mesh, m = cartesian2dMesh((0,0),(1,1), (40,40)); let vtk: writer, vtk = vtk_writer("f", 0.01); let rho0: R^2->R, x -> x[0] + x[1]; let u0: R^2->R^2, x -> (1,2); let rho : Vh, rho = interpolate(m, P0(), rho0); let u : Vh, u = interpolate(m, P0(), u0); let time: R, time = 0; write(vtk, (name_output(rho, "rho"), name_output(u, "u")), time); ``` Note that the second argument in the `vtk_writer` function is the time period between two outputs.
parent
3766c8ba
No related branches found
No related tags found
Loading
Please register or sign in to comment