← Back to team overview

yade-users team mailing list archive

Re: [Question #258258]: Cohesion creation- a new constitutive law

 

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

    Status: Answered => Open

behzad is still having a problem:
Hi,

Yes and I'm using the same method of CohesiveFrictionalContactLaw.
for example I've got:

class Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys: public IPhysFunctor {
	public :
		virtual void go(const shared_ptr<Material>& b1,
				const shared_ptr<Material>& b2,
				const shared_ptr<Interaction>& interaction);
				void Calculate_CohBurgersMat_CohBurgersMat_CohBurgersPhys(const shared_ptr<Material>& b1, const shared_ptr<Material>& b2, const shared_ptr<Interaction>& interaction, shared_ptr<CohBurgersPhys> phys);
				int cohesionDefinitionIteration;
				
	YADE_CLASS_BASE_DOC_ATTRS_CTOR(Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys,IPhysFunctor,"Convert 2 instances of :yref:`CohBurgersMat` to :yref:`CohBurgersPhys` using the rule of consecutive connection.",

	((bool,setCohesionNow,true,,"If true, assign cohesion to all existing contacts in current time-step."))
	((bool,setCohesionOnNewContacts,true,,"If true, assign cohesion at all new contacts. If false, only existing contacts can be cohesive"))	
	,cohesionDefinitionIteration = -1;
	);
	FUNCTOR2D(CohBurgersMat,CohBurgersMat);
};
REGISTER_SERIALIZABLE(Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys);

But, still saying;

InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom()],
[Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys(setCohesionNow=True, setCohesionOnNewContacts=True)],...)

doesn't make any cohesive interactions.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.