Do I get the linear system from caching the Matrix and RHS and running solve/sweep for 1 iteration? Also, is it possible to manually set the Matrix being utilised?
Thanks
If all you want is the matrix and RHS, you can call Term._prepareLinearSystem()
on your equation.
While it is possible to build your own matrix with SparseMatrix.put()
and SparseMatrix.addAt()
, FiPy's not really intended to work that way. If all you want to do is build and solve your own linear systems, you're better off using the underlying solver libraries directly.