yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10911
[Branch ~yade-pkg/yade/git-trunk] Rev 3996: Minor changes in JCFpm
------------------------------------------------------------
revno: 3996
committer: Jerome Duriez <jerome.duriez@xxxxxxxxxxxxxxx>
timestamp: Wed 2014-05-28 10:47:32 +0200
message:
Minor changes in JCFpm
modified:
pkg/dem/JointedCohesiveFrictionalPM.cpp
pkg/dem/JointedCohesiveFrictionalPM.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/dem/JointedCohesiveFrictionalPM.cpp'
--- pkg/dem/JointedCohesiveFrictionalPM.cpp 2014-05-23 13:05:19 +0000
+++ pkg/dem/JointedCohesiveFrictionalPM.cpp 2014-05-28 08:47:32 +0000
@@ -41,7 +41,7 @@
}
if ( smoothJoint && phys->isOnJoint ) {
- if ( phys->more || ( phys->jointCumulativeSliding > (2*min(geom->radius1,geom->radius2)) ) ) {
+ if ( phys->more || ( phys->jointCumulativeSliding > (2*min(geom->radius1,geom->radius2)) ) ) {
scene->interactions->requestErase(contact); return;
} else {
D = phys->initD - abs((b1->state->pos - b2->state->pos).dot(phys->jointNormal));
@@ -51,8 +51,11 @@
}
/* Determination of interaction */
- if (D < 0) { //spheres do not touch
- if ( !phys->isCohesive ) { scene->interactions->requestErase(contact); return; }
+ if (D < 0) { //spheres do not "touch" !
+ if ( !phys->isCohesive )
+ {
+ scene->interactions->requestErase(contact); return;
+ }
if ( phys->isCohesive && (phys->FnMax>0) && (abs(D)>Dtensile) ) {
@@ -138,9 +141,12 @@
cracksFileExist=true;
// delete contact if in tension, set the contact properties to friction if in compression
- if ( D < 0 ) {
+ if ( D < 0 )
+ {
scene->interactions->requestErase(contact); return;
- } else {
+ }
+ else
+ {
phys->FnMax = 0;
phys->FsMax = 0;
phys->isCohesive=false;
=== modified file 'pkg/dem/JointedCohesiveFrictionalPM.hpp'
--- pkg/dem/JointedCohesiveFrictionalPM.hpp 2014-03-14 08:46:30 +0000
+++ pkg/dem/JointedCohesiveFrictionalPM.hpp 2014-05-28 08:47:32 +0000
@@ -98,7 +98,7 @@
virtual void 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. Joint surfaces can be defined in a preprocessing phase through .stl meshes (see ref for details of the procedure), and can be mechanically described with a smooth contact logic [Ivars2011]_ (implemented in Yade in [Scholtes2012]_).",
+ 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]_."))