# Non linear elasticity equation using PETSc (SNES)

**URL:** https://community.freefem.org/t/non-linear-elasticity-equation-using-petsc-snes/1886
**Category:** General Discussion
**Created:** [July 10, 2022, 9:33am UTC](https://community.freefem.org/t/non-linear-elasticity-equation-using-petsc-snes/1886 "2022-07-10T09:33:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Markov](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Markov](https://community.freefem.org/u/Markov)
#### Post date: [July 10, 2022, 9:33am UTC](https://community.freefem.org/t/non-linear-elasticity-equation-using-petsc-snes/1886/1 "2022-07-10T09:33:19Z")

</div>

Hello,

I want to solve the non linear elasticity equation using SNES in PETSc, I’ve checked out the example that does not use PETSc and I was a little bit confused, did anyone solve this problem or a similar one using this method?

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [July 10, 2022, 3:48pm UTC](https://community.freefem.org/t/non-linear-elasticity-equation-using-petsc-snes/1886/2 "2022-07-10T15:48:16Z")

</div>

As long as you have a `func` to evaluate a Jacobian and another one to evaluate a residual, you are good to go. What is the exact issue you are facing?
