# History of a parameter

**URL:** <https://forum.itascainternational.com/t/history-of-a-parameter/665>\
**Category:** 3DEC\
**Created:** [July 19, 2022, 9:43am UTC](https://forum.itascainternational.com/t/history-of-a-parameter/665 "2022-07-19T09:43:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DariushJ](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@DariushJ](https://forum.itascainternational.com/u/DariushJ)\
**Post date:** [July 19, 2022, 9:43am UTC](https://forum.itascainternational.com/t/history-of-a-parameter/665/1 "2022-07-19T09:43:44Z")

</div>

Hello all,

If we generate a history from a parameter, let say normal force in a sub-contact, but do not specify the location of the sub-contact then what will be recorded by history command? Example:

* * *

```
  local ci=contact_head
  loop while ci#0
     local cxi = c_cx(ci)
     loop while cxi # 0
        if cx_mat(cxi) = 1 then
          nf=cx_nforce(cxi)
          sf=mag(cx_sforce(cxi))
        endif
     cxi = cx_next(cxi)
     end_loop
  ci=c_next(ci)   

```

## end\_loop

hist @nf @sf

Thanks in advance for any help

---

<div class="post-metadata">

**Author:** ![Huy](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@Huy](https://forum.itascainternational.com/u/Huy)\
**Post date:** [July 19, 2022, 5:04pm UTC](https://forum.itascainternational.com/t/history-of-a-parameter/665/2 "2022-07-19T17:04:47Z")

</div>

Hi, you don’t show the whole fish function but in this case you will get the normal and shear force of the last sub-contact in your model. I don’t think that is what you want.

---

<div class="post-metadata">

**Author:** ![DariushJ](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@DariushJ](https://forum.itascainternational.com/u/DariushJ)\
**Post date:** [July 20, 2022, 7:53am UTC](https://forum.itascainternational.com/t/history-of-a-parameter/665/3 "2022-07-20T07:53:33Z")

</div>

Hi, thanks for the response.
