The WmUnstructuredPatchLink class is used to define the elements to pull from another patch.
More...
#include <wmunstructuredpatch.h>
The WmUnstructuredPatchLink class is used to define the elements to pull from another patch.
This link can either specify a link between two existing patches From patch: linked patch To patch: host patch
or a link between an existing patch (to) and a virtual patch (from - i.e. boundary condition)
◆ WmUnstructuredPatchLink()
WmUnstructuredPatchLink::WmUnstructuredPatchLink |
( |
const WmUnstructuredPatch & |
to_patch, |
|
|
int |
from_patch_index, |
|
|
const std::string & |
from_patch_name, |
|
|
const std::vector< int > & |
num_linked_elements_per_layer |
|
) |
| |
Constructor.
- Parameters
-
to_patch | Host patch where the data will be transfered to |
from_patch_index | Patch from which to take data |
from_patch_name | Name of patch to take data from |
num_linked_elements_per_layer | Number of elements in each element layer of the link |
◆ ~WmUnstructuredPatchLink()
WmUnstructuredPatchLink::~WmUnstructuredPatchLink |
( |
| ) |
|
◆ from_indexes()
const std::vector< int > & WmUnstructuredPatchLink::from_indexes |
( |
| ) |
const |
|
inline |
Get the transfer element indexes to pull from in the From Patch.
- Returns
- List of transfer element indexes
◆ from_patch()
Get the patch to transfer data from.
- Returns
- From Patch
◆ getHostPatch()
◆ getIndexes()
const int * WmUnstructuredPatchLink::getIndexes |
( |
| ) |
const |
|
inline |
◆ getLinkedIndexes()
const int * WmUnstructuredPatchLink::getLinkedIndexes |
( |
| ) |
const |
|
inline |
◆ getLinkedPatch()
◆ getLinkedSubdomainName()
const std::string & WmUnstructuredPatchLink::getLinkedSubdomainName |
( |
| ) |
const |
◆ getNumElements()
int WmUnstructuredPatchLink::getNumElements |
( |
| ) |
const |
|
inline |
◆ getNumElementsPerLayer()
const std::vector< int > & WmUnstructuredPatchLink::getNumElementsPerLayer |
( |
| ) |
const |
|
inline |
◆ inverse()
If patch A is connected to B by this link, the B is connected to A by the inverse link.
- Returns
- Link from To Patch to From Patch
◆ isShared()
bool WmUnstructuredPatchLink::isShared |
( |
| ) |
const |
|
inline |
Is the boundary shared between two existing patches.
- Returns
- True if both patches exist (i.e. not a boundary condition)
◆ numBoundaryFaces()
int WmUnstructuredPatchLink::numBoundaryFaces |
( |
| ) |
const |
|
inline |
◆ setLinkedIndexes()
void WmUnstructuredPatchLink::setLinkedIndexes |
( |
const int * |
fromIndexes, |
|
|
const int * |
toIndexes |
|
) |
| |
Set the to and from indexes for the link.
- Parameters
-
fromIndexes | Element indexes to pull from (in from patch) |
toIndexes | Element indexes to push to (in to patch) |
◆ to_indexes()
const std::vector< int > & WmUnstructuredPatchLink::to_indexes |
( |
| ) |
const |
|
inline |
Get the transfer element indexes to push to in the To Patch.
- Returns
- List of transfer element indexes
◆ to_patch()
Get the patch to transfer data to.
- Returns
- To Patch
◆ _from_indexes
std::vector<int> WmUnstructuredPatchLink::_from_indexes |
|
protected |
Indexes in the from patch to pull from.
◆ _from_patch
◆ _from_patch_index
int WmUnstructuredPatchLink::_from_patch_index |
|
protected |
The linked (from) patch index.
◆ _from_patch_name
std::string WmUnstructuredPatchLink::_from_patch_name |
|
protected |
The linked (from) name - used if this is a boundary condition.
◆ _numElements
int WmUnstructuredPatchLink::_numElements |
|
protected |
Number of elements in the link.
◆ _numElementsPerLayer
std::vector<int> WmUnstructuredPatchLink::_numElementsPerLayer |
|
protected |
Number of elements in each element layer.
◆ _sharedBoundary
bool WmUnstructuredPatchLink::_sharedBoundary |
|
protected |
Is a shared boundary between two existing patches.
◆ _to_indexes
std::vector<int> WmUnstructuredPatchLink::_to_indexes |
|
protected |
Indexes in the to patch (host) to push to.
◆ _to_patch
The host (to) patch for the link (must exist)
The documentation for this class was generated from the following file: