Operator used to check consistency between local coordinates and global cooridnates for integrated points and evaluated points.
More...
|
| MyOp (std::array< double, 12 > &eval_points) |
|
MoFEMErrorCode | doWork (int side, EntityType type, EntitiesFieldData::EntData &data) |
|
| MyOp (const char type, const char face_type) |
|
MoFEMErrorCode | doWork (int side, EntityType type, EntitiesFieldData::EntData &data) |
|
MoFEMErrorCode | doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data) |
|
template<typename OP>
struct MyOp< OP >
Operator used to check consistency between local coordinates and global cooridnates for integrated points and evaluated points.
- Examples
- field_evaluator.cpp, forces_and_sources_testing_edge_element.cpp, and forces_and_sources_testing_flat_prism_element.cpp.
Definition at line 21 of file field_evaluator.cpp.
◆ MyOp() [1/2]
◆ MyOp() [2/2]
template<typename OP >
MyOp< OP >::MyOp |
( |
const char |
type, |
|
|
const char |
face_type |
|
) |
| |
|
inline |
◆ doWork() [1/3]
◆ doWork() [2/3]
Definition at line 24 of file forces_and_sources_testing_contact_prism_element.cpp.
31 MOFEM_LOG(
"ATOM_TEST", Sev::inform) <<
"NH1";
33 <<
"side: " << side <<
" type: " <<
type;
34 MOFEM_LOG(
"ATOM_TEST", Sev::inform) << data;
38 <<
"coords Master " << std::fixed << std::setprecision(2)
41 <<
"area Master " << std::fixed << std::setprecision(2)
44 <<
"normal Master " << std::fixed << std::setprecision(2)
47 <<
"coords at Gauss Pts Master " << std::fixed
48 << std::setprecision(2) << getCoordsAtGaussPtsMaster();
51 <<
"coords Slave " << std::fixed << std::setprecision(2)
54 <<
"area Slave " << std::fixed << std::setprecision(2)
57 <<
"normal Slave " << std::fixed << std::setprecision(2)
60 <<
"coords at Gauss Pts Slave " << std::fixed
61 << std::setprecision(2) << getCoordsAtGaussPtsSlave();
◆ doWork() [3/3]
Definition at line 30 of file field_evaluator.cpp.
33 if (
type == MBVERTEX) {
35 MOFEM_LOG(
"SELF", Sev::inform) <<
"FE " << OP::getFEEntityHandle();
37 MOFEM_LOG(
"SELF", Sev::inform) <<
"Integration pts" << std::endl;
38 MOFEM_LOG(
"SELF", Sev::inform) << OP::getGaussPts() << endl;
40 MOFEM_LOG(
"SELF", Sev::inform) <<
"Global coordinates " << endl;
41 MOFEM_LOG(
"SELF", Sev::inform) << OP::getCoordsAtGaussPts() << std::endl;
43 for (
int gg = 0; gg != OP::getCoordsAtGaussPts().size1(); ++gg) {
44 int pt_number = OP::getGaussPts()(OP::getGaussPts().size1() - 1, gg);
46 MOFEM_LOG(
"SELF", Sev::inform) <<
"gg " << gg << std::endl;
47 MOFEM_LOG(
"SELF", Sev::inform) <<
"pt " << pt_number << std::endl;
49 ublas::matrix_row<MatrixDouble> coord_at_gauss_pt(
50 OP::getCoordsAtGaussPts(), gg);
51 ublas::matrix_row<MatrixShallowArrayAdaptor<double>> eval_coord(
54 MOFEM_LOG(
"SELF", Sev::inform) <<
"coord_at_gauss_pt ";
55 MOFEM_LOG(
"SELF", Sev::inform) << coord_at_gauss_pt << std::endl;
57 MOFEM_LOG(
"SELF", Sev::inform) <<
"eval_coord ";
58 MOFEM_LOG(
"SELF", Sev::inform) << eval_coord << std::endl;
60 double error = norm_2(coord_at_gauss_pt - eval_coord);
64 "Difference at %d error = %3.4e", pt_number, error);
◆ evalPoints
◆ faceType
template<typename OP >
const char MyOp< OP >::faceType |
The documentation for this struct was generated from the following files: