# How to output yield stress curve

**URL:** <https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835>\
**Category:** ASPECT\
**Created:** [March 1, 2023, 7:17am UTC](https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835 "2023-03-01T07:17:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leisurely](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@leisurely](https://community.geodynamics.org/u/leisurely)\
**Post date:** [March 1, 2023, 7:17am UTC](https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835/1 "2023-03-01T07:17:48Z")

</div>

Dear all  
How to get the yield stress curve of the initial phase of the model

like this curve in the manual

![image](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/6/6d48bf497ff6421b94b3f917c60c961497e33b60.png)

Best  
Xu

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [March 2, 2023, 3:54am UTC](https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835/2 "2023-03-02T03:54:14Z")

</div>

Dear Xu,

One could generate a curve like that for any model output field with the Paraview “Plot over line” feature.

However, what I think you are asking is how to generate a strength profile (i.e., stress versus depth) for the very first nonlinear iteration (i.e., on the first time step) when a constant (fixed) strain rate invariant is given to the material model.

There are a number of ways to do this:

1. Run the simulation for just one time step and restricting the maximum number of nonlinear iterations to 1. You can calculate the stress invariant from the strain rate and viscosity output, but there is also an option in ASPECT to output the stress invariant.

2. Run the simulation as normal, but output the solution for each nonlinear iteration (probably not ideal).

3. Calculate the strength profile independently using the constitutive equations and material parameters specified for the simulation (what I typically do).

Let me know if I can help further with any of these points.

Cheers,  
John

---

<div class="post-metadata">

**Author:** ![leisurely](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@leisurely](https://community.geodynamics.org/u/leisurely)\
**Post date:** [March 5, 2023, 5:13am UTC](https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835/3 "2023-03-05T05:13:56Z")

</div>

Hi John

Thanks for your response

If I want to output the stress invariant in ASPECT,what I need to input in the List of output variables

What’s the difference between the first method and the third method

Best Xu

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [March 6, 2023, 4:26pm UTC](https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835/4 "2023-03-06T16:26:26Z")

</div>

Hi Xu,

> If I want to output the stress invariant in ASPECT,what I need to input in the List of output variables

You need to add “stress second invariant” to the list output variables for visualization in the Postprocess subsection. See the online documentation link [here](https://aspect-documentation.readthedocs.io/en/latest/parameters/Postprocess.html).

Search for "stress second invariant on that page.

> What’s the difference between the first method and the third method

The first method obtains the stress profile from ASPECT on the very first nonlinear iteration where a constant strain rate is used everywhere, and the third method would involve calculating a stress profile analytically in python or matlab using the same constitutive equations, material properties, and background strain rates.

Theses approaches should give effectively the same result.

Cheers,  
John

---

<div class="post-metadata">

**Author:** ![leisurely](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@leisurely](https://community.geodynamics.org/u/leisurely)\
**Post date:** [March 16, 2023, 7:35am UTC](https://community.geodynamics.org/t/how-to-output-yield-stress-curve/2835/5 "2023-03-16T07:35:55Z")

</div>

Hi John

Thanks for your answer

I got the curve I wanted

Cheers  
Xu
