fipy
fipy copied to clipboard
FiPy is a Finite Volume PDE solver written in Python
In the case of a dimensional mesh, `getCellCenters()` returns scaled values but `getFaceCenters()` does not: ``` python >>> mesh = Grid1D(nx=3, dx=Variable("1. mum")) >>> print mesh.getCellCenters() [[ 0.5 1.5 2.5]]...
For a non-uniform `Grid`, the physical shape in, e.g., [trunk/fipy/meshes/numMesh/grid1D.py](../tree/master/trunk/fipy/meshes/numMesh/grid1D.py)#L110 should be calculated with ``` python numerix.sum(self.dx) ``` not ``` python self.nx * self.dx ``` _Imported from trac ticket [#187](http://www.ctcms.nist.gov/cgi-bin/redirectLegacyMatforge.py?url=http://matforge.org/fipy/ticket/187),...
`Grid2D` and `UniformGrid2D` handle dimensions completely differently. Compare ``` python >>> mesh = Grid2D(nx=3, dx=Variable("1 mum"), ny=1, dy=Variable("1 mum")) >>> mesh.getCellVolumes() array([ 1., 1., 1.]) >>> mesh.getCellCenters() array([[ 0.5, 1.5,...
The flux dimensions are lost by `getDivergence()` ``` python >>> mesh=Grid1D(dx=3*[Variable("1 mum")]) >>> flux = FaceVariable(mesh=mesh, rank=1, unit="s**-1*cm**-2") >>> flux[...,0] = "2e17 cm**-2*s**-1" >>> print flux.getDivergence() [ -2.00000000e+17 0.00000000e+00 0.00000000e+00]...
At present we seen to be creating a new temporary matrix in order to add new entries to a current matrix. [trunk/fipy/matrices/scipyMatrix.py](../tree/master/trunk/fipy/matrices/scipyMatrix.py)@5232#L195 Scipy can now store the i, j, value...
Hello, I am trying to implement the shock tube equations as described in: https://en.wikipedia.org/wiki/MUSCL_scheme Currently, I have implemented it as described in the attached file. However, I get this error:...
There was a [new release of Scikit-fmm](https://pypi.org/project/scikit-fmm/2024.9.16/). This might be for Numpy 2? The [failure](https://dev.azure.com/guyer/FiPy/_build/results?buildId=1362&view=logs&j=800119f1-76d2-5f88-68ad-88bf63dc51a8&t=f2a209fc-d0ed-56e1-2798-1840ce1cd709&l=2872) can't be reproduced with the environment below (no failures at all on linux). ``` [tool.poetry.dependencies]...
See [here](https://dev.azure.com/guyer/a5dd49f0-3688-4211-8a43-0bfb5a6c1a9e/_apis/build/builds/1362/logs/339) ``` 2024-09-17T00:18:08.0531699Z FAILED (failures=9) 2024-09-17T00:18:08.0532121Z !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2024-09-17T00:18:08.0532683Z Skipped 83 doctest examples because the `tvtk` package cannot be imported 2024-09-17T00:18:08.0533311Z !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2024-09-17T00:18:08.0533766Z 2024-09-17T00:18:08.0534712Z python 3.12.5 | packaged by conda-forge...