yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #04519
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
> Casting was what I wanted to avoid, it was the (bad but temporary)
> reason for the virtual in DemXDof.
> I should have put the question more clearly :
> Do you think your code can be adapted (and even benefit from?) using
> vector3r scaleDisplacement(Real multiplier)?
> If yes, then setDispTmax can be replaced by scaleDisp everywhere with a
> few adjustments, non need to cast or implement anything for
> sphere-facets. If not, I'll have to cast or implement.
You have to do the implementation anyway. BTW it is about 2 lines of
code for FacetSphere and WallSphere, so go ahead.
For me, there preferred way would be to add the new method (everywhere),
while keeping the old one at least for some time. (I use it in code
which is not in trunk, and it should stay compatible until I update it
everwhere as well).
Regards, v.
Follow ups
References
-
[Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: noreply, 2010-05-18
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Václav Šmilauer, 2010-05-18
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Václav Šmilauer, 2010-05-18
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Bruno Chareyre, 2010-05-18
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Václav Šmilauer, 2010-05-18
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Bruno Chareyre, 2010-05-19
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Václav Šmilauer, 2010-05-19
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Bruno Chareyre, 2010-05-19
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Václav Šmilauer, 2010-05-19
-
Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...
From: Bruno Chareyre, 2010-05-19