← Back to team overview

yade-users team mailing list archive

Re: [Question #251218]: Modifying the Cohesive Frictional Contact Law

 

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

    Status: Answered => Open

behzad is still having a problem:
Alright, I tried to modify CohFrictMat.hpp in trunk/pkg/dem to define a
new class of material.

This material is supposed to have Burger's model. Thus, it must have
four parameters (2 springs stiffness and 2 dashpots viscosity).

Will the following work? Then, I will move on defining the corresponding
Ip2 and a Law class.


=====================================================
 
#pragma once


#include<yade/pkg/common/ElastMat.hpp>


class CohBurgersMat : public FrictMat
{
	public :
		virtual ~CohBurgersMat ();

/// Serialization
	YADE_CLASS_BASE_DOC_ATTRS_CTOR(CohBurgersMat,FrictMat,"",
		((bool,isCohesive,true,,""))
		((Real,Em,1e3,,"Stiffness of Maxwell's spring"))
		((Real,Ek,1e3,,"Stiffness of Kelvin's spring"))
		((Real,Cm,10,,"Viscosity of Maxwell's dashpot"))
	        ((Real,Ck,10,,"Viscosity of Kelvin's dashpot"))
                ((Real,poissonRatio,0.5,,""))
		((Real,normalCohesion,1e4,,""))
		((Real,shearCohesion,1e4,,""))
		createIndex();
		);
/// Indexable
	REGISTER_CLASS_INDEX(CohBurgersMat,FrictMat);
};

REGISTER_SERIALIZABLE(CohBurgersMat);


==============================================

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