forked from gladk/trunk
/
QMInteraction.hpp
82 lines (72 loc) · 2.53 KB
/
QMInteraction.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// 2014 © Janek Kozicki <cosurgi@gmail.com>
#pragma once
#include <pkg/common/Dispatching.hpp>
#include <core/Scene.hpp>
#include <stdexcept>
#include "QMParameters.hpp"
#include "QMGeometry.hpp"
#include <pkg/common/Box.hpp>
#include <lib/base/NDimTable.hpp>
#include "QMPotential.hpp"
/*********************************************************************************
*
* I P 2 I N T E R A C T I O N P H Y S I C S creates constitutive parameters of the contact
*
*********************************************************************************/
/*! @brief When two QMState meet the QMParameters of those two is used to create
* QMPotPhysics with corresponding parameters.
*
*/
class Ip2_QMParameters_QMParameters_QMPotPhysics: public IPhysFunctor
{
public:
virtual void go(const shared_ptr<Material>& pp1, const shared_ptr<Material>& pp2, const shared_ptr<Interaction>& interaction);
FUNCTOR2D(QMParameters,QMParameters);
DECLARE_LOGGER;
YADE_CLASS_BASE_DOC_ATTRS(
// class name
Ip2_QMParameters_QMParameters_QMPotPhysics
, // base class
IPhysFunctor
, // class description
"Convert :yref:`QMParameters` instance and :yref:`QMParameters` instance to \
:yref:`QMPotPhysics` with corresponding parameters."
, // attributes, public variables
// ((long,nothing,10,,"placeholder"))
);
};
REGISTER_SERIALIZABLE(Ip2_QMParameters_QMParameters_QMPotPhysics);
/*********************************************************************************
*
* L A W 2 In DEM it was used to calculate Fn and Fs between two interacting bodies
*
*********************************************************************************/
/*! @brief In DEM it was used to calculate Fn and Fs between two interacting bodies,
* so this function takes following input:
* QMPotPhysics
* QMPotGeometry
* Interaction
*
* But what will it do? Maybe Quantum Field Theory will answer that.
*
*/
class Law2_QMPotGeometry_QMPotPhysics_QMPotPhysics: public LawFunctor
{
public:
virtual bool go(shared_ptr<IGeom>& _geom, shared_ptr<IPhys>& _phys, Interaction* I);
FUNCTOR2D(QMPotGeometry,QMPotPhysics);
YADE_CLASS_BASE_DOC_ATTRS_CTOR_PY(
// class name
Law2_QMPotGeometry_QMPotPhysics_QMPotPhysics
, // base class
LawFunctor
, // class description
"Constitutive law for the :yref:`WaveFunction-model<QMParameters>`."
, // attributes, public variables
// ((bool,empty,true,,"placeholder"))
, // constructor
, // python bindings
);
DECLARE_LOGGER;
};
REGISTER_SERIALIZABLE(Law2_QMPotGeometry_QMPotPhysics_QMPotPhysics);