Definition of the force bc data structure.
More...
#include <src/multi_indices/BCData.hpp>
Definition of the force bc data structure.
- Examples
- add_cubit_meshsets.cpp, cubit_bc_test.cpp, and EshelbianPlasticity.cpp.
Definition at line 139 of file BCData.hpp.
◆ ForceCubitBcData()
MoFEM::ForceCubitBcData::ForceCubitBcData |
( |
| ) |
|
|
inline |
◆ __attribute__()
struct MoFEM::ForceCubitBcData::__attribute__ |
( |
(packed) |
| ) |
|
|
inline |
◆ fill_data()
MoFEMErrorCode MoFEM::ForceCubitBcData::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 162 of file BCData.hpp.
165 if (bc_data.size() !=
sizeof(
data))
166 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
167 memcpy(&
data, &bc_data[0],
sizeof(
data));
◆ getDataPtr()
const void* MoFEM::ForceCubitBcData::getDataPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSizeOfData()
std::size_t MoFEM::ForceCubitBcData::getSizeOfData |
( |
| ) |
const |
|
inlinevirtual |
◆ set_data()
MoFEMErrorCode MoFEM::ForceCubitBcData::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 171 of file BCData.hpp.
173 if (size !=
sizeof(
data)) {
176 memcpy(tag_ptr, &
data, size);
◆ operator<<
Print force bc data.
Definition at line 53 of file BCData.cpp.
55 os <<
"F o r c e \n \n";
56 os <<
"Force magnitude: " << e.data.value1 <<
"\n";
57 os <<
"Moment magnitude: " << e.data.value2 <<
"\n";
58 os <<
"Force direction vector (X-component): " << e.data.value3 <<
"\n";
59 os <<
"Force direction vector (Y-component): " << e.data.value4 <<
"\n";
60 os <<
"Force direction vector (Z-component): " << e.data.value5 <<
"\n";
61 os <<
"Moment direction vector (X-component): " << e.data.value6 <<
"\n";
62 os <<
"Moment direction vector (Y-component): " << e.data.value7 <<
"\n";
63 os <<
"Moment direction vector (Z-component): " << e.data.value8 <<
"\n \n";
◆ data
_data_ MoFEM::ForceCubitBcData::data |
The documentation for this struct was generated from the following file: