Problem with the Coulomb sliding law

Extension of Elmer in computational glaciology

Problem with the Coulomb sliding law

Postby MTrevers » 29 Aug 2017, 22:54

I've come across a problem when applying the Coulomb sliding law to my simulation.

The output is completely different when setting the Cauchy flag on or off (which I know shouldn't be the case). With the flag set to False, the flow solution doesn't converge. When True, it does but the results are completely insensitive to the value of $As in the .sif (attached).

I've looked at the code and I can see that in the Friction_Coulomb function, StressValues is receiving zeros each time, so this is the reason for the incorrect behaviour. By contrast, FlowValues is receiving sensible numbers for velocity and pressure.

Without being able to debug the code, I can't get any closer to the route of the problem. Is anyone able to help further? Have I made some mistake in the .sif?

Thanks
Matt
Attachments
case_coulomb.sif
(13.62 KiB) Downloaded 18 times
MTrevers
 
Posts: 10
Joined: 16 Nov 2015, 20:19

Re: Problem with the Coulomb sliding law

Postby gagliar » 01 Sep 2017, 09:52

Dear Matt,

The issue here is that stresses are unknown (and therefore set to zero) for the first time you enter the Stokes solver. This will be always the case for the first time step of a transient simulation or for the first iteration of a steady state simulation, as in your case. To solve this, you will need at least 2 steady state iterations, which can be forced by setting
Code: Select all
Steady State Max Iterations = 5
Steady State Min Iterations = 2

in the Simulation section.

Hope it helps,
Olivier
gagliar
 
Posts: 50
Joined: 04 Sep 2009, 16:34
Location: LGGE - Grenoble

Re: Problem with the Coulomb sliding law

Postby gagliar » 05 Sep 2017, 10:30

Dear Matt,

I have modified the user function such that if the Cauchy normal stress is zero (which should be the case at a first iteration of a steady state problem or at the first time step of a transient one), then the normal stress is approximated by the isotropic pressure. If you do only one iteration, you should then get the same result with Cauchy or deviatoric stress. But, I would recommand to go for more than one iteration anyway to got the true evaluation of the normal stress (even if I agree that it should not change that much the evaluation of the effective pressure). On top of that, I would recommand to define an effective pressure variable so that you can have it evaluated correctly even at the first iteration.

Can you test this (you will need to get the last Elmer/Ice version and re-compile).

Hope it helps,
Olivier
gagliar
 
Posts: 50
Joined: 04 Sep 2009, 16:34
Location: LGGE - Grenoble

Re: Problem with the Coulomb sliding law

Postby MTrevers » 24 Sep 2017, 19:51

Hi Olivier

Sorry about the delay in getting back to you over this. Where would you recommend I define the effective pressure variable? I've tested the new code without this variable and I still get different output for the first iteration.

Thanks
Matt
MTrevers
 
Posts: 10
Joined: 16 Nov 2015, 20:19

Re: Problem with the Coulomb sliding law

Postby gagliar » 25 Sep 2017, 08:52

Dear Matt,

Ok, that is strange that you don't get the same results after the first steady iteration with the new version of the solver? Are the results still different if you go for more than one iterations?

For the effective pressure, you will have to export the variable "Effective pressure" from one solver :

Code: Select all
Solver XX
  Exported Variable 5 = -dofs 1 "Effective Pressure"
End


and then give it an initial value in the initial condition section of the sif:
Code: Select all
Initial Condition 1
  Effective Pressure = Variable Thickness
    Real MATC "rhoi*gravity*tx"
End

(in this above example it is equal to the overburden ice pressure, assuming the variable "thickness" is known (will need a restart step to have it known for the initial condition).

Hope it helps,
Olivier
gagliar
 
Posts: 50
Joined: 04 Sep 2009, 16:34
Location: LGGE - Grenoble

Re: Problem with the Coulomb sliding law

Postby MTrevers » 30 Sep 2017, 22:47

Hi Olivier

Without the variable: yes, the results are very different after the first steady state iteration. As before, they converge towards the same solution with multiple iterations.

I haven't tested with the Effective Pressure variable yet (I made a mistake with the direction of gravity) and it's too late for today, I'll try again tomorrow!

Thanks
Matt
MTrevers
 
Posts: 10
Joined: 16 Nov 2015, 20:19

Re: Problem with the Coulomb sliding law

Postby MTrevers » 01 Oct 2017, 16:04

Hi Olivier,

I've tested this properly now, with the effective pressure variable defined correctly. I now get the same behaviour with or without the Cauchy stress from the first iteration, as expected. Also, the NS iterations converge nicely in both scenarios.

Thanks for your help
Matt
MTrevers
 
Posts: 10
Joined: 16 Nov 2015, 20:19


Return to Elmer/Ice

Who is online

Users browsing this forum: No registered users and 1 guest