Definition of the velocity bc data structure.
More...
#include <src/multi_indices/BCData.hpp>
Definition of the velocity bc data structure.
- Examples
- cubit_bc_test.cpp.
Definition at line 189 of file BCData.hpp.
◆ VelocityCubitBcData()
MoFEM::VelocityCubitBcData::VelocityCubitBcData |
( |
| ) |
|
|
inline |
◆ __attribute__()
struct MoFEM::VelocityCubitBcData::__attribute__ |
( |
(packed) |
| ) |
|
|
inline |
◆ fill_data()
MoFEMErrorCode MoFEM::VelocityCubitBcData::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 219 of file BCData.hpp.
222 if (bc_data.size() !=
sizeof(
data))
223 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
224 memcpy(&
data, &bc_data[0],
sizeof(
data));
◆ getDataPtr()
const void* MoFEM::VelocityCubitBcData::getDataPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSizeOfData()
std::size_t MoFEM::VelocityCubitBcData::getSizeOfData |
( |
| ) |
const |
|
inlinevirtual |
◆ set_data()
MoFEMErrorCode MoFEM::VelocityCubitBcData::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 228 of file BCData.hpp.
230 if (size !=
sizeof(
data)) {
233 memcpy(tag_ptr, &
data, size);
◆ operator<<
Print velocity bc data.
Definition at line 67 of file BCData.cpp.
69 os <<
"V e l o c i t y \n \n";
70 if (e.data.flag1 == 1)
71 os <<
"Velocity magnitude (X-Translation): " << e.data.value1 <<
"\n";
73 os <<
"Velocity magnitude (X-Translation): N/A"
75 if (e.data.flag2 == 1)
76 os <<
"Velocity magnitude (Y-Translation): " << e.data.value2 <<
"\n";
78 os <<
"Velocity magnitude (Y-Translation): N/A"
80 if (e.data.flag3 == 1)
81 os <<
"Velocity magnitude (Z-Translation): " << e.data.value3 <<
"\n";
83 os <<
"Velocity magnitude (Z-Translation): N/A"
85 if (e.data.flag4 == 1)
86 os <<
"Velocity magnitude (X-Rotation): " << e.data.value4 <<
"\n";
88 os <<
"Velocity magnitude (X-Rotation): N/A"
90 if (e.data.flag5 == 1)
91 os <<
"Velocity magnitude (Y-Rotation): " << e.data.value5 <<
"\n";
93 os <<
"Velocity magnitude (Y-Rotation): N/A"
95 if (e.data.flag6 == 1)
96 os <<
"Velocity magnitude (Z-Rotation): " << e.data.value6 <<
"\n \n";
98 os <<
"Velocity magnitude (Z-Rotation): N/A"
◆ data
_data_ MoFEM::VelocityCubitBcData::data |
The documentation for this struct was generated from the following file: