Debian Codegraph @

src/num/aslBasicBC2.h

raw
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 ASLBASICBC2_H
25 #define ASLBASICBC2_H
26
27 #include "aslBCond.h"
28 #include <data/aslDataWithGhostNodes.h>
29 #include <acl/aclMath/aclVectorOfElementsDef.h>
30
31
32 namespace acl{
33 class Kernel;
34 typedef std::shared_ptr<Kernel> SPKernel;
35 }
36
37
38
39 namespace asl
40 {
41 template <typename T> class UValue;
42 class PositionFunction;
43 typedef std::shared_ptr<PositionFunction> SPPositionFunction;
44
45
46
47 /// Bondary condition that puts fixed value in each point
48 /**
49 \ingroup GenericBC
50 */
51 /* class BCConstantValueMap:public BCondWithMap
52 {
53 public:
54 typedef SPAbstractDataWithGhostNodes Data;
55 acl::SPKernel kernel;
56 protected:
57 Data data;
58 acl::VectorOfElements value;
59 public:
60 BCConstantValueMap(Data d,
61 const acl::VectorOfElements & v,
62 Data map);
63 ~BCConstantValueMap();
64 virtual void execute();
65 virtual void init();
66 void setValue(const acl::VectorOfElements & v);
67 };
68 */
69
70 /// Bondary condition that puts fixed value in each point
71 /**
72 \ingroup GenericBC
73 */
74 /* class BCValuePFMap:public BCondWithMap
75 {
76 public:
77 typedef SPAbstractDataWithGhostNodes Data;
78 acl::SPKernel kernel;
79 protected:
80 Data data;
81 SPPositionFunction value;
82 public:
83 BCValuePFMap(Data d,
84 SPPositionFunction val,
85 Data map);
86 ~BCValuePFMap();
87 virtual void execute();
88 virtual void init();
89 void setValue(SPPositionFunction v);
90 };
91 */
92
93 /// Bondary condition that makes fixed gradient, second order accuracy \ingroup GenericBC
94 class BCConstantGradientMap2:public BCondWithMap
95 {
96 public:
97 typedef SPAbstractDataWithGhostNodes Data;
98 acl::SPKernel kernelCN;
99 acl::SPKernel kernelGN;
100 protected:
101 Data data;
102 acl::VectorOfElements value;
103 public:
104 BCConstantGradientMap2(Data d,
105 const acl::VectorOfElements & v,
106 Data map,
107 const VectorTemplate *const t);
108 BCConstantGradientMap2(Data d,
109 const acl::VectorOfElements & v,
110 Data map,
111 Data computationalDomain,
112 const VectorTemplate *const t);
113 ~BCConstantGradientMap2();
114 virtual void execute();
115 virtual void init();
116 void setValue(const acl::VectorOfElements & v);
117 };
118
119 } //asl
120
121 #endif //ASLBASICBC2_H