ASL  0.1.7
Advanced Simulation Library
aslDistanceFunction.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 ASLDISTANCEFUNCTION_H
25 #define ASLDISTANCEFUNCTION_H
26 
28 #include <aslUtilities.h>
29 
30 namespace acl
31 {
32  class KernelConfiguration;
33 }
34 
35 namespace 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:
53  virtual ~DistanceFunction();
55  };
56 
58  typedef std::shared_ptr<DistanceFunction> SPDistanceFunction;
59 
62  {
63  protected:
66  public:
68  };
69 
72  {
73  protected:
75  public:
77  };
78 
81  {
82  public:
85  };
86 
89  {
90  public:
93  };
94 
97  {
98  public:
101  };
102 
103 
106  {
107  private:
108  acl::VectorOfElements radius;
109  acl::VectorOfElements center;
110  public:
111  DistFSphere(double r, const AVec<double> & c);
113  };
114 
116 
119  {
120  private:
121  acl::VectorOfElements radius;
122  acl::VectorOfElements orientation;
123  acl::VectorOfElements center;
124  public:
130  DistFCylinder(double r, const AVec<double> & l, const AVec<double> & c);
132  };
133 
135 
138  {
139  private:
140  acl::VectorOfElements tanTheta;
141  acl::VectorOfElements orientation;
143  public:
149  DistFCone(double th, const AVec<double> & l, const AVec<double> & a);
151  };
152 
154 
157  {
158  private:
159  acl::VectorOfElements normal;
161  public:
164  };
165 
166 
170  {
171  protected:
173  public:
174  static const double scaleFactor;
177  };
178 
182  {
183  protected:
185 
186  public:
189  };
190 
191 } // asl
192 
193 #endif // ASLDISTANCEFUNCTION
DistFCylinder(double r, const AVec< double > &l, const AVec< double > &c)
virtual ~DistanceFunction()
Advanced Simulation Library.
Definition: aslDataInc.h:30
Advanced Computational Language.
Definition: acl.h:40
std::shared_ptr< DistanceFunction > SPDistanceFunction
Definition: aslGeomInc.h:44
SPAbstractDataWithGhostNodes data
acl::VectorOfElements factor
DistFPlane(AVec< double > n, AVec< double > p0)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
DistFNormalization(SPDistanceFunction a, double dx)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
DataInterpolation(SPAbstractDataWithGhostNodes d)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)=0
DistFSphere(double r, const AVec< double > &c)
acl::VectorOfElements dx(const TemplateVE &a)
differential operator
DistFUnaryOperation(SPDistanceFunction a)
The class represents several Element.
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
DistFOperationAnd(SPDistanceFunction a, SPDistanceFunction b)
static const double scaleFactor
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
DistFCone(double th, const AVec< double > &l, const AVec< double > &a)
DistFOperationOr(SPDistanceFunction a, SPDistanceFunction b)
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition: aslGenerators.h:50
DistFOperationInversion(SPDistanceFunction a)
useful common utilities
virtual acl::VectorOfElements getDistance(const acl::VectorOfElements &pos)
DistFBinaryOperation(SPDistanceFunction a, SPDistanceFunction b)