Re: [petsc-users] Implementation of Power Iteration method in PETSc

2018-09-27 Thread Fande Kong
Hi Yingjie, For finite difference method, there are a lot of example in PETSc. For instance, https://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/ex29.c.html For linear eigenvalue problems, there is a list of examples at

Re: [petsc-users] Implementation of Power Iteration method in PETSc

2018-09-26 Thread Yingjie Wu
Thank you, Fande. I've seen you in moose usergroup before. I've just learned about SLEPC, and I wonder if I want to do neutron eigenvalue calculations and use finite difference to discrete grids, would it be difficult to implement it in SLEPC? Is there such an example(finite difference + linear

Re: [petsc-users] Implementation of Power Iteration method in PETSc

2018-09-26 Thread Fande Kong
I have implemented this algorithm in SLEPC. Take a look at this example http://slepc.upv.es/documentation/current/src/eps/examples/tutorials/ex34.c.html The motivation of the algorithm is also for neutron calculations (a moose-based application). Fande, On Wed, Sep 26, 2018 at 10:02 AM Yingjie

[petsc-users] Implementation of Power Iteration method in PETSc

2018-09-26 Thread Yingjie Wu
Dear Petsc developer: Hi, Thank you very much for your previous reply, they really helped me a lot. I've been doing neutron calculations recently, and I want to use the power Iteration method to calculate the neutron flux, essentially to solve linear equations, but after each solution is done,