Re: [petsc-users] How to solve nonlinear F(x) = b(x)?

2016-08-08 Thread Oxberry, Geoffrey Malcolm
On Aug 8, 2016, at 2:23 PM, Neiferd, David John mailto:david.neif...@wright.edu>> wrote: Thanks for the suggestions Geoff and Dave. Using G(x) = F(x) - b(x) = 0, will required redefinition of the Jacobian correct? If I understand correctly, the Jacobian is the derivative of F(x) with respect

Re: [petsc-users] How to solve nonlinear F(x) = b(x)?

2016-08-08 Thread Neiferd, David John
Thanks for the suggestions Geoff and Dave. Using G(x) = F(x) - b(x) = 0, will required redefinition of the Jacobian correct? If I understand correctly, the Jacobian is the derivative of F(x) with respect to x. Since we are redefining F(x) to G(x), it would be necessary to change the Jacobian f

Re: [petsc-users] How to solve nonlinear F(x) = b(x)?

2016-08-08 Thread Oxberry, Geoffrey Malcolm
David, What about solving G(x) = F(x) - b(x) = 0? Geoff On Aug 8, 2016, at 1:12 PM, Neiferd, David John mailto:david.neif...@wright.edu>> wrote: Hello all, I've been searching through the PETSc documentation to try to find how to solve a nonlinear system where the right hand side (b) varies

[petsc-users] How to solve nonlinear F(x) = b(x)?

2016-08-08 Thread Dave May
On Monday, 8 August 2016, Neiferd, David John > wrote: > Hello all, > > I've been searching through the PETSc documentation to try to find how to > solve a nonlinear system where the right hand side (b) varies as a function > of the state variables (x). According to the PETSc documentation, SNES

[petsc-users] How to solve nonlinear F(x) = b(x)?

2016-08-08 Thread Neiferd, David John
Hello all, I've been searching through the PETSc documentation to try to find how to solve a nonlinear system where the right hand side (b) varies as a function of the state variables (x). According to the PETSc documentation, SNES solves the equations F(x) = b where b is a constant vector. W

Re: [petsc-users] TS and petscFE -unable to access u_t

2016-08-08 Thread Maximilian Hartig
Gladly. I also send the simple gmsh I am using. cimply.c Description: Binary data testmesh_2D_box_quad.msh Description: Binary data Thank you,MaxOn 08 Aug 2016, at 17:23, Matthew Knepley wrote:On Mon, Aug 8, 2016 at 10:15 AM, Maximilian Hartig  wrote

Re: [petsc-users] TS and petscFE -unable to access u_t

2016-08-08 Thread Matthew Knepley
On Mon, Aug 8, 2016 at 10:15 AM, Maximilian Hartig wrote: > Thank you, > > I used these routines to setup a CN type TS. The problem I face now is > that I seem to be unable to access the temporal derivatives u_t[..] for the > definition of the residuals. I get a segmentation violation inside the

Re: [petsc-users] TS and petscFE -unable to access u_t

2016-08-08 Thread Maximilian Hartig
Thank you, I used these routines to setup a CN type TS. The problem I face now is that I seem to be unable to access the temporal derivatives u_t[..] for the definition of the residuals. I get a segmentation violation inside the PetscFEIntegrateResidual routine whenever I try to. I have attach

Re: [petsc-users] Question about SNESSetFunction - FormFunction part

2016-08-08 Thread Hong
You may take a look at our Fortran examples, e.g., petsc/src/snes/examples/tutorials/ex5f90t.F Hong On Mon, Aug 8, 2016 at 7:31 AM, 최경준 wrote: > Hi, my name is Michael Choi, currently working on applying SNES solver to > my compressible Euler equation solver with Fortran90 language. > > I'm hav

[petsc-users] Question about SNESSetFunction - FormFunction part

2016-08-08 Thread 최경준
Hi, my name is Michael Choi, currently working on applying SNES solver to my compressible Euler equation solver with Fortran90 language. I'm having an error like below [0]PETSC ERROR: [0]PETSC ERROR: Caught signal number 11