#include <id_translator.h>
◆ getKratosId()
int IdTranslator::getKratosId |
( |
int |
surfaceId | ) |
|
◆ getSurfaceId()
int IdTranslator::getSurfaceId |
( |
int |
kratosId | ) |
|
Translates Kratos node id to surface id
- Parameters
-
kratosId | Kratos node id. Must be on the surface. |
- Returns
- surface id of this node
- See also
- safeGetSurfaceId
◆ hasKratosId()
bool IdTranslator::hasKratosId |
( |
int |
surfaceId | ) |
|
Checks whether it is possible to translate given surface id.
- Parameters
-
surfaceId | surface id to check |
- Returns
- true if corresponding node exists
◆ hasSurfaceId()
bool IdTranslator::hasSurfaceId |
( |
int |
kratosId | ) |
|
Checks whether it is possible to translate given Kratos id. It is true if and only if corresponding node is on the surface.
- Parameters
-
- Returns
- true if corresponding surface Id exists
◆ init()
void IdTranslator::init |
( |
std::vector< int > & |
nodes | ) |
|
Initializes translator.
- Parameters
-
nodes | Sorted vector of Kratos ids of surface nodes |
◆ safeGetKratosId()
int IdTranslator::safeGetKratosId |
( |
int |
surfaceId | ) |
|
Performs safety check and translates given surface id to Kratos node id. Returns -1 if translation is not possible.
- Parameters
-
surfaceId | surface id to translate |
- Returns
- Kratos node id or -1
◆ safeGetSurfaceId()
int IdTranslator::safeGetSurfaceId |
( |
int |
kratosId | ) |
|
Performs safety check and translates given Kratos id to surface id. Returns -1 if translation is not possible.
- Parameters
-
kratosId | Kratos id to translate |
- Returns
- surface node id or -1
The documentation for this class was generated from the following files:
- /home/runner/work/Documentation/Documentation/master/applications/CSharpWrapperApplication/custom_includes/id_translator.h
- /home/runner/work/Documentation/Documentation/master/applications/CSharpWrapperApplication/custom_sources/id_translator.cpp