On Monday, 8 August 2016, Neiferd, David John <david.neif...@wright.edu <javascript:_e(%7B%7D,'cvml','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 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