~yade-dev/yade/0.80

« back to all changes in this revision

Viewing changes to pkg/common/NormShearPhys.hpp

  • Committer: Anton Gladky
  • Date: 2012-05-02 21:50:42 UTC
  • Revision ID: gladky.anton@gmail.com-20120502215042-v1fa9r65usqe7kfk
0.80.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// © 2007 Janek Kozicki <cosurgi@mail.berlios.de>
 
2
// © 2008 Václav Šmilauer <eudoxos@arcig.cz>
 
3
#pragma once
 
4
 
 
5
#include<yade/core/IPhys.hpp>
 
6
 
 
7
class NormPhys:public IPhys {
 
8
        public:
 
9
                virtual ~NormPhys();
 
10
        YADE_CLASS_BASE_DOC_ATTRS_CTOR(NormPhys,IPhys,"Abstract class for interactions that have normal stiffness.",
 
11
                ((Real,kn,0,,"Normal stiffness"))
 
12
                ((Vector3r,normalForce,Vector3r::Zero(),,"Normal force after previous step (in global coordinates).")),
 
13
                createIndex();
 
14
        );
 
15
        REGISTER_CLASS_INDEX(NormPhys,IPhys);
 
16
};
 
17
REGISTER_SERIALIZABLE(NormPhys);
 
18
 
 
19
class NormShearPhys: public NormPhys{
 
20
        public:
 
21
                virtual ~NormShearPhys();
 
22
        YADE_CLASS_BASE_DOC_ATTRS_CTOR(NormShearPhys,NormPhys,
 
23
                "Abstract class for interactions that have shear stiffnesses, in addition to normal stiffness. This class is used in the PFC3d-style stiffness timestepper.",
 
24
                ((Real,ks,0,,"Shear stiffness"))
 
25
                ((Vector3r,shearForce,Vector3r::Zero(),,"Shear force after previous step (in global coordinates).")),
 
26
                createIndex();
 
27
        );
 
28
        REGISTER_CLASS_INDEX(NormShearPhys,NormPhys);
 
29
};
 
30
REGISTER_SERIALIZABLE(NormShearPhys);