26 "It makes no sense for the generic bc type");
39 "It makes no sense for the generic bc type");
109 if (bc_data.size() !=
sizeof(
data))
111 "data inconsistency %ld != %ld", bc_data.size(),
sizeof(
data));
112 memcpy(&
data, &bc_data[0],
sizeof(
data));
118 if (size !=
sizeof(
data)) {
121 memcpy(tag_ptr, &
data, size);
161 if (bc_data.size() !=
sizeof(
data))
162 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
163 memcpy(&
data, &bc_data[0],
sizeof(
data));
169 if (size !=
sizeof(
data)) {
172 memcpy(tag_ptr, &
data, size);
218 if (bc_data.size() !=
sizeof(
data))
219 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
220 memcpy(&
data, &bc_data[0],
sizeof(
data));
226 if (size !=
sizeof(
data)) {
229 memcpy(tag_ptr, &
data, size);
277 if (bc_data.size() !=
sizeof(
data))
278 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
279 memcpy(&
data, &bc_data[0],
sizeof(
data));
285 if (size !=
sizeof(
data)) {
288 memcpy(tag_ptr, &
data, size);
335 if (bc_data.size() >
sizeof(
data))
337 "Wrong number of parameters in Cubit %ld != %ld", bc_data.size(),
341 if (bc_data.size() == 58) {
342 std::vector<char> new_bc_data(66, 0);
344 for (; ii != 16; ++ii)
345 new_bc_data[ii] = bc_data[ii];
346 for (; ii != bc_data.size(); ++ii)
347 new_bc_data[ii + 1] = bc_data[ii];
348 memcpy(&
data, &new_bc_data[0], new_bc_data.size());
350 memcpy(&
data, &bc_data[0], bc_data.size());
358 if (size !=
sizeof(
data)) {
361 memcpy(tag_ptr, &
data, size);
397 if (bc_data.size() !=
sizeof(
data)) {
400 memcpy(&
data, &bc_data[0],
sizeof(
data));
406 if (size !=
sizeof(
data)) {
409 memcpy(tag_ptr, &
data, size);
451 if (bc_data.size() !=
sizeof(
data))
452 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
453 memcpy(&
data, &bc_data[0],
sizeof(
data));
459 if (size !=
sizeof(
data)) {
462 memcpy(tag_ptr, &
data, size);
495 if (bc_data.size() !=
sizeof(
data))
496 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
497 memcpy(&
data, &bc_data[0],
sizeof(
data));
503 if (size !=
sizeof(
data)) {
506 memcpy(tag_ptr, &
data, size);
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
@ MOFEM_ATOM_TEST_INVALID
@ MOFEM_DATA_INCONSISTENCY
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< 32 > CubitBCType
implementation of Data Operators for Forces and Sources
Definition of the acceleration bc data structure.
friend std::ostream & operator<<(std::ostream &os, const AccelerationCubitBcData &e)
Print acceleration bc data.
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
AccelerationCubitBcData()
struct __attribute__((packed)) _data_
const void * getDataPtr() const
get pointer to data structure
std::size_t getSizeOfData() const
get data structure size
Definition of the cfd_bc data structure.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
friend std::ostream & operator<<(std::ostream &os, const CfgCubitBcData &e)
Print cfd_bc data.
const void * getDataPtr() const
get pointer to data structure
std::size_t getSizeOfData() const
get data structure size
struct __attribute__((packed)) _data_
Definition of the displacement bc data structure.
friend std::ostream & operator<<(std::ostream &os, const DisplacementCubitBcData &e)
Print displacement bc data.
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
attributes of DisplacementCubitBcData
DisplacementCubitBcData()
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
std::size_t getSizeOfData() const
get data structure size
Definition of the force bc data structure.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
std::size_t getSizeOfData() const
get data structure size
struct __attribute__((packed)) _data_
friend std::ostream & operator<<(std::ostream &os, const ForceCubitBcData &e)
Print force bc data.
const void * getDataPtr() const
get pointer to data structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
Generic bc data structure.
virtual const void * getDataPtr() const =0
get pointer to data structure
const CubitBCType tYpe
Type of boundary condition.
virtual ~GenericCubitBcData()
virtual MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
virtual const CubitBCType & getType() const
get data type
virtual std::size_t getSizeOfData() const =0
get data structure size
virtual MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
GenericCubitBcData(const CubitBCType type)
Definition of the heat flux bc data structure.
friend std::ostream & operator<<(std::ostream &os, const HeatFluxCubitBcData &e)
Print heat flux bc data.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
const void * getDataPtr() const
get pointer to data structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
struct __attribute__((packed)) _data_
std::size_t getSizeOfData() const
get data structure size
Definition of the pressure bc data structure.
friend std::ostream & operator<<(std::ostream &os, const PressureCubitBcData &e)
Print pressure bc data.
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
std::size_t getSizeOfData() const
get data structure size
Definition of the temperature bc data structure.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
std::size_t getSizeOfData() const
get data structure size
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
friend std::ostream & operator<<(std::ostream &os, const TemperatureCubitBcData &e)
Print temperature bc data.
Definition of the velocity bc data structure.
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
std::size_t getSizeOfData() const
get data structure size
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
friend std::ostream & operator<<(std::ostream &os, const VelocityCubitBcData &e)
Print velocity bc data.