Closed ghost closed 1 year ago
I've been running your notebook for awhile and haven't gotten an error.
fipy.test()
, it will print out a table like
python 3.11.3 | packaged by conda-forge | (main, Apr 6 2023, 09:05:00) [Clang 14.0.6 ]
fipy 3.4.3+35.gf386f943d
:
solver petsc
Please report what it says.
While I get no error, the solution doesn't seem to be doing anything useful. I suspect this is because you have written
L1 = 1
L2 = 2
y = 10
x = 20
dy = L1 / y
dx = L2 / x
mesh = Grid2D(nx=x, ny=y, dx=dx, dy=dy)
whereas the example you appear to have gotten this from has
Lx = 1e-6
nx = 100
dx = Lx / nx
mesh = Grid1D(nx=nx, dx=dx)
It is no surprise that a domain a million times larger, solved at an even lower resolution, does not achieve stable solutions. You are solving the same model parameters, which means you need to solve at the same mesh resolution.
How can I change this code for 2D system?
- Work from the existing 2D example: https://github.com/usnistgov/fipy/blob/master/examples/reactiveWetting/liquidVapor2D.py
- Keep the mesh resolution the same. Don't change it by a factor of ten million.
Thanks
- Work from the existing 2D example: https://github.com/usnistgov/fipy/blob/master/examples/reactiveWetting/liquidVapor2D.py
- Keep the mesh resolution the same. Don't change it by a factor of ten million. Is there an alternative that I can reduce the runtime?
T3.zip