aslFDElasticityBC.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 ASLFDELASTICITYBC_H
#define ASLFDELASTICITYBC_H
#include "aslBCond.h"
#include "acl/aclMath/aclVectorOfElementsDef.h"
namespace acl{
class Kernel;
typedef std::shared_ptr<Kernel> SPKernel;
}
namespace asl
{
class ElasticityCommonA;
typedef std::shared_ptr<ElasticityCommonA> SPElasticityCommonA;
class FDElasticityIncompressibleStatic;
typedef std::shared_ptr<FDElasticityIncompressibleStatic> SPFDElasticityIncompressibleStatic;
class FDElasticityRelaxation;
typedef std::shared_ptr<FDElasticityRelaxation> SPFDElasticityRelaxation;
class FDElasticity2;
typedef std::shared_ptr<FDElasticity2> SPFDElasticity2;
class BCRigidWall:public BCond
{
protected:
std::unique_ptr<acl::Kernel> kernel;
SPFDElasticityIncompressibleStatic num;
public:
BCRigidWall(SPFDElasticityIncompressibleStatic nm);
virtual void execute();
virtual void init();
};
SPBCond generateBCRigidWall(SPFDElasticityIncompressibleStatic nm,
const std::vector<SlicesNames> & sl);
class BCRigidWallRelaxation:public BCond
{
protected:
std::unique_ptr<acl::Kernel> kernel;
SPFDElasticityRelaxation num;
acl::VectorOfElements value;
public:
BCRigidWallRelaxation(SPFDElasticityRelaxation nm);
BCRigidWallRelaxation(SPFDElasticityRelaxation nm, acl::VectorOfElements v);
virtual void execute();
virtual void init();
};
SPBCond generateBCRigidWall(SPFDElasticityRelaxation nm,
const std::vector<SlicesNames> & sl);
SPBCond generateBCRigidWall(SPFDElasticity2 nm,
const std::vector<SlicesNames> & sl);
SPBCond generateBCRigidWall(SPFDElasticity2 nm,
const AVec<> & u0,
const std::vector<SlicesNames> & sl);
SPBCond generateBCRigidWall(SPFDElasticityRelaxation nm,
const AVec<> & u0,
const std::vector<SlicesNames> & sl);
class BCFreeSurface:public BCond
{
protected:
std::unique_ptr<acl::Kernel> kernel;
FDElasticityIncompressibleStatic* num;
public:
BCFreeSurface(FDElasticityIncompressibleStatic* nm);
virtual void execute();
virtual void init();
};
class BCFreeSurface2:public BCond
{
protected:
std::unique_ptr<acl::Kernel> kernel;
SPFDElasticity2 num;
public:
BCFreeSurface2(SPFDElasticity2 nm);
~BCFreeSurface2();
virtual void execute();
virtual void init();
};
class BCZeroStressMap: public BCondWithMap
{
protected:
SPAbstractDataWithGhostNodes displacement;
acl::VectorOfElements lambda;
acl::VectorOfElements mu;
acl::SPKernel kernel;
public:
BCZeroStressMap(SPAbstractDataWithGhostNodes displacement,
acl::VectorOfElements lambda,
acl::VectorOfElements mu,
SPAbstractDataWithGhostNodes map,
const VectorTemplate *const t);
~BCZeroStressMap();
virtual void execute();
virtual void init();
};
SPNumMethod generateBCZeroStress(SPElasticityCommonA nm,
SPAbstractDataWithGhostNodes map);
// SPNumMethod generateBCZeroStress(SPFDElasticityIncompressibleStatic nm,
// SPAbstractDataWithGhostNodes map);
// SPNumMethod generateBCZeroStress(SPFDElasticityRelaxation nm,
// SPAbstractDataWithGhostNodes map);
SPNumMethod generateBCZeroStressP(SPFDElasticityIncompressibleStatic nm,
SPAbstractDataWithGhostNodes map);
SPNumMethod generateBCZeroStressP(SPFDElasticityRelaxation nm,
SPAbstractDataWithGhostNodes map);
class BCImposedDisplacementVelocityValue:public BCond
{
protected:
std::unique_ptr<acl::Kernel> kernel;
SPFDElasticityIncompressibleStatic num;
AVec<double> displacement;
bool bDisplacement;
AVec<double> velocity;
bool bVelocity;
bool initialized;
public:
BCImposedDisplacementVelocityValue(SPFDElasticityIncompressibleStatic nm);
virtual void execute();
virtual void init();
void setDisplacement(AVec<double> d);
void setVelocity(AVec<double> v);
};
class BCAccelerationSource2: public BCond
{
protected:
std::unique_ptr<acl::Kernel> kernel;
FDElasticity2* num;
acl::VectorOfElements acceleration;
bool initialized;
public:
BCAccelerationSource2(FDElasticity2* nm);
virtual void execute();
virtual void init();
void setAcceleration(AVec<double> a);
};
} //asl
#endif //ASLFDELASTICITYBC_H
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
asl::AVec
Definition: aslVectorsDynamicLength.h:40
asl::BCAccelerationSource2
Bondary condition local force(acceleration)
Definition: aslFDElasticityBC.h:275
asl::BCAccelerationSource2::execute
virtual void execute()
Executes the numerical procedure.
asl::BCAccelerationSource2::acceleration
acl::VectorOfElements acceleration
Definition: aslFDElasticityBC.h:279
asl::BCAccelerationSource2::num
FDElasticity2 * num
Definition: aslFDElasticityBC.h:278
asl::BCAccelerationSource2::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCAccelerationSource2::BCAccelerationSource2
BCAccelerationSource2(FDElasticity2 *nm)
asl::BCAccelerationSource2::setAcceleration
void setAcceleration(AVec< double > a)
asl::BCAccelerationSource2::initialized
bool initialized
Definition: aslFDElasticityBC.h:280
asl::BCAccelerationSource2::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslFDElasticityBC.h:277
asl::BCFreeSurface2
Bondary condition corresponding to a free surface ( )
Definition: aslFDElasticityBC.h:143
asl::BCFreeSurface2::execute
virtual void execute()
Executes the numerical procedure.
asl::BCFreeSurface2::BCFreeSurface2
BCFreeSurface2(SPFDElasticity2 nm)
asl::BCFreeSurface2::num
SPFDElasticity2 num
Definition: aslFDElasticityBC.h:146
asl::BCFreeSurface2::~BCFreeSurface2
~BCFreeSurface2()
asl::BCFreeSurface2::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCFreeSurface2::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslFDElasticityBC.h:145
asl::BCFreeSurface
Bondary condition corresponding to a free surface ( and )
Definition: aslFDElasticityBC.h:125
asl::BCFreeSurface::execute
virtual void execute()
Executes the numerical procedure.
asl::BCFreeSurface::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslFDElasticityBC.h:127
asl::BCFreeSurface::num
FDElasticityIncompressibleStatic * num
Definition: aslFDElasticityBC.h:128
asl::BCFreeSurface::BCFreeSurface
BCFreeSurface(FDElasticityIncompressibleStatic *nm)
asl::BCFreeSurface::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCImposedDisplacementVelocityValue
Bondary condition set given values to displacement/velocity.
Definition: aslFDElasticityBC.h:253
asl::BCImposedDisplacementVelocityValue::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslFDElasticityBC.h:255
asl::BCImposedDisplacementVelocityValue::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCImposedDisplacementVelocityValue::setDisplacement
void setDisplacement(AVec< double > d)
asl::BCImposedDisplacementVelocityValue::displacement
AVec< double > displacement
Definition: aslFDElasticityBC.h:257
asl::BCImposedDisplacementVelocityValue::BCImposedDisplacementVelocityValue
BCImposedDisplacementVelocityValue(SPFDElasticityIncompressibleStatic nm)
asl::BCImposedDisplacementVelocityValue::setVelocity
void setVelocity(AVec< double > v)
asl::BCImposedDisplacementVelocityValue::bDisplacement
bool bDisplacement
Definition: aslFDElasticityBC.h:258
asl::BCImposedDisplacementVelocityValue::bVelocity
bool bVelocity
Definition: aslFDElasticityBC.h:260
asl::BCImposedDisplacementVelocityValue::num
SPFDElasticityIncompressibleStatic num
Definition: aslFDElasticityBC.h:256
asl::BCImposedDisplacementVelocityValue::initialized
bool initialized
Definition: aslFDElasticityBC.h:261
asl::BCImposedDisplacementVelocityValue::execute
virtual void execute()
Executes the numerical procedure.
asl::BCImposedDisplacementVelocityValue::velocity
AVec< double > velocity
Definition: aslFDElasticityBC.h:259
asl::BCRigidWall::num
SPFDElasticityIncompressibleStatic num
Definition: aslFDElasticityBC.h:54
asl::BCRigidWall::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslFDElasticityBC.h:53
asl::BCRigidWall::BCRigidWall
BCRigidWall(SPFDElasticityIncompressibleStatic nm)
asl::BCRigidWall::execute
virtual void execute()
Executes the numerical procedure.
asl::BCRigidWall::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCRigidWallRelaxation
Bondary condition corresponding to a rigid wall ( and )
Definition: aslFDElasticityBC.h:74
asl::BCRigidWallRelaxation::value
acl::VectorOfElements value
Definition: aslFDElasticityBC.h:78
asl::BCRigidWallRelaxation::BCRigidWallRelaxation
BCRigidWallRelaxation(SPFDElasticityRelaxation nm, acl::VectorOfElements v)
asl::BCRigidWallRelaxation::num
SPFDElasticityRelaxation num
Definition: aslFDElasticityBC.h:77
asl::BCRigidWallRelaxation::execute
virtual void execute()
Executes the numerical procedure.
asl::BCRigidWallRelaxation::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCRigidWallRelaxation::kernel
std::unique_ptr< acl::Kernel > kernel
Definition: aslFDElasticityBC.h:76
asl::BCRigidWallRelaxation::BCRigidWallRelaxation
BCRigidWallRelaxation(SPFDElasticityRelaxation nm)
asl::BCZeroStressMap
Bondary condition corresponding to a free surface.
Definition: aslFDElasticityBC.h:195
asl::BCZeroStressMap::displacement
SPAbstractDataWithGhostNodes displacement
Definition: aslFDElasticityBC.h:197
asl::BCZeroStressMap::lambda
acl::VectorOfElements lambda
Definition: aslFDElasticityBC.h:198
asl::BCZeroStressMap::BCZeroStressMap
BCZeroStressMap(SPAbstractDataWithGhostNodes displacement, acl::VectorOfElements lambda, acl::VectorOfElements mu, SPAbstractDataWithGhostNodes map, const VectorTemplate *const t)
asl::BCZeroStressMap::mu
acl::VectorOfElements mu
Definition: aslFDElasticityBC.h:199
asl::BCZeroStressMap::kernel
acl::SPKernel kernel
Definition: aslFDElasticityBC.h:200
asl::BCZeroStressMap::execute
virtual void execute()
Executes the numerical procedure.
asl::BCZeroStressMap::init
virtual void init()
Builds the necesery internal data and kernels.
asl::BCZeroStressMap::~BCZeroStressMap
~BCZeroStressMap()
asl::BCond
Virtual class describes general interface for boundary conditions.
Definition: aslBCond.h:59
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::FDElasticity2
Numerical method which computes homogenious isotropic elasticity equation.
Definition: aslFDElasticity.h:167
asl::FDElasticityIncompressibleStatic
Numerical method which computes homogenious isotropic elasticity equation.
Definition: aslFDElasticity.h:99
asl::VectorTemplate
Defines set of vectros with several properties.
Definition: aslTemplates.h:88
asl::generateBCZeroStressP
SPNumMethod generateBCZeroStressP(SPFDElasticityIncompressibleStatic nm, SPAbstractDataWithGhostNodes map)
Bondary condition set given values to displacement/velocity.
asl::generateBCZeroStress
SPNumMethod generateBCZeroStress(SPElasticityCommonA nm, SPAbstractDataWithGhostNodes map)
Bondary condition set given values to displacement/velocity.
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::generateBCRigidWall
SPBCond generateBCRigidWall(SPFDElasticityIncompressibleStatic nm, const std::vector< SlicesNames > &sl)
Bondary condition corresponding to a rigid wall ( and )
asl::SPFDElasticity2
std::shared_ptr< FDElasticity2 > SPFDElasticity2
Definition: aslFDElasticity.h:193
asl::SPAbstractDataWithGhostNodes
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition: aslGenerators.h:50
asl::SPNumMethod
std::shared_ptr< NumMethod > SPNumMethod
Definition: aslNumMethod.h:44
asl::SPElasticityCommonA
std::shared_ptr< ElasticityCommonA > SPElasticityCommonA
Definition: aslFDElasticityBC.h:37
asl::SPFDElasticityIncompressibleStatic
std::shared_ptr< FDElasticityIncompressibleStatic > SPFDElasticityIncompressibleStatic
Definition: aslFDElasticity.h:120
asl::SPBCond
std::shared_ptr< BCond > SPBCond
Definition: aslBCond.h:88
asl::SPFDElasticityRelaxation
std::shared_ptr< FDElasticityRelaxation > SPFDElasticityRelaxation
Definition: aslFDElasticity.h:154
aslBCond.h