← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3694: add a virtual function returning rotational stiffness of the interactions - returning zero if not...

 

------------------------------------------------------------
revno: 3694
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
timestamp: Wed 2015-07-01 20:36:34 +0200
message:
  add a virtual function returning rotational stiffness of the interactions - returning zero if not overloaded
modified:
  pkg/common/NormShearPhys.hpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/common/NormShearPhys.hpp'
--- pkg/common/NormShearPhys.hpp	2014-10-15 06:44:01 +0000
+++ pkg/common/NormShearPhys.hpp	2015-07-01 18:36:34 +0000
@@ -7,6 +7,7 @@
 class NormPhys:public IPhys {
 	public:
 		virtual ~NormPhys() {};
+		virtual Vector3r getRotStiffness() {return Vector3r::Zero();}
 	YADE_CLASS_BASE_DOC_ATTRS_CTOR(NormPhys,IPhys,"Abstract class for interactions that have normal stiffness.",
 		((Real,kn,0,,"Normal stiffness"))
 		((Vector3r,normalForce,Vector3r::Zero(),,"Normal force after previous step (in global coordinates).")),