aslLSFacetedGrowth.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 ASLLSFACETEDGROWTH_H
#define ASLLSFACETEDGROWTH_H
#include "aslLevelSetLinear.h"
#include <math/aslVectorsDynamicLength.h>
namespace acl
{
class ExpressionContainer;
}
namespace asl
{
class CrystallographicParameters
{
public:
vector<AVec<>> directions;
vector<double> betaSt;
vector<double> betaDisl;
double betaRough;
private:
acl::VectorOfElements directionsACL;
acl::VectorOfElements betaStACL;
acl::VectorOfElements betaDislACL;
public:
void directionCode(acl::VectorOfElements normal,
acl::VectorOfElements direction,
acl::VectorOfElements cosTheta,
acl::ExpressionContainer & k);
CrystallographicParameters (const vector<AVec<>> & dir,
const vector<double> & bSt,
const vector<double> & bDisl,
const double bRough);
CrystallographicParameters (const double bRough);
CrystallographicParameters ();
acl::VectorOfElements velocity(acl::VectorOfElements supersaturation,
acl::VectorOfElements dir,
acl::VectorOfElements sinTheta);
acl::VectorOfElements velocity(const acl::VectorOfElements & supersaturation,
const acl::VectorOfElements & dir,
const acl::VectorOfElements & sinTheta,
const acl::VectorOfElements & stepVelocityLimit);
acl::VectorOfElements stepFactor(const acl::VectorOfElements & dir,
const acl::VectorOfElements & position);
void addFacet(const AVec<> normal, double bSt, double bDisl);
void init(acl::TypeID type);
};
class LSFacetedGrowth: public LevelSetLinear
{
public:
typedef SPDataWithGhostNodesACLData Data;
typedef SPDataWithGhostNodesACL DataGen;
CrystallographicParameters crystallography;
protected:
DataGen superSaturation;
virtual void initVelocityComputation();
public:
LSFacetedGrowth();
LSFacetedGrowth(Data df, DataGen c);
~LSFacetedGrowth();
};
typedef std::shared_ptr<LSFacetedGrowth> SPLSFacetedGrowth;
} //asl
#endif //ASLLSFACETEDGROWTH_H
acl::ExpressionContainer
Definition: aclExpressionContainer.h:44
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
asl::AVec
Definition: aslVectorsDynamicLength.h:40
asl::CrystallographicParameters
describes crystalographyly specific date
Definition: aslLSFacetedGrowth.h:42
asl::CrystallographicParameters::addFacet
void addFacet(const AVec<> normal, double bSt, double bDisl)
adds new facet information
asl::CrystallographicParameters::betaDisl
vector< double > betaDisl
Definition: aslLSFacetedGrowth.h:46
asl::CrystallographicParameters::betaRough
double betaRough
Definition: aslLSFacetedGrowth.h:47
asl::CrystallographicParameters::stepFactor
acl::VectorOfElements stepFactor(const acl::VectorOfElements &dir, const acl::VectorOfElements &position)
asl::CrystallographicParameters::directionCode
void directionCode(acl::VectorOfElements normal, acl::VectorOfElements direction, acl::VectorOfElements cosTheta, acl::ExpressionContainer &k)
generates code which results the number corresponds to nearest direction
asl::CrystallographicParameters::velocity
acl::VectorOfElements velocity(acl::VectorOfElements supersaturation, acl::VectorOfElements dir, acl::VectorOfElements sinTheta)
asl::CrystallographicParameters::CrystallographicParameters
CrystallographicParameters(const double bRough)
asl::CrystallographicParameters::velocity
acl::VectorOfElements velocity(const acl::VectorOfElements &supersaturation, const acl::VectorOfElements &dir, const acl::VectorOfElements &sinTheta, const acl::VectorOfElements &stepVelocityLimit)
asl::CrystallographicParameters::directions
vector< AVec<> > directions
Definition: aslLSFacetedGrowth.h:44
asl::CrystallographicParameters::CrystallographicParameters
CrystallographicParameters(const vector< AVec<>> &dir, const vector< double > &bSt, const vector< double > &bDisl, const double bRough)
asl::CrystallographicParameters::init
void init(acl::TypeID type)
initialize acl data
asl::CrystallographicParameters::betaSt
vector< double > betaSt
Definition: aslLSFacetedGrowth.h:45
asl::CrystallographicParameters::CrystallographicParameters
CrystallographicParameters()
asl::LSFacetedGrowth
Numerical method which computes evolution of an interface with a crystalographic kinetics.
Definition: aslLSFacetedGrowth.h:92
asl::LSFacetedGrowth::crystallography
CrystallographicParameters crystallography
Definition: aslLSFacetedGrowth.h:97
asl::LSFacetedGrowth::Data
SPDataWithGhostNodesACLData Data
Definition: aslLSFacetedGrowth.h:94
asl::LSFacetedGrowth::LSFacetedGrowth
LSFacetedGrowth(Data df, DataGen c)
asl::LSFacetedGrowth::superSaturation
DataGen superSaturation
Definition: aslLSFacetedGrowth.h:99
asl::LSFacetedGrowth::DataGen
SPDataWithGhostNodesACL DataGen
Definition: aslLSFacetedGrowth.h:95
asl::LSFacetedGrowth::LSFacetedGrowth
LSFacetedGrowth()
asl::LSFacetedGrowth::~LSFacetedGrowth
~LSFacetedGrowth()
asl::LSFacetedGrowth::initVelocityComputation
virtual void initVelocityComputation()
asl::LevelSet::Data
SPDataWithGhostNodesACLData Data
Definition: aslLevelSet.h:60
asl::LevelSet::DataGen
SPDataWithGhostNodesACL DataGen
Definition: aslLevelSet.h:61
asl::LevelSetLinear
Numerical method which computes evolution of an interface.
Definition: aslLevelSetLinear.h:41
type
acl::TypeID type(acl::typeToTypeID< FlT >())
acl
Advanced Computational Language.
Definition: acl.h:41
acl::TypeID
TypeID
Definition: aclTypes.h:39
asl
Advanced Simulation Library.
Definition: aslDataInc.h:31
asl::SPLSFacetedGrowth
std::shared_ptr< LSFacetedGrowth > SPLSFacetedGrowth
Definition: aslLSFacetedGrowth.h:113
asl::SPDataWithGhostNodesACL
std::shared_ptr< DataWithGhostNodesACL > SPDataWithGhostNodesACL
Definition: aslGenerators.h:49
asl::SPDataWithGhostNodesACLData
std::shared_ptr< DataWithGhostNodesACLData > SPDataWithGhostNodesACLData
Definition: aslGenerators.h:47
aslLevelSetLinear.h