← Back to team overview

yade-dev team mailing list archive

[Bug 1308074] Re: getCapillaryStress() returns Matrix::Zero()

 

The problem is getStress is trying to static_cast MindlinCapillaryPhys as a CapillaryPhys while they are independant classes.
I don't think it ever worked before. I'm surprised that it doesn't simply crash. Maybe last year you were not using Mindlin law.
Or, you were very lucky and somehow the wrong cast was giving the right value since both classes have the member fCap.

Anyway, it is fixed now [1].
You can use getCapillaryStress(mindlin=True)
Note that you should give the volume argument to.

[1]
https://github.com/yade/trunk/commit/84a28bebea5a8c2a772a11ccd88934e9e6ae88fe

** Changed in: yade
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1308074

Title:
  getCapillaryStress() returns Matrix::Zero()

Status in Yet Another Dynamic Engine:
  Fix Released

Bug description:
  Hi,

  I noticed, that getCapillaryStress() function returns

  Matrix3(0,0,0, 0,0,0, 0,0,0)

  whatever the input is (getCapillaryStress(), getCapillaryStress(1),
  getCapillaryStress(0), getCapillaryStress(vol), ...)

  In a yade version from july of last year it was working while a newer
  version (march 2014) is not

  Can someone confirm, please?

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1308074/+subscriptions


References