-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpsGeometricModel.hpp
More file actions
59 lines (45 loc) · 1.62 KB
/
Copy pathpsGeometricModel.hpp
File metadata and controls
59 lines (45 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#pragma once
#include <lsGeometricAdvect.hpp>
#include "../psPreCompileMacros.hpp"
#include "../materials/psMaterial.hpp"
namespace viennaps {
using namespace viennacore;
VIENNAPS_TEMPLATE_ND(NumericType, D) class GeometricModel {
SmartPointer<viennals::GeometricAdvectDistribution<NumericType, D>> dist =
nullptr;
SmartPointer<viennals::Domain<NumericType, D>> mask = nullptr;
std::vector<Material> maskMaterials;
bool isDepo = false;
bool applySingleMaterial = false;
public:
GeometricModel() = default;
GeometricModel(
SmartPointer<viennals::GeometricAdvectDistribution<NumericType, D>>
passedDist,
SmartPointer<viennals::Domain<NumericType, D>> passedMask = nullptr)
: dist(passedDist), mask(passedMask) {}
void setDistribution(
SmartPointer<viennals::GeometricAdvectDistribution<NumericType, D>>
passedDist) {
dist = passedDist;
}
void setMask(SmartPointer<viennals::Domain<NumericType, D>> passedMask) {
mask = passedMask;
}
void addMaskMaterial(const Material material) {
maskMaterials.push_back(material);
}
void setMaskMaterials(const std::vector<Material> &materials) {
maskMaterials = materials;
}
auto &getDistribution() const { return dist; }
auto &getMask() const { return mask; }
auto &getMaskMaterials() const { return maskMaterials; }
auto isDeposition() const { return isDepo; }
void setDeposition(bool deposition) { isDepo = deposition; }
auto isSingleMaterial() const { return applySingleMaterial; }
void setSingleMaterial(bool singleMaterial) {
applySingleMaterial = singleMaterial;
}
};
} // namespace viennaps