aslCrystalGrowthBC.h
Go to the documentation of this file.
/*
* Advanced Simulation Library <http://asl.org.il>
*
* Copyright 2015 Avtech Scientific <http://avtechscientific.com>
*
*
* This file is part of Advanced Simulation Library (ASL).
*
* ASL is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, version 3 of the License.
*
* ASL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with ASL. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef ASLCRYSTALGROWTHBC_H
#define ASLCRYSTALGROWTHBC_H
#include "aslBCond.h"
#include <data/aslDataWithGhostNodes.h>
#include <acl/aclMath/aclVectorOfElementsDef.h>
namespace acl
{
class Kernel;
typedef std::shared_ptr<Kernel> SPKernel;
}
namespace asl
{
class PositionFunction;
typedef std::shared_ptr<PositionFunction> SPPositionFunction;
class BCLinearGrowthMap:public BCondWithMap
{
public:
typedef SPAbstractDataWithGhostNodes Data;
acl::SPKernel kernel;
protected:
Data data;
acl::VectorOfElements cEq;
acl::VectorOfElements beta;
public:
BCLinearGrowthMap(Data d,
const acl::VectorOfElements & cEq,
const acl::VectorOfElements & beta,
Data map,
const VectorTemplate *const t);
BCLinearGrowthMap(Data d,
const acl::VectorOfElements & cEq,
const acl::VectorOfElements & beta,
Data map,
Data computationalDomain,
const VectorTemplate *const t);
~BCLinearGrowthMap();
virtual void execute();
virtual void init();
};
class BCLinearGrowthMap1:public BCondWithMap
{
public:
typedef SPAbstractDataWithGhostNodes Data;
acl::SPKernel kernel;
protected:
Data data;
acl::VectorOfElements cEq;
acl::VectorOfElements beta;
public:
BCLinearGrowthMap1(Data d,
const acl::VectorOfElements & cEq,
const acl::VectorOfElements & beta,
Data map,
const VectorTemplate *const t);
BCLinearGrowthMap1(Data d,
const acl::VectorOfElements & cEq,
const acl::VectorOfElements & beta,
Data map,
Data computationalDomain,
const VectorTemplate *const t);
~BCLinearGrowthMap1();
virtual void execute();
virtual void init();
};
class BCLinearGrowthMap2:public BCondWithMap
{
public:
typedef SPAbstractDataWithGhostNodes Data;
acl::SPKernel kernelCN;
acl::SPKernel kernelGN;
protected:
Data data;
acl::VectorOfElements cEq;
acl::VectorOfElements beta;
public:
BCLinearGrowthMap2(Data d,
const acl::VectorOfElements & cEq,
const acl::VectorOfElements & beta,
Data map,
const VectorTemplate *const t);
BCLinearGrowthMap2(Data d,
const acl::VectorOfElements & cEq,
const acl::VectorOfElements & beta,
Data map,
Data computationalDomain,
const VectorTemplate *const t);
~BCLinearGrowthMap2();
virtual void execute();
virtual void init();
};
SPNumMethod generateBCLinearGrowth(SPAbstractDataWithGhostNodes d,
double cEq,
double beta,
SPAbstractDataWithGhostNodes map,
const VectorTemplate *const t);
SPNumMethod generateBCLinearGrowth(SPAbstractDataWithGhostNodes d,
double cEq,
double beta,
SPAbstractDataWithGhostNodes map,
SPAbstractDataWithGhostNodes computationalDomain,
const VectorTemplate *const t);
SPNumMethod generateBCLinearGrowth2(SPAbstractDataWithGhostNodes d,
double cEq,
double beta,
SPAbstractDataWithGhostNodes map,
const VectorTemplate *const t);
SPNumMethod generateBCLinearGrowth2(SPAbstractDataWithGhostNodes d,
double cEq,
double beta,
SPAbstractDataWithGhostNodes map,
SPAbstractDataWithGhostNodes computationalDomain,
const VectorTemplate *const t);
} //asl
#endif //ASLCRYSTALGROWTHBC_H
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
asl::BCLinearGrowthMap1
Boundary condition that makes gradient proportional to a surface concentration.
Definition: aslCrystalGrowthBC.h:121
asl::BCLinearGrowthMap1::data
Data data
Definition: aslCrystalGrowthBC.h:126
asl::BCLinearGrowthMap1::cEq
acl::VectorOfElements cEq
Definition: aslCrystalGrowthBC.h:127
asl::BCLinearGrowthMap1::kernel
acl::SPKernel kernel
Definition: aslCrystalGrowthBC.h:124
asl::BCLinearGrowthMap1::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCLinearGrowthMap1::execute
virtual void execute()
Executes the numerical procedure.
asl::BCLinearGrowthMap1::beta
acl::VectorOfElements beta
Definition: aslCrystalGrowthBC.h:128
asl::BCLinearGrowthMap1::Data
SPAbstractDataWithGhostNodes Data
Definition: aslCrystalGrowthBC.h:123
asl::BCLinearGrowthMap1::~BCLinearGrowthMap1
~BCLinearGrowthMap1()
asl::BCLinearGrowthMap1::BCLinearGrowthMap1
BCLinearGrowthMap1(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::BCLinearGrowthMap2
Definition: aslCrystalGrowthBC.h:149
asl::BCLinearGrowthMap2::beta
acl::VectorOfElements beta
Definition: aslCrystalGrowthBC.h:157
asl::BCLinearGrowthMap2::data
Data data
Definition: aslCrystalGrowthBC.h:155
asl::BCLinearGrowthMap2::~BCLinearGrowthMap2
~BCLinearGrowthMap2()
asl::BCLinearGrowthMap2::BCLinearGrowthMap2
BCLinearGrowthMap2(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, const VectorTemplate *const t)
asl::BCLinearGrowthMap2::Data
SPAbstractDataWithGhostNodes Data
Definition: aslCrystalGrowthBC.h:151
asl::BCLinearGrowthMap2::BCLinearGrowthMap2
BCLinearGrowthMap2(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, Data computationalDomain, const VectorTemplate *const t)
asl::BCLinearGrowthMap2::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCLinearGrowthMap2::cEq
acl::VectorOfElements cEq
Definition: aslCrystalGrowthBC.h:156
asl::BCLinearGrowthMap2::execute
virtual void execute()
Executes the numerical procedure.
asl::BCLinearGrowthMap2::kernelGN
acl::SPKernel kernelGN
Definition: aslCrystalGrowthBC.h:153
asl::BCLinearGrowthMap2::kernelCN
acl::SPKernel kernelCN
Definition: aslCrystalGrowthBC.h:152
asl::BCLinearGrowthMap
Definition: aslCrystalGrowthBC.h:47
asl::BCLinearGrowthMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCLinearGrowthMap::BCLinearGrowthMap
BCLinearGrowthMap(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, Data computationalDomain, const VectorTemplate *const t)
asl::BCLinearGrowthMap::kernel
acl::SPKernel kernel
Definition: aslCrystalGrowthBC.h:50
asl::BCLinearGrowthMap::beta
acl::VectorOfElements beta
Definition: aslCrystalGrowthBC.h:54
asl::BCLinearGrowthMap::data
Data data
Definition: aslCrystalGrowthBC.h:52
asl::BCLinearGrowthMap::cEq
acl::VectorOfElements cEq
Definition: aslCrystalGrowthBC.h:53
asl::BCLinearGrowthMap::Data
SPAbstractDataWithGhostNodes Data
Definition: aslCrystalGrowthBC.h:49
asl::BCLinearGrowthMap::BCLinearGrowthMap
BCLinearGrowthMap(Data d, const acl::VectorOfElements &cEq, const acl::VectorOfElements &beta, Data map, const VectorTemplate *const t)
asl::BCLinearGrowthMap::~BCLinearGrowthMap
~BCLinearGrowthMap()
asl::BCLinearGrowthMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCondWithMap
Virtual class describes general interface for boundary conditions.
Definition: aslBCond.h:101
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::VectorTemplate
Defines set of vectros with several properties.
Definition: aslTemplates.h:88
asl::SPPositionFunction
std::shared_ptr< PositionFunction > SPPositionFunction
Definition: aslPositionFunction.h:58
acl
Advanced Computational Language.
Definition: acl.h:41
acl::map
std::shared_ptr< T > map(ElementData m)
Definition: aclMemBlock.h:68
acl::SPKernel
std::shared_ptr< Kernel > SPKernel
Definition: aclKernelMerger.h:34
asl
Advanced Simulation Library.
Definition: aslDataInc.h:31
asl::generateBCLinearGrowth2
SPNumMethod generateBCLinearGrowth2(SPAbstractDataWithGhostNodes d, double cEq, double beta, SPAbstractDataWithGhostNodes map, const VectorTemplate *const t)
asl::SPAbstractDataWithGhostNodes
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition: aslGenerators.h:50
asl::SPNumMethod
std::shared_ptr< NumMethod > SPNumMethod
Definition: aslNumMethod.h:44
asl::generateBCLinearGrowth
SPNumMethod generateBCLinearGrowth(SPAbstractDataWithGhostNodes d, double cEq, double beta, SPAbstractDataWithGhostNodes map, const VectorTemplate *const t)
aslBCond.h