Definition of the displacement bc data structure.
More...
#include <src/multi_indices/BCData.hpp>
◆ DisplacementCubitBcData()
MoFEM::DisplacementCubitBcData::DisplacementCubitBcData |
( |
| ) |
|
|
inline |
◆ __attribute__()
struct MoFEM::DisplacementCubitBcData::__attribute__ |
( |
(packed) |
| ) |
|
|
inline |
◆ fill_data()
MoFEMErrorCode MoFEM::DisplacementCubitBcData::fill_data |
( |
const std::vector< char > & |
bc_data | ) |
|
|
inlinevirtual |
get data from structure
- Parameters
-
attributes | vector of doubles |
- Returns
- error code
Reimplemented from MoFEM::GenericCubitBcData.
Definition at line 110 of file BCData.hpp.
113 if (bc_data.size() !=
sizeof(
data))
115 "data inconsistency %ld != %ld", bc_data.size(),
sizeof(
data));
116 memcpy(&
data, &bc_data[0],
sizeof(
data));
◆ getDataPtr()
const void* MoFEM::DisplacementCubitBcData::getDataPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSizeOfData()
std::size_t MoFEM::DisplacementCubitBcData::getSizeOfData |
( |
| ) |
const |
|
inlinevirtual |
◆ set_data()
MoFEMErrorCode MoFEM::DisplacementCubitBcData::set_data |
( |
void * |
tag_ptr, |
|
|
unsigned int |
size |
|
) |
| const |
|
inlinevirtual |
set data on structure
- Parameters
-
tag_ptr | pointer to tag on meshset |
size | size of data in bytes |
- Returns
- error code
Reimplemented from MoFEM::GenericCubitBcData.
Definition at line 120 of file BCData.hpp.
122 if (size !=
sizeof(
data)) {
125 memcpy(tag_ptr, &
data, size);
◆ operator<<
Print displacement bc data.
Definition at line 10 of file BCData.cpp.
12 os <<
"D i s p l a c e m e n t \n \n";
13 os <<
"Flag for X-Translation (0/1): " << (
int)e.data.flag1 <<
"\n";
14 os <<
"Flag for Y-Translation (0/1): " << (
int)e.data.flag2 <<
"\n";
15 os <<
"Flag for Z-Translation (0/1): " << (
int)e.data.flag3 <<
"\n";
16 os <<
"Flag for X-Rotation (0/1): " << (
int)e.data.flag4 <<
"\n";
17 os <<
"Flag for Y-Rotation (0/1): " << (
int)e.data.flag5 <<
"\n";
18 os <<
"Flag for Z-Rotation (0/1): " << (
int)e.data.flag6 <<
"\n \n";
20 if (e.data.flag1 == 1)
21 os <<
"Displacement magnitude (X-Translation): " << e.data.value1 <<
"\n";
23 os <<
"Displacement magnitude (X-Translation): N/A"
25 if (e.data.flag2 == 1)
26 os <<
"Displacement magnitude (Y-Translation): " << e.data.value2 <<
"\n";
28 os <<
"Displacement magnitude (Y-Translation): N/A"
30 if (e.data.flag3 == 1)
31 os <<
"Displacement magnitude (Z-Translation): " << e.data.value3 <<
"\n";
33 os <<
"Displacement magnitude (Z-Translation): N/A"
35 if (e.data.flag4 == 1)
36 os <<
"Displacement magnitude (X-Rotation): " << e.data.value4 <<
"\n";
38 os <<
"Displacement magnitude (X-Rotation): N/A"
40 if (e.data.flag5 == 1)
41 os <<
"Displacement magnitude (Y-Rotation): " << e.data.value5 <<
"\n";
43 os <<
"Displacement magnitude (Y-Rotation): N/A"
45 if (e.data.flag6 == 1)
46 os <<
"Displacement magnitude (Z-Rotation): " << e.data.value6 <<
"\n \n";
48 os <<
"Displacement magnitude (Z-Rotation): N/A"
◆ data
_data_ MoFEM::DisplacementCubitBcData::data |
The documentation for this struct was generated from the following file: