forked from arpans16/openfoam-adapter-volCoup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCouplingDataUser.C
43 lines (34 loc) · 827 Bytes
/
CouplingDataUser.C
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
#include "CouplingDataUser.H"
preciceAdapter::CouplingDataUser::CouplingDataUser()
{
}
bool preciceAdapter::CouplingDataUser::hasScalarData()
{
return dataType_ == scalar;
}
bool preciceAdapter::CouplingDataUser::hasVectorData()
{
return dataType_ == vector;
}
void preciceAdapter::CouplingDataUser::setDataID(int dataID)
{
dataID_ = dataID;
return;
}
int preciceAdapter::CouplingDataUser::dataID()
{
return dataID_;
}
void preciceAdapter::CouplingDataUser::setPatchIDs(std::vector<int> patchIDs)
{
patchIDs_ = patchIDs;
}
void preciceAdapter::CouplingDataUser::setLocationsType(std::string locationsType)
{
locationsType_ = locationsType;
}
// Dummy implementation which can be overwritten in derived classes if required
void preciceAdapter::CouplingDataUser::initialize()
{
return;
}