yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10632
Re: [Branch ~yade-pkg/yade/git-trunk] Rev 3804: new simple contact law with normal viscose damping which allows to specify kn and ks/kn in Ip2
Hi all,
I have finally moved all capillary stuff out of ViscEl. See 2 last commits.
What I am planning to do is to use matchmaker.
The only thing, which does not works good for me is the following [1].
Static_cast is not working very well with parents classes. So I needed
to copy parameters manually:
phys->kn = physT->kn;
phys->ks = physT->ks;
phys->cn = physT->cn;
phys->cs = physT->cs;
phys->tangensOfFrictionAngle = physT->tangensOfFrictionAngle;
phys->shearForce = physT->shearForce;
phys->mRtype = physT->mRtype;
What am I missing? Is it possible to do it more nicely?
[1] https://github.com/yade/trunk/blob/master/pkg/dem/ViscoelasticCapillarPM.cpp#L24
Thanks all for discussion
Anton
2014-02-17 12:40 GMT+01:00 Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>:
> Yes, except that the capillary model has no material parameters, hence
> there is no need for a special material.
> A special IPhys to carry the data is enough.
References