Comments (3)
Thanks for taking care of this (a03e999).
It is a very good thing that pyfvtool
only depends on the standard scientific packages numpy
, scipy
and matplotlib
. As such it will readily work with any reasonably up-to-date scientific Python installation. For me, this is important: it makes it easy to share with students and colleagues without running into dependency problems and elaborate installation recipes.
We have the luxury with PyFVTool of being able to 'simply' use a direct method for solving the sparse matrix equation using scipy.sparse.linalg.spsolve
(I believe it uses the UMFPACK code which is also used by Matlab -- or it uses SuperLU?). For more demanding systems, there is a choice of iterative solvers already in scipy.sparse
(although I wouldn't know how to properly use those...). Farther beyond, I think we would be in FiPy territory and switch to unstructured meshes and high-performance solvers such as PETSc. Probably out of the intended scope of PyFVTool. Your choice to use standard spsolve
is an excellent choice for pyfvtool
.
A few years ago, scipy.sparse
was not in optimal shape. I understand that it is now rapidly improving and even considered a priority (https://scientific-python.org/grants/sparse_arrays/). Better use recent versions of scipy
.
from pyfvtool.
From version 1.8.0 onwards, SciPy has made significant improvements to the sparse array implementation, it seems. Another good reason to define a minimal version number for scipy.
from pyfvtool.
That is a very good point. I'll be sure to take care of it in a moment. When I started the development, I had no idea which sparse package to use. I think I read an article about the new improvements in csar_array
and how it will be more consistent with numpy
arrays so I just used it. I also saw a nice trick by @gmweir that could make pyfvtool
work with the older scipy
versions.
from pyfvtool.
Related Issues (14)
- Terms for SphericalGrid1D not implemented
- Moving PyFVTool to an organization HOT 10
- Testing HOT 5
- Labeling of coordinates in cylindrical (and spherical) meshes HOT 9
- 'test_benchmark_1d.py' fails HOT 2
- more logical name for InternalCells() method HOT 1
- Calling external sparse direct solvers HOT 5
- Deprecation warnings from numpy 1.26.2 HOT 5
- Standardize pyfvtool imports on the user side HOT 2
- Installation error due to the existence of both setup.py and pyproject.toml HOT 4
- `CellVariable.BC2GhostCells()` and `CellVariable.bc_to_ghost()`
- Store the boundary conditions as a property of a cell variable HOT 8
- How to implement the TVD scheme correctly? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfvtool.