[petsc-users] Hints for using petscfe for plasticity -- how to update/access internal variables?

Matthew Knepley knepley at gmail.com
Wed Sep 20 11:17:47 CDT 2017


On Wed, Sep 20, 2017 at 11:46 AM, Maximilian Hartig <
imilian.hartig at gmail.com> wrote:

> Hello,
>
> I’m trying to implement plasticity using petscFE but I am quite stuck
> since a while. Here’s what I’m trying to do:
>
> I have a TS which solves the following equation:
> gradient(stress) +Forces = density*acceleration
> where at the moment stress is a linear function of the strain and hence
> the gradient of the displacement. This works fine. Now I want to compare
> the stress to a reference value and if it lies above this yield stress, I
> have to reevaluate the stress at the respective location. Then I need to
> update the plastic strain / yield stress  at this location.
> I tried doing that first by solving three fields at the same time:
> displacements, stresses and yield stress. This failed.
> Then, I tried solving only for displacement increments, storing the
> displacements, stresses and yield stress from the past time step in an
> auxiliary field. The auxiliary fields are updated after each time step with
> a second SNES, using the displacement increments from the current,
> converged time step. This also failed.
> In both cases the code had problems converging and when it did, I ended up
> with negative plastic strain. This is not possible and I don’t know how it
> happens because I explicitly only increment the plastic strain when the
> increment is positive.
>
> I am sure there is an easy solution to how I can update the internal
> variables and determine the correct stress for the residual but I just
> cannot figure it out. I’d be thankful for any hints.
>

It looks like there are two problems above:

1) Convergence

For any convergence question, we at minimum need to see the output of

  -snes_view -snes_converged_reason -snes_monitor
-ksp_monitor_true_residual -snes_linesearch_monitor

However, this does not seem to be the main issue.

2) Negative plastic strain

If the system really converged (I cannot tell without other information),
then the system formulation is wrong. Of course, its
really easy to check by just plugging your solution into the residual
function too. I do not understand your explanation above
completely however. Do you solve for the plastic strain or the increment?

  Thanks,

     Matt


> Thanks,
> Max




-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

http://www.caam.rice.edu/~mk51/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170920/c86a2762/attachment.html>


More information about the petsc-users mailing list