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

Yor1 posted a new comment:
Yes i define the variables like this in JointedCohesiveFroctionalPM.hpp
:

class Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM: public LawFunctor{
 public:
  virtual bool go(shared_ptr<IGeom>& _geom, shared_ptr<IPhys>& _phys, 
Interaction* I);
  FUNCTOR2D(ScGeom,JCFpmPhys);

  
YADE_CLASS_BASE_DOC_ATTRS(Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM,LawFunctor,"Interaction
 law for cohesive frictional material, e.g. rock, possibly presenting joint 
surfaces, that can be mechanically described with a smooth contact logic 
[Ivars2011]_ (implemented in Yade in [Scholtes2012]_). See 
examples/jointedCohesiveFrictionalPM for script examples. Joint surface 
definitions (through stl meshes or direct definition with gts module) are 
illustrated there.",
   ((string,Key,"",,"string specifying the name of saved file 'cracks___.txt', 
when 
:yref:`recordCracks<Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM.recordCracks>`
 is true."))
   ((bool,cracksFileExist,false,,"if true (and if 
:yref:`recordCracks<Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM.recordCracks>`),
 data are appended to an existing 'cracksKey' text file; otherwise its content 
is reset."))
   ((bool,smoothJoint,false,,"if true, interactions of particles belonging to 
joint surface (:yref:`JCFpmPhys.isOnJoint`) are handled according to a smooth 
contact logic [Ivars2011]_, [Scholtes2012]_."))
   ((bool,recordCracks,false,,"if true, data about cohesive interactions that 
break are stored in a text file cracksKey.txt (see 
:yref:`Key<Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM.Key>` and 
:yref:`cracksFileExist<Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM.cracksFileExist>`).
 It contains 9 columns: the break iteration, the 3 coordinates of the contact 
point, the type (1 means shear break, while 0 corresponds to tensile break), 
the ''cross section'' (mean radius of the 2 spheres), the 3 coordinates of the 
contact normal and the energy released."))
   ((bool,recordSlips,false,,"if true, data about frictional interactions that 
slip are stored in a text file cracksKey.txt."))
   ((bool,neverErase,false,,"Keep interactions even if particles go away from 
each other (only in case another constitutive law is in the scene"))
   ((Real,totalSlipE,0.,,"calculate the sum of the energy dissipated by 
particles sliding we can get the value in the recorder through 
interactionLaw.totalSlipE")) // written by Jabrane Hamdi
   ((Real,totalCracksE,0.,,"calculate the sum of the energy dissipated by 
particles contact broken we can get the value in the recorder through 
interactionLaw.totalSlipE")) // written by Jabrane Hamdi
  );

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to