ASL  0.1.7
Advanced Simulation Library
aslCrystalGrowthBC.h
Go to the documentation of this file.
1 /*
2  * Advanced Simulation Library <http://asl.org.il>
3  *
4  * Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5  *
6  *
7  * This file is part of Advanced Simulation Library (ASL).
8  *
9  * ASL is free software: you can redistribute it and/or modify it
10  * under the terms of the GNU Affero General Public License as
11  * published by the Free Software Foundation, version 3 of the License.
12  *
13  * ASL is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Affero General Public License for more details.
17  *
18  * You should have received a copy of the GNU Affero General Public License
19  * along with ASL. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 
24 #ifndef ASLCRYSTALGROWTHBC_H
25 #define ASLCRYSTALGROWTHBC_H
26 
27 #include "aslBCond.h"
28 #include <data/aslDataWithGhostNodes.h>
29 #include <acl/aclMath/aclVectorOfElementsDef.h>
30 
31 
32 namespace acl
33 {
34  class Kernel;
35  typedef std::shared_ptr<Kernel> SPKernel;
36 }
37 
38 namespace asl
39 {
40  class PositionFunction;
41  typedef std::shared_ptr<PositionFunction> SPPositionFunction;
42 
43 
46  class BCLinearGrowthMap:public BCondWithMap
47  {
48  public:
51  protected:
52  Data data;
55  public:
57  const acl::VectorOfElements & cEq,
58  const acl::VectorOfElements & beta,
59  Data map,
60  const VectorTemplate *const t);
62  const acl::VectorOfElements & cEq,
63  const acl::VectorOfElements & beta,
64  Data map,
66  const VectorTemplate *const t);
68  virtual void execute();
69  virtual void init();
70  };
71 
73 
120  class BCLinearGrowthMap1:public BCondWithMap
121  {
122  public:
125  protected:
126  Data data;
129  public:
131  const acl::VectorOfElements & cEq,
132  const acl::VectorOfElements & beta,
133  Data map,
134  const VectorTemplate *const t);
136  const acl::VectorOfElements & cEq,
137  const acl::VectorOfElements & beta,
138  Data map,
140  const VectorTemplate *const t);
142  virtual void execute();
143  virtual void init();
144  };
145 
148  class BCLinearGrowthMap2:public BCondWithMap
149  {
150  public:
154  protected:
155  Data data;
158  public:
160  const acl::VectorOfElements & cEq,
161  const acl::VectorOfElements & beta,
162  Data map,
163  const VectorTemplate *const t);
165  const acl::VectorOfElements & cEq,
166  const acl::VectorOfElements & beta,
167  Data map,
169  const VectorTemplate *const t);
171  virtual void execute();
172  virtual void init();
173  };
174 
175 
176 
178  double cEq,
179  double beta,
181  const VectorTemplate *const t);
182 
184  double cEq,
185  double beta,
187  SPAbstractDataWithGhostNodes computationalDomain,
188  const VectorTemplate *const t);
189 
191  double cEq,
192  double beta,
194  const VectorTemplate *const t);
195 
197  double cEq,
198  double beta,
200  SPAbstractDataWithGhostNodes computationalDomain,
201  const VectorTemplate *const t);
202 
203 } //asl
204 
205 #endif //ASLCRYSTALGROWTHBC_H
asl::BCLinearGrowthMap2::cEq
acl::VectorOfElements cEq
Definition: aslCrystalGrowthBC.h:156
asl::SPNumMethod
std::shared_ptr< NumMethod > SPNumMethod
Definition: aslNumMethod.h:44
asl::BCLinearGrowthMap1::kernel
acl::SPKernel kernel
Definition: aslCrystalGrowthBC.h:124
asl::BCLinearGrowthMap1::BCLinearGrowthMap1
BCLinearGrowthMap1(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, const VectorTemplate *const t)
asl::BCLinearGrowthMap1
Boundary condition that makes gradient proportional to a surface concentration.
Definition: aslCrystalGrowthBC.h:121
asl::BCLinearGrowthMap::beta
acl::VectorOfElements beta
Definition: aslCrystalGrowthBC.h:54
asl::BCLinearGrowthMap::Data
SPAbstractDataWithGhostNodes Data
Definition: aslCrystalGrowthBC.h:49
asl::BCLinearGrowthMap1::cEq
acl::VectorOfElements cEq
Definition: aslCrystalGrowthBC.h:127
acl::SPKernel
std::shared_ptr< Kernel > SPKernel
Definition: aclKernelMerger.h:34
asl::BCLinearGrowthMap1::~BCLinearGrowthMap1
~BCLinearGrowthMap1()
asl::BCLinearGrowthMap2
Definition: aslCrystalGrowthBC.h:149
aslBCond.h
asl::BCLinearGrowthMap::BCLinearGrowthMap
BCLinearGrowthMap(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, Data computationalDomain, const VectorTemplate *const t)
asl::BCLinearGrowthMap2::Data
SPAbstractDataWithGhostNodes Data
Definition: aslCrystalGrowthBC.h:151
asl::BCLinearGrowthMap::~BCLinearGrowthMap
~BCLinearGrowthMap()
asl::BCLinearGrowthMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCLinearGrowthMap2::data
Data data
Definition: aslCrystalGrowthBC.h:155
asl::BCLinearGrowthMap2::kernelCN
acl::SPKernel kernelCN
Definition: aslCrystalGrowthBC.h:152
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
asl::BCLinearGrowthMap2::beta
acl::VectorOfElements beta
Definition: aslCrystalGrowthBC.h:157
asl::BCLinearGrowthMap2::kernelGN
acl::SPKernel kernelGN
Definition: aslCrystalGrowthBC.h:153
asl::BCLinearGrowthMap2::BCLinearGrowthMap2
BCLinearGrowthMap2(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, Data computationalDomain, const VectorTemplate *const t)
asl::generateBCLinearGrowth
SPNumMethod generateBCLinearGrowth(SPAbstractDataWithGhostNodes d, double cEq, double beta, SPAbstractDataWithGhostNodes map, const VectorTemplate *const t)
asl::BCondWithMap::map
SPAbstractDataWithGhostNodes map
boundary description for the particular BC
Definition: aslBCond.h:111
asl::BCondWithMap::computationalDomain
SPAbstractDataWithGhostNodes computationalDomain
Computational domain which contains all boundaries and the particular boundary as well.
Definition: aslBCond.h:114
asl::BCLinearGrowthMap2::~BCLinearGrowthMap2
~BCLinearGrowthMap2()
asl::BCLinearGrowthMap1::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCLinearGrowthMap1::execute
virtual void execute()
Executes the numerical procedure.
asl::BCLinearGrowthMap::BCLinearGrowthMap
BCLinearGrowthMap(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, const VectorTemplate *const t)
asl::generateBCLinearGrowth2
SPNumMethod generateBCLinearGrowth2(SPAbstractDataWithGhostNodes d, double cEq, double beta, SPAbstractDataWithGhostNodes map, const VectorTemplate *const t)
asl::VectorTemplate
Defines set of vectros with several properties.
Definition: aslTemplates.h:88
asl::BCLinearGrowthMap2::execute
virtual void execute()
Executes the numerical procedure.
asl::BCLinearGrowthMap1::data
Data data
Definition: aslCrystalGrowthBC.h:126
asl::BCondWithMap
Virtual class describes general interface for boundary conditions.
Definition: aslBCond.h:101
asl::BCLinearGrowthMap1::Data
SPAbstractDataWithGhostNodes Data
Definition: aslCrystalGrowthBC.h:123
asl::SPPositionFunction
std::shared_ptr< PositionFunction > SPPositionFunction
Definition: aslPositionFunction.h:58
asl::BCLinearGrowthMap::data
Data data
Definition: aslCrystalGrowthBC.h:52
acl::map
std::shared_ptr< T > map(ElementData m)
Definition: aclMemBlock.h:68
asl::BCLinearGrowthMap::cEq
acl::VectorOfElements cEq
Definition: aslCrystalGrowthBC.h:53
asl::BCLinearGrowthMap1::beta
acl::VectorOfElements beta
Definition: aslCrystalGrowthBC.h:128
asl::BCLinearGrowthMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCLinearGrowthMap2::BCLinearGrowthMap2
BCLinearGrowthMap2(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, const VectorTemplate *const t)
asl::BCLinearGrowthMap1::BCLinearGrowthMap1
BCLinearGrowthMap1(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, Data computationalDomain, const VectorTemplate *const t)
asl
Advanced Simulation Library.
Definition: aslDataInc.h:31
acl
Advanced Computational Language.
Definition: acl.h:41
asl::BCLinearGrowthMap::kernel
acl::SPKernel kernel
Definition: aslCrystalGrowthBC.h:50
asl::BCLinearGrowthMap2::init
virtual void init()
Builds the necesery internal data and kernels.
asl::SPAbstractDataWithGhostNodes
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition: aslGenerators.h:50