History of a parameter

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

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.

1 Like

Hi, thanks for the response.