Definition of the heat flux bc data structure.
More...
#include <src/multi_indices/BCData.hpp>
Definition of the heat flux bc data structure.
- Examples
- add_cubit_meshsets.cpp, cubit_bc_test.cpp, seepage.cpp, and thermo_elastic.cpp.
Definition at line 427 of file BCData.hpp.
◆ HeatFluxCubitBcData()
MoFEM::HeatFluxCubitBcData::HeatFluxCubitBcData |
( |
| ) |
|
|
inline |
◆ __attribute__()
struct MoFEM::HeatFluxCubitBcData::__attribute__ |
( |
(packed) |
| ) |
|
|
inline |
◆ fill_data()
MoFEMErrorCode MoFEM::HeatFluxCubitBcData::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 452 of file BCData.hpp.
455 if (bc_data.size() !=
sizeof(
data))
456 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
457 memcpy(&
data, &bc_data[0],
sizeof(
data));
◆ getDataPtr()
const void* MoFEM::HeatFluxCubitBcData::getDataPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSizeOfData()
std::size_t MoFEM::HeatFluxCubitBcData::getSizeOfData |
( |
| ) |
const |
|
inlinevirtual |
◆ set_data()
MoFEMErrorCode MoFEM::HeatFluxCubitBcData::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 461 of file BCData.hpp.
463 if (size !=
sizeof(
data)) {
466 memcpy(tag_ptr, &
data, size);
◆ operator<<
Print heat flux bc data.
Definition at line 178 of file BCData.cpp.
180 os <<
"H e a t F l u x \n \n";
181 if (e.data.flag1 == 1)
182 os <<
"Heat flux value: " << e.data.value1 <<
"\n";
184 os <<
"Heat flux is applied on thin shells"
186 if (e.data.flag2 == 1)
187 os <<
"Heat flux value (thin shell top): " << e.data.value2 <<
"\n";
189 os <<
"Heat flux value (thin shell top): N/A"
191 if (e.data.flag3 == 1)
192 os <<
"Heat flux value (thin shell bottom): " << e.data.value3 <<
"\n \n";
194 os <<
"Heat flux value (thin shell bottom): N/A"
◆ data
_data_ MoFEM::HeatFluxCubitBcData::data |
The documentation for this struct was generated from the following file: