-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpsSurfaceModel.hpp
52 lines (37 loc) · 1.49 KB
/
psSurfaceModel.hpp
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
#pragma once
#include "psProcessParams.hpp"
#include <lsPointData.hpp>
#include <vcSmartPointer.hpp>
#include <vector>
namespace viennaps {
using namespace viennacore;
template <typename NumericType> class SurfaceModel {
protected:
SmartPointer<viennals::PointData<NumericType>> coverages = nullptr;
SmartPointer<viennals::PointData<NumericType>> surfaceData = nullptr;
SmartPointer<ProcessParams<NumericType>> processParams = nullptr;
public:
virtual ~SurfaceModel() = default;
virtual void initializeCoverages(unsigned numGeometryPoints) {
// if no coverages get initialized here, they wont be used at all
}
virtual void initializeProcessParameters() {
// if no process parameters get initialized here, they wont be used at all
}
virtual void initializeSurfaceData(unsigned numGeometryPoints) {
// if no surface data get initialized here, they wont be used at all
}
virtual SmartPointer<std::vector<NumericType>>
calculateVelocities(SmartPointer<viennals::PointData<NumericType>> rates,
const std::vector<Vec3D<NumericType>> &coordinates,
const std::vector<NumericType> &materialIds) {
return nullptr;
}
virtual void
updateCoverages(SmartPointer<viennals::PointData<NumericType>> rates,
const std::vector<NumericType> &materialIds) {}
// non-virtual functions
auto getCoverages() const { return coverages; }
auto getProcessParameters() const { return processParams; }
};
} // namespace viennaps