# One step theta scheme in deal.ii adapter

**URL:** <https://precice.discourse.group/t/one-step-theta-scheme-in-deal-ii-adapter/569>\
**Category:** Official adapters and tutorials\
**Tags:** dealii\
**Created:** [April 24, 2021, 4:56pm UTC](https://precice.discourse.group/t/one-step-theta-scheme-in-deal-ii-adapter/569 "2021-04-24T16:56:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vryy](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/vryy/32/637_2.png) [@vryy](https://precice.discourse.group/u/vryy)\
**Post date:** [April 24, 2021, 4:56pm UTC](https://precice.discourse.group/t/one-step-theta-scheme-in-deal-ii-adapter/569/1 "2021-04-24T16:56:41Z")

</div>

Hello, I’m struggling to understand the mathematical background of the one-step theta scheme implemented in deal.ii adapter linear\_elasticity.cc. In there the rhs is implemented as:

RHS=(M - theta \* (1-theta) \* delta\_t^2\*K) \* V\_n - delta\_t \* K \* D\_n + delta\_t \* theta \* F\_n+1 + delta\_t \* (1-theta) \* F\_n

I do not get the original time integration equation which leads to the above equation. I have a look in deal.ii step-23 tutorial which provides an explanation of the Rothe method, which also uses theta parameter and gives identical LHS:

[https://www.dealii.org/current/doxygen/deal.II/step\_23.html](https://www.dealii.org/current/doxygen/deal.II/step_23.html)

Following that, the rhs should be:

RHS=M \* (D\_n+delta\_t \* V\_n) - delta\_t^2 \* theta \* (1-theta) \* K \* D\_n + delta\_t^2 \* theta \* (theta \* F\_n+1 + (1-theta)\*F\_n)

Any help to explain the differences would be appreciated.

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [April 24, 2021, 5:27pm UTC](https://precice.discourse.group/t/one-step-theta-scheme-in-deal-ii-adapter/569/2 "2021-04-24T17:27:54Z")

</div>

Hi @vryy

have you already seen the related documentation [on our website?](https://precice.org/adapter-dealii-solver-details.html)?

---

<div class="post-metadata">

**Author:** ![vryy](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/vryy/32/637_2.png) [@vryy](https://precice.discourse.group/u/vryy)\
**Post date:** [April 25, 2021, 1:01am UTC](https://precice.discourse.group/t/one-step-theta-scheme-in-deal-ii-adapter/569/3 "2021-04-25T01:01:58Z")

</div>

Thanks @DavidSCN. I overlooked it. That’s exactly what I’m looking for.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [May 5, 2021, 9:46am UTC](https://precice.discourse.group/t/one-step-theta-scheme-in-deal-ii-adapter/569/4 "2021-05-05T09:46:40Z")

</div>

Closed on May 5, 2021, 9:46am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
