← Back to team overview

yade-users team mailing list archive

Re: [Question #247142]: Burger's model implemented?

 

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

    Status: Answered => Open

behzad is still having a problem:
Hi,

Jingsong Chen have put CPP and HPP files of Burger's model in YADE in
his thesis.

How can I implement it now?

for example the HPP contains following;

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

#ifndef Burgers_CONTACT_LAWNew_HPP
#define Burgers_CONTACT_LAWNew_HPP
#include<yade/core/InteractionSolver.hpp>
#include<yade/core/PhysicalAction.hpp>
#include <set>
#include <boost/tuple/tuple.hpp>
class PhysicalAction;
class BurgersContactLawNew : public InteractionSolver
{
private :
shared_ptr<PhysicalAction> actionForce;
shared_ptr<PhysicalAction> actionMomentum;
int actionForceIndex;
int actionMomentumIndex;
public :
Real BurEmn;// burger's E parameters for maxwell in normal
Real BurEkn;// burger's E parameters for kelvin in normal
direction
direction
Real BurEms;
Real BurEks;
Real BurDmn;// burger's Dashpot parameters for maxwell in
normal direction
Real BurDkn;// burger's Dashpot parameters for kelvin in
normal direction
Real BurDms;
Real BurDks;
Real BurPoi;// burger's Poisson ratio
int sdecGroupMask;
bool momentRotationLaw;
BurgersContactLawNew();
void action(MetaBody*);
protected :
void registerAttributes();
NEEDS_BEX("Force","Momentum");
REGISTER_CLASS_NAME(BurgersContactLawNew);
REGISTER_BASE_CLASS_NAME(InteractionSolver);
};
REGISTER_SERIALIZABLE(BurgersContactLawNew,false);
#endif // Burgers_CONTACT_LAWNew_HPP

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

I can copy the content of CPP file if it's required.

Thanks

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