Definition of the temperature bc data structure.
More...
#include <src/multi_indices/BCData.hpp>
Definition of the temperature bc data structure.
- Examples
- add_cubit_meshsets.cpp, and cubit_bc_test.cpp.
Definition at line 306 of file BCData.hpp.
◆ TemperatureCubitBcData()
MoFEM::TemperatureCubitBcData::TemperatureCubitBcData |
( |
| ) |
|
|
inline |
◆ __attribute__()
struct MoFEM::TemperatureCubitBcData::__attribute__ |
( |
(packed) |
| ) |
|
|
inline |
◆ fill_data()
MoFEMErrorCode MoFEM::TemperatureCubitBcData::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 336 of file BCData.hpp.
339 if (bc_data.size() >
sizeof(
data))
341 "Wrong number of parameters in Cubit %d != %d", bc_data.size(),
345 if (bc_data.size() == 58) {
346 std::vector<char> new_bc_data(66, 0);
348 for (; ii != 16; ++ii)
349 new_bc_data[ii] = bc_data[ii];
350 for (; ii != bc_data.size(); ++ii)
351 new_bc_data[ii + 1] = bc_data[ii];
352 memcpy(&
data, &new_bc_data[0], new_bc_data.size());
354 memcpy(&
data, &bc_data[0], bc_data.size());
◆ getDataPtr()
const void* MoFEM::TemperatureCubitBcData::getDataPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSizeOfData()
std::size_t MoFEM::TemperatureCubitBcData::getSizeOfData |
( |
| ) |
const |
|
inlinevirtual |
◆ set_data()
MoFEMErrorCode MoFEM::TemperatureCubitBcData::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 360 of file BCData.hpp.
362 if (size !=
sizeof(
data)) {
365 memcpy(tag_ptr, &
data, size);
◆ operator<<
Print temperature bc data.
Definition at line 139 of file BCData.cpp.
141 os <<
"T e m p e r a t u r e \n \n";
142 if (e.data.flag1 == 1)
143 os <<
"Temperature: " << e.data.value1 <<
"\n";
145 os <<
"Temperature (default case): N/A"
147 if (e.data.flag2 == 1)
148 os <<
"Temperature (thin shell middle): " << e.data.value2 <<
"\n";
150 os <<
"Temperature (thin shell middle): N/A"
152 if (e.data.flag3 == 1)
153 os <<
"Temperature (thin shell gradient): " << e.data.value3 <<
"\n";
155 os <<
"Temperature (thin shell gradient): N/A"
157 if (e.data.flag4 == 1)
158 os <<
"Temperature (thin shell top): " << e.data.value4 <<
"\n";
160 os <<
"Temperature (thin shell top): N/A"
162 if (e.data.flag5 == 1)
163 os <<
"Temperature (thin shell bottom): " << e.data.value5 <<
"\n \n";
165 os <<
"Temperature (thin shell bottom): N/A"
◆ data
_data_ MoFEM::TemperatureCubitBcData::data |
The documentation for this struct was generated from the following file: