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

Dave May dave.mayhem23 at gmail.com
Mon Aug 8 15:19:24 CDT 2016


On Monday, 8 August 2016, Neiferd, David John <david.neiferd at wright.edu
<javascript:_e(%7B%7D,'cvml','david.neiferd at 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 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.  What would I
> do to solve F(x) = b(x)?  An example of this would be a nonlinear
> thermoelastic structure where as the structure deforms the direction of the
> loads generated by the thermal expansion changes as well.  Any insight into
> how to implement this is appreciated.
>

All you need to do is define the non-linear residual F (a vector) such that
it includes b(x)

Eg, suppose I have some discrete non-linear system of the form, Ax = b(x),
then I would define F(x) as F(x) = Ax -b(x)

Thanks,
  Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160808/19924125/attachment.html>


More information about the petsc-users mailing list