yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07665
[Branch ~yade-dev/yade/trunk] Rev 2867: 1. add some more comments
------------------------------------------------------------
revno: 2867
committer: Klaus Thoeni <klaus.thoeni@xxxxxxxxx>
branch nick: yade
timestamp: Tue 2011-05-24 14:55:42 +1000
message:
1. add some more comments
2. correct some typos
modified:
pkg/dem/WirePM.cpp
py/pack/pack.py
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/dem/WirePM.cpp'
--- pkg/dem/WirePM.cpp 2011-04-18 03:39:47 +0000
+++ pkg/dem/WirePM.cpp 2011-05-24 04:55:42 +0000
@@ -21,7 +21,7 @@
throw invalid_argument("WireMat.strainStressValues: at least two points must be given.");
if(strainStressValues[0](0) == 0. && strainStressValues[0](1) == 0.)
throw invalid_argument("WireMat.strainStressValues: Definition must start with values greather then zero (strain>0,stress>0)");
- // compute cross-sectin area
+ // compute cross-section area
as = pow(diameter*0.5,2)*Mathr::PI;
}
@@ -41,7 +41,7 @@
Body* b1 = Body::byId(id1,scene).get();
Body* b2 = Body::byId(id2,scene).get();
- Real displN = geom->penetrationDepth; // NOTE: ScGeom->penetrationDepth>0 when spheres interpenetrate, and therefore, for wire always negative
+ Real displN = geom->penetrationDepth; // NOTE: ScGeom -> penetrationDepth>0 when spheres interpenetrate, and therefore, for wire always negative
/* get reference to values since values are updated for unloading */
vector<Vector2r> &DFValues = phys->displForceValues;
@@ -137,7 +137,7 @@
Real crossSection;
vector<Vector2r> SSValues;
- /* ckeck properties of interaction */
+ /* check properties of interaction */
if ( mat1->id == mat2->id ) { // interaction of two bodies of the same material
crossSection = mat1->as;
SSValues = mat1->strainStressValues;
@@ -163,9 +163,9 @@
Real R1 = geom->radius1;
Real R2 = geom->radius2;
- Real l0 = R1 + R2 - contactPhysics->initD; // initial lenght of the wire (can be single or double twisted)
+ Real l0 = R1 + R2 - contactPhysics->initD; // initial length of the wire (can be single or double twisted)
- /* compute thresholddisplscement-force values (tension negative since ScGem is used!) */
+ /* compute threshold displacement-force values (tension negative since ScGem is used!) */
vector<Vector2r> DFValues;
for ( vector<Vector2r>::iterator it = SSValues.begin(); it != SSValues.end(); it++ ) {
Vector2r values = Vector2r::Zero();
@@ -178,10 +178,12 @@
vector<Real> kValues;
Real k = DFValues[0](1) / DFValues[0](0);
- /* update values if the interaction is double twiseted */
+ /* update values if the interaction is double twisted */
if ( contactPhysics->isDoubleTwist ) {
Real alpha = atan( l0 / (3.*Mathr::PI*mat1->diameter) );
Real kh = k * ( l0*mat1->diameter/crossSection ) / ( 48.*cos(alpha) * ( 41./9.*(1.+mat1->poisson) + 17./4.*pow(tan(alpha),2) ) );
+// std::cerr << kn << endl;;
+// std::cerr << kh << endl;;
k = 2. * ( mat1->lambdak*kh + (1-mat1->lambdak)*k );
Real F = k * DFValues[0](0);
Real mappingF = F/DFValues[0](1);
@@ -192,7 +194,7 @@
}
}
- /* store displscement-force values in physics */
+ /* store displacement-force values in physics */
contactPhysics->displForceValues = DFValues;
/* compute stiffness-values of wire */
=== modified file 'py/pack/pack.py'
--- py/pack/pack.py 2011-03-17 15:50:01 +0000
+++ py/pack/pack.py 2011-05-24 04:55:42 +0000
@@ -506,7 +506,7 @@
:param cornerCoord: coordinates of the lower left corner of the net
:param xLenght: net length in x-direction
:param yLenght: net length in y-direction
- :param mos: mesh opening size
+ :param mos: mesh opening size (horizontal distance between the double twists)
:param a: length of double-twist
:param b: height of single wire section
:param startAtCorner: if true the generation starts with a double-twist at the lower left corner
@@ -515,7 +515,7 @@
:return: set of spheres which defines the net (net) and exact dimensions of the net (lx,ly).
note::
- This packing works for the WireMatPM only. The particles at the corner are always generated first.
+ This packing works for the WireMatPM only. The particles at the corner are always generated first. For examples on how to use this packing see examples/WireMatPM. In order to create the proper interactions for the net the interaction radius has to be adapted in the simulation.
"""
# check input dimension