Vahid - The following allows you to access the matrix after solving or sweeping:
>>> myEquation.cacheMatrix() >>> myEquation.solve(...) >>> matrix = myEquation.matrix The exact form of the matrix will vary depending on the solver suite you use (PySparse, PyTrilinos, ...). Similarly, you can access the right-hand-side vector by: >>> myEquation.cacheRHSvector() >>> myEquation.solve(...) >>> rhs = myEquation.RHSvector These are used in examples/flow/stokesCavity.py, examples/reactiveWetting/liquidVapor1D.py, and examples/reactiveWetting/liquidVapor2D.py - Jon On Sep 17, 2015, at 1:22 PM, vahid ettehadi <[email protected]> wrote: > Hello FiPy Users, > > I am trying to use FiPy in the optical image reconstruction as a forward > model. It seems I could use it. Thanks FiPy. > In the image reconstruction process after solving the forward model, I need > to have the solver coefficient matrix of forward model (here I need to > extract the solver coefficient matrix of FiPy written based on finite-volume > method) and boundary, next to boundary faces/cells. I need this info to be > able take the derivative of discrete equation based on some parameters. > > Any command or suggestion would be appreciated. > > P.S.: I would like to ask from Fipy developers to refer to me to the articles > or books that FiPy discrete equation is written based on. > > Thanks in advances, > Vahid > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
