[petsc-users] about FD Jacobian for the new DAE solver

2010-04-30 Thread Jed Brown
On Thu, 29 Apr 2010 21:08:38 +, Li, Zhisong (lizs) lizs at mail.uc.edu wrote: Hi, Last time I was suggested by Jed using the DAE solver to build my nonlinear CFD code based on TS. For incompressible N-S equations, I think it's difficult to derive the analytical Jacobian formulation,

[petsc-users] about FD Jacobian for the new DAE solver

2010-04-30 Thread Jed Brown
On Thu, 29 Apr 2010 22:28:39 +, Li, Zhisong (lizs) lizs at mail.uc.edu wrote: I wonder if you mean the finite element method here. I am only planning FDM or FVM for my work. Actually we don't have any polynomial in incompressible N-S equations. As Matt says, the convection term is

[petsc-users] zero diagonals

2010-04-30 Thread Barry Smith
No, nor is there likely a reason you would want to do that. It is practically mathematically meaningless. You can write a routine that loops over each local row, checks if the row has zero diagonal, keep the list of these rows and then call MatSetValues() for the diagonals of those

[petsc-users] about snes and finite difference jacobian approximations

2010-04-30 Thread 陈乐平(Leping Chen)
-users/attachments/20100430/ab21bfe3/attachment.htm