ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
aslPositionFunction.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 ASLPOSITIONFUNCTION_H
25#define ASLPOSITIONFUNCTION_H
26
28#include "utilities/aslUValue.h"
29
30namespace acl
31{
32 class KernelConfiguration;
33}
34
35namespace asl {
36
37 template <typename T> class AVec;
38 class Block;
39
40 class AbstractDataWithGhostNodes;
41 typedef std::shared_ptr<AbstractDataWithGhostNodes> SPAbstractDataWithGhostNodes;
42
45
49 {
50 protected:
52 public:
55 };
56
58 typedef std::shared_ptr<PositionFunction> SPPositionFunction;
59
69
78
86
94
102
110
120
131
146
154
158 template <typename T>
160
167 const AVec<double> & c);
168
169
180
184 unsigned int gN,
185 acl::TypeID t);
186
187
194 const acl::KernelConfiguration & k);
195
196
197//---------------------------- Implementation --------------------------------
198
199
204
209
214
219
224
225}// asl
226
227#endif // ASLPositionFunction
ACL Kernel configuration class.
The class represents several Element.
PFBinaryOperation(SPPositionFunction a, SPPositionFunction b)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
PFConstant(acl::VectorOfElements v)
PFLinear(acl::VectorOfElements g, acl::VectorOfElements p0)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
PFOperationInversion(SPPositionFunction a)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
PFOperationMinus(SPPositionFunction a, SPPositionFunction b)
PFOperationPlus(SPPositionFunction a, SPPositionFunction b)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
PFOperationProduct(SPPositionFunction a, SPPositionFunction b)
creates function corresponding to a velocity field
PFRotationField(acl::VectorOfElements rotationAxis, acl::VectorOfElements center)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
PFSign(SPPositionFunction a)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)
PFUnaryOperation(SPPositionFunction a)
virtual acl::VectorOfElements value(acl::VectorOfElements &pos)=0
virtual ~PositionFunction()
Updatable value. This class stores value and its TimeStamp.
Definition aslUValue.h:35
SPDataWrapperACLData generateDataContainerACL_SP(const Block &b, unsigned int n=1)
generates pointer to ACL Data field with n components
SPDataWrapperACL generateDataContainer_SP(const Block &b, const acl::VectorOfElements &a)
SPDistanceFunction operator-(SPDistanceFunction a)
SPPositionFunction generatePFConstant(const AVec< double > &a)
SPPositionFunction generatePFRotationField(const AVec< double > &axis, const AVec< double > &c)
SPPositionFunction generatePFLinear(const AVec< double > &g, double p0)
SPPositionFunction operator*(SPPositionFunction a, SPPositionFunction b)
std::shared_ptr< PositionFunction > SPPositionFunction
SPPositionFunction sign(SPPositionFunction a)
Advanced Computational Language.
Definition acl.h:41
TypeID
Definition aclTypes.h:39
Advanced Simulation Library.
Definition aslDataInc.h:31
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
const AMatr< T > operator+(const AMatr< T > &a, const AMatr< T > &b)
void initData(SPAbstractData d, double a)