I am using solve_unsteady and wanted to get the entire history solution of u, however, when defining the processorfieldsaver I get an error.
Here the code that I am trying to run and the error:
import IncompressibleNavierStokes as INS
Re = 1000.0
n = 256
lims = (0, 1)
x, y = LinRange(lims..., n + 1), LinRange(lims..., n + 1)
setup = INS.Setup(x, y; Re);
ustart = INS.random_field(setup, 0.0);
trange = (0.0, 10.0)
dt = 1e-3
using GLMakie # not really necessary since we are not plotting
state, outputs = INS.solve_unsteady(;
setup, ustart, tlims = trange, Δt = dt,
processors = (
field = INS.fieldsaver(; setup, nupdate=1), # This is what I thought could save the fields
log = INS.timelogger(; nupdate = 100)
)
);
I am using
solve_unsteady
and wanted to get the entire history solution ofu
, however, when defining theprocessor
fieldsaver
I get an error. Here the code that I am trying to run and the error:Error:
I suspect this can come from this unpacking of the state that expects
p
but in my case we do not calculate/need the pressure explicitly.I am open to help investigating this further if necessary, thanks!