Re: [petsc-users] using DMDA with python

2016-10-06 Thread Somdeb Bandopadhyay
Thanks alot for all of your suggestions. I think I have a better insight about the direction now. On Thu, Oct 6, 2016 at 2:03 AM, Dave May wrote: > > > On 5 October 2016 at 18:49, Matthew Knepley wrote: > >> On Wed, Oct 5, 2016 at 11:19 AM, E. Tadeu

Re: [petsc-users] using DMDA with python

2016-10-05 Thread Dave May
On 5 October 2016 at 18:49, Matthew Knepley wrote: > On Wed, Oct 5, 2016 at 11:19 AM, E. Tadeu wrote: > >> Matt, >> >> Do you know if there is any example of solving Navier Stokes using a >> staggered approach by using a different DM object such as

Re: [petsc-users] using DMDA with python

2016-10-05 Thread Matthew Knepley
On Wed, Oct 5, 2016 at 11:19 AM, E. Tadeu wrote: > Matt, > > Do you know if there is any example of solving Navier Stokes using a > staggered approach by using a different DM object such as DMPlex? > SNES ex62 can do P2/P1 Stokes, which is similar. Is that what you want to

Re: [petsc-users] using DMDA with python

2016-10-05 Thread E. Tadeu
Matt, Do you know if there is any example of solving Navier Stokes using a staggered approach by using a different DM object such as DMPlex? Thanks, Edson On Tue, Oct 4, 2016 at 11:12 PM, Matthew Knepley wrote: > On Tue, Oct 4, 2016 at 9:02 PM, Somdeb Bandopadhyay

Re: [petsc-users] using DMDA with python

2016-10-05 Thread Matthew Knepley
On Tue, Oct 4, 2016 at 9:47 PM, Somdeb Bandopadhyay wrote: > Hi again, >Please allow me to explain in detail here:- > >1. I am using Zang's (jcp 1994) method for incompressible flow on >generalized collocated grid. >2. The main difference lies on the

Re: [petsc-users] using DMDA with python

2016-10-04 Thread Somdeb Bandopadhyay
Hi again, Please allow me to explain in detail here:- 1. I am using Zang's (jcp 1994) method for incompressible flow on generalized collocated grid. 2. The main difference lies on the calculation of the grid matrix, for which I am using Gaitonde et al (2002)'s work 3. I want

Re: [petsc-users] using DMDA with python

2016-10-04 Thread Somdeb Bandopadhyay
Hi again Sir, Thank you very much for the quick response. I am planning to implement a mustiphase algorithm on collocated grid. I already qrote a C code for 2d case, but it wasn't very generalized . So for the final version, I intend to use python as a script to interact with PETSc

Re: [petsc-users] using DMDA with python

2016-10-04 Thread Matthew Knepley
On Tue, Oct 4, 2016 at 9:02 PM, Somdeb Bandopadhyay wrote: > Dear all, > I want to write a solver for incompressible navier stokes > using python and I want to use PETsc (particularly dmda & ksp) for this. > May I know if this type of work is feasible/already

[petsc-users] using DMDA with python

2016-10-04 Thread Somdeb Bandopadhyay
Dear all, I want to write a solver for incompressible navier stokes using python and I want to use PETsc (particularly dmda & ksp) for this. May I know if this type of work is feasible/already done? I intend to run my solver in a cluster and so am slightly concerned about