← Back to team overview

yade-users team mailing list archive

Re: [Question #275834]: Calculating normElastEnergy

 

Question #275834 on Yade changed:
https://answers.launchpad.net/yade/+question/275834

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

it depends on material model [1,2,3]. In [2,3] cases the calculation is (in
python pseudocode):

##########################
ret = 0.0
for i in O.interactions:
  fn = i.phys.normalForce
  ret += fn.squaredNorm() / i.phys.kn
##########################

The only exception is the HertzMindlin law [1]
cheers
Jan

[1] https://github.com/yade/trunk/blob/master/pkg/dem/HertzMindlin.cpp#L118
[2]
https://github.com/yade/trunk/blob/master/pkg/dem/CohesiveFrictionalContactLaw.cpp#L23
[3]
https://github.com/yade/trunk/blob/master/pkg/dem/InelastCohFrictPM.cpp#L67


2015-11-28 5:17 GMT+01:00 ipemath
<question275834@xxxxxxxxxxxxxxxxxxxxx>:

> New question #275834 on Yade:
> https://answers.launchpad.net/yade/+question/275834
>
> How normElastEnergy is calculated in Yade. Please provide some reference
> for this calculation?
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.