C++ mpi module for stochmagnet_main Package
SM_PermanentZeemanOperator.h
1 #ifndef SM_PermanentZeemanOperator_H
2 #define SM_PermanentZeemanOperator_H
3 
4 //base classes
5 #include "SM_ZeemanOperator.h"
6 
7 
8 
32 
33  //attributes
34 private :
35 
36 
37  //association
38 
39 
40 
41 protected:
42  // CONSTRUCTORS
47 
48  }
49 
50  // DESTRUCTORS
54  }
55 
56 public :
57 
58  //Instance building
59  //=================
60 
61 
65  inline static CORE_UniquePointer<SM_PermanentZeemanOperator> New() {
66  return CORE_UniquePointer<SM_PermanentZeemanOperator>(new SM_PermanentZeemanOperator(),
68  }
69 
70 
74  virtual CORE_UniquePointer<SM_SliceOperator> NewInstance() const override {
75  return New();
76  }
77 
91  virtual tMemSize getMemorySize() const {
92  return sizeof(*this)+getContentsMemorySize();
93  }
94 
95 public:
96 
97 
102  virtual void discretize(const SM_Network& network, const SM_Material& material) override {
105  }
106 
107 
108 
109 
110 };
111 
112 
113 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class describes a materials defined by state attributes:
Definition: SM_Material.h:61
This class is describes a network composed by.
Definition: SM_Network.h:66
const tInteger & getParticlesNumber() const
return the particles number
Definition: SM_Network.h:349
This class is describes a Zeman operator with applied field time dependant on each particle of the ne...
Definition: SM_PermanentZeemanOperator.h:31
virtual ~SM_PermanentZeemanOperator(void)
destroy
Definition: SM_PermanentZeemanOperator.h:53
static CORE_UniquePointer< SM_PermanentZeemanOperator > New()
build a new instance of the operator
Definition: SM_PermanentZeemanOperator.h:65
virtual CORE_UniquePointer< SM_SliceOperator > NewInstance() const override
create a New instance of this
Definition: SM_PermanentZeemanOperator.h:74
virtual void discretize(const SM_Network &network, const SM_Material &material) override
discretize the operator on the network
Definition: SM_PermanentZeemanOperator.h:102
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_PermanentZeemanOperator.h:91
SM_PermanentZeemanOperator(void)
create a network class
Definition: SM_PermanentZeemanOperator.h:45
This class is describes a Zeeman operator interface.
Definition: SM_ZeemanOperator.h:26
void setParticlesNumber(const tIndex &p)
set zeeman particlules number
Definition: SM_ZeemanOperator.h:122
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: SM_ZeemanOperator.h:93
void setTimeStepsNumber(const tIndex &n)
set zeeman time steps
Definition: SM_ZeemanOperator.h:128