Definition at line 38 of file TransferBase.H.
|
| TransferBase () |
|
virtual | ~TransferBase () |
|
virtual int | transferPointData (const std::vector< int > &arrayIDs, const std::vector< std::string > &newnames=std::vector< std::string >())=0 |
| Transfer point data with given ids from source to target. More...
|
|
virtual int | transferCellData (const std::vector< int > &arrayIDs, const std::vector< std::string > &newnames=std::vector< std::string >())=0 |
| Transfer cell data with given ids from source to target. More...
|
|
int | transferPointData (const std::vector< std::string > &arrayNames, const std::vector< std::string > &newnames=std::vector< std::string >()) |
| Transfer point data with given field names from source to target. More...
|
|
int | transferCellData (const std::vector< std::string > &arrayNames, const std::vector< std::string > &newnames=std::vector< std::string >()) |
| Transfer cell data with given field names from source to target. More...
|
|
virtual int | run (const std::vector< std::string > &newnames=std::vector< std::string >())=0 |
| Transfer all fields. More...
|
|
void | setCheckQual (bool x) |
|
void | setContBool (bool x) |
|
|
std::vector< int > | getArrayIDs (const std::vector< std::string > &arrayNames, vtkFieldData *fieldData) |
| given array names and field data, return vector of corresponding array ids in the field data More...
|
|
int | getDataArrayIndex (const std::string &arrayName, vtkFieldData *data) |
| given array name and field data, returns index of array with given name (-1 if not found) More...
|
|
Inherited by ConservativeSurfaceTransfer, ConservativeVolumeTransfer, and FETransfer.
◆ TransferBase()
TransferBase::TransferBase |
( |
| ) |
|
|
inline |
Definition at line 40 of file TransferBase.H.
46 std::cout <<
"TransferBase constructed" << std::endl;
◆ ~TransferBase()
virtual TransferBase::~TransferBase |
( |
| ) |
|
|
inlinevirtual |
Definition at line 49 of file TransferBase.H.
50 std::cout <<
"TransferBase destroyed" << std::endl;
◆ getArrayIDs()
std::vector< int > TransferBase::getArrayIDs |
( |
const std::vector< std::string > & |
arrayNames, |
|
|
vtkFieldData * |
fieldData |
|
) |
| |
|
private |
Definition at line 56 of file TransferBase.C.
References getDataArrayIndex().
Referenced by transferCellData(), and transferPointData().
58 std::vector<int> arrayIDs;
59 for(
auto arrayName : arrayNames)
64 std::cerr <<
"Array " << arrayName <<
" not found." << std::endl;
67 arrayIDs.push_back(arrayIndex);
int getDataArrayIndex(const std::string &arrayName, vtkFieldData *data)
given array name and field data, returns index of array with given name (-1 if not found) ...
◆ getDataArrayIndex()
int TransferBase::getDataArrayIndex |
( |
const std::string & |
arrayName, |
|
|
vtkFieldData * |
data |
|
) |
| |
|
private |
- Parameters
-
arrayName | name of array |
data | mesh field data that includes the sought after arrays |
- Returns
- array id
Definition at line 72 of file TransferBase.C.
Referenced by getArrayIDs().
74 for(
int arrayIndex = 0; arrayIndex <
data->GetNumberOfArrays(); ++arrayIndex)
76 if(arrayName ==
data->GetArrayName(arrayIndex))
return arrayIndex;
data_type data
Edge/face with sorted point ids (a, b, c, ...) is located at some index i in data[b], with data[b][i].first == [a, c] (for edges, third point id treated as -1).
◆ run()
virtual int TransferBase::run |
( |
const std::vector< std::string > & |
newnames = std::vector< std::string >() | ) |
|
|
pure virtual |
◆ setCheckQual()
void TransferBase::setCheckQual |
( |
bool |
x | ) |
|
|
inline |
◆ setContBool()
void TransferBase::setContBool |
( |
bool |
x | ) |
|
|
inline |
◆ transferCellData() [1/2]
virtual int TransferBase::transferCellData |
( |
const std::vector< int > & |
arrayIDs, |
|
|
const std::vector< std::string > & |
newnames = std::vector< std::string >() |
|
) |
| |
|
pure virtual |
◆ transferCellData() [2/2]
int TransferBase::transferCellData |
( |
const std::vector< std::string > & |
arrayNames, |
|
|
const std::vector< std::string > & |
newnames = std::vector<std::string>() |
|
) |
| |
- Parameters
-
arrayIDs | array of array names to specify which fields to transfer |
newnames | optional array of names to be applied to transferred fields |
- Returns
- 0 upon completion
Definition at line 47 of file TransferBase.C.
References getArrayIDs(), meshBase::getDataSet(), source, and transferCellData().
51 std::vector<int> arrayIDs =
getArrayIDs(arrayNames, cellData);
virtual int transferCellData(const std::vector< int > &arrayIDs, const std::vector< std::string > &newnames=std::vector< std::string >())=0
Transfer cell data with given ids from source to target.
vtkSmartPointer< vtkDataSet > getDataSet() const
get this meshes' dataSet
std::vector< int > getArrayIDs(const std::vector< std::string > &arrayNames, vtkFieldData *fieldData)
given array names and field data, return vector of corresponding array ids in the field data ...
◆ transferPointData() [1/2]
virtual int TransferBase::transferPointData |
( |
const std::vector< int > & |
arrayIDs, |
|
|
const std::vector< std::string > & |
newnames = std::vector< std::string >() |
|
) |
| |
|
pure virtual |
◆ transferPointData() [2/2]
int TransferBase::transferPointData |
( |
const std::vector< std::string > & |
arrayNames, |
|
|
const std::vector< std::string > & |
newnames = std::vector<std::string>() |
|
) |
| |
- Parameters
-
arrayIDs | array of array names to specify which fields to transfer |
newnames | optional array of names to be applied to transferred fields |
- Returns
- 0 upon completion
Definition at line 36 of file TransferBase.C.
References getArrayIDs(), meshBase::getDataSet(), source, and transferPointData().
40 std::vector<int> arrayIDs =
getArrayIDs(arrayNames, pointData);
vtkSmartPointer< vtkDataSet > getDataSet() const
get this meshes' dataSet
virtual int transferPointData(const std::vector< int > &arrayIDs, const std::vector< std::string > &newnames=std::vector< std::string >())=0
Transfer point data with given ids from source to target.
std::vector< int > getArrayIDs(const std::vector< std::string > &arrayNames, vtkFieldData *fieldData)
given array names and field data, return vector of corresponding array ids in the field data ...
◆ c2cTrnsDistTol
double TransferBase::c2cTrnsDistTol |
|
protected |
◆ checkQual
bool TransferBase::checkQual |
|
protected |
◆ continuous
bool TransferBase::continuous |
|
protected |
◆ source
Definition at line 105 of file TransferBase.H.
Referenced by ConservativeVolumeTransfer::ConservativeVolumeTransfer(), ConservativeVolumeTransfer::constructSupermesh(), FETransfer::FETransfer(), FETransfer::getClosestSourceCell(), FETransfer::run(), transferCellData(), FETransfer::transferCellData(), ConservativeSurfaceTransfer::transferPointData(), FETransfer::transferPointData(), transferPointData(), and ConservativeSurfaceTransfer::writeOverlay().
◆ srcCellLocator
vtkSmartPointer<vtkStaticCellLocator> TransferBase::srcCellLocator = nullptr |
|
protected |
◆ srcPointLocator
vtkSmartPointer<vtkStaticPointLocator> TransferBase::srcPointLocator = nullptr |
|
protected |
◆ target
◆ trgCellLocator
vtkSmartPointer<vtkStaticCellLocator> TransferBase::trgCellLocator = nullptr |
|
protected |
◆ trgPointLocator
vtkSmartPointer<vtkStaticPointLocator> TransferBase::trgPointLocator = nullptr |
|
protected |
The documentation for this class was generated from the following files: