Definition of the acceleration bc data structure.
More...
#include <src/multi_indices/BCData.hpp>
Definition of the acceleration bc data structure.
- Examples
- cubit_bc_test.cpp.
Definition at line 247 of file BCData.hpp.
◆ AccelerationCubitBcData()
MoFEM::AccelerationCubitBcData::AccelerationCubitBcData |
( |
| ) |
|
|
inline |
◆ __attribute__()
struct MoFEM::AccelerationCubitBcData::__attribute__ |
( |
(packed) |
| ) |
|
|
inline |
◆ fill_data()
MoFEMErrorCode MoFEM::AccelerationCubitBcData::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 278 of file BCData.hpp.
281 if (bc_data.size() !=
sizeof(
data))
282 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
283 memcpy(&
data, &bc_data[0],
sizeof(
data));
◆ getDataPtr()
const void* MoFEM::AccelerationCubitBcData::getDataPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSizeOfData()
std::size_t MoFEM::AccelerationCubitBcData::getSizeOfData |
( |
| ) |
const |
|
inlinevirtual |
◆ set_data()
MoFEMErrorCode MoFEM::AccelerationCubitBcData::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 287 of file BCData.hpp.
289 if (size !=
sizeof(
data)) {
292 memcpy(tag_ptr, &
data, size);
◆ operator<<
Print acceleration bc data.
Definition at line 103 of file BCData.cpp.
105 os <<
"A c c e l e r a t i o n \n \n";
106 if (e.data.flag1 == 1)
107 os <<
"Acceleration magnitude (X-Translation): " << e.data.value1 <<
"\n";
109 os <<
"Acceleration magnitude (X-Translation): N/A"
111 if (e.data.flag2 == 1)
112 os <<
"Acceleration magnitude (Y-Translation): " << e.data.value2 <<
"\n";
114 os <<
"Acceleration magnitude (Y-Translation): N/A"
116 if (e.data.flag3 == 1)
117 os <<
"Acceleration magnitude (Z-Translation): " << e.data.value3 <<
"\n";
119 os <<
"Acceleration magnitude (Z-Translation): N/A"
121 if (e.data.flag4 == 1)
122 os <<
"Acceleration magnitude (X-Rotation): " << e.data.value4 <<
"\n";
124 os <<
"Acceleration magnitude (X-Rotation): N/A"
126 if (e.data.flag5 == 1)
127 os <<
"Acceleration magnitude (Y-Rotation): " << e.data.value5 <<
"\n";
129 os <<
"Acceleration magnitude (Y-Rotation): N/A"
131 if (e.data.flag6 == 1)
132 os <<
"Acceleration magnitude (Z-Rotation): " << e.data.value6 <<
"\n \n";
134 os <<
"Acceleration magnitude (Z-Rotation): N/A"
◆ data
_data_ MoFEM::AccelerationCubitBcData::data |
The documentation for this struct was generated from the following file: