aslBasicBC2.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 ASLBASICBC2_H
#define ASLBASICBC2_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
{
template <typename T> class UValue;
class PositionFunction;
typedef std::shared_ptr<PositionFunction> SPPositionFunction;
/* class BCConstantValueMap:public BCondWithMap
{
public:
typedef SPAbstractDataWithGhostNodes Data;
acl::SPKernel kernel;
protected:
Data data;
acl::VectorOfElements value;
public:
BCConstantValueMap(Data d,
const acl::VectorOfElements & v,
Data map);
~BCConstantValueMap();
virtual void execute();
virtual void init();
void setValue(const acl::VectorOfElements & v);
};
*/
/* class BCValuePFMap:public BCondWithMap
{
public:
typedef SPAbstractDataWithGhostNodes Data;
acl::SPKernel kernel;
protected:
Data data;
SPPositionFunction value;
public:
BCValuePFMap(Data d,
SPPositionFunction val,
Data map);
~BCValuePFMap();
virtual void execute();
virtual void init();
void setValue(SPPositionFunction v);
};
*/
class BCConstantGradientMap2:public BCondWithMap
{
public:
typedef SPAbstractDataWithGhostNodes Data;
acl::SPKernel kernelCN;
acl::SPKernel kernelGN;
protected:
Data data;
acl::VectorOfElements value;
public:
BCConstantGradientMap2(Data d,
const acl::VectorOfElements & v,
Data map,
const VectorTemplate *const t);
BCConstantGradientMap2(Data d,
const acl::VectorOfElements & v,
Data map,
Data computationalDomain,
const VectorTemplate *const t);
~BCConstantGradientMap2();
virtual void execute();
virtual void init();
void setValue(const acl::VectorOfElements & v);
};
} //asl
#endif //ASLBASICBC2_H
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
asl::BCConstantGradientMap2
Bondary condition that puts fixed value in each point.
Definition: aslBasicBC2.h:95
asl::BCConstantGradientMap2::kernelCN
acl::SPKernel kernelCN
Definition: aslBasicBC2.h:98
asl::BCConstantGradientMap2::kernelGN
acl::SPKernel kernelGN
Definition: aslBasicBC2.h:99
asl::BCConstantGradientMap2::~BCConstantGradientMap2
~BCConstantGradientMap2()
asl::BCConstantGradientMap2::Data
SPAbstractDataWithGhostNodes Data
Definition: aslBasicBC2.h:97
asl::BCConstantGradientMap2::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCConstantGradientMap2::BCConstantGradientMap2
BCConstantGradientMap2(Data d, const acl::VectorOfElements &v, Data map, const VectorTemplate *const t)
asl::BCConstantGradientMap2::setValue
void setValue(const acl::VectorOfElements &v)
asl::BCConstantGradientMap2::BCConstantGradientMap2
BCConstantGradientMap2(Data d, const acl::VectorOfElements &v, Data map, Data computationalDomain, const VectorTemplate *const t)
asl::BCConstantGradientMap2::value
acl::VectorOfElements value
Definition: aslBasicBC2.h:102
asl::BCConstantGradientMap2::execute
virtual void execute()
Executes the numerical procedure.
asl::BCConstantGradientMap2::data
Data data
Definition: aslBasicBC2.h:101
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::SPKernel
std::shared_ptr< Kernel > SPKernel
Definition: aclKernelMerger.h:34
asl
Advanced Simulation Library.
Definition: aslDataInc.h:31
asl::SPAbstractDataWithGhostNodes
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition: aslGenerators.h:50
aslBCond.h