Calculate trace of vector (Hdiv/Hcurl) space.
More...
#include <src/finite_elements/UserDataOperators.hpp>
|
| OpCalculateHVecTensorTrace (const std::string field_name, boost::shared_ptr< MatrixDouble > data_ptr, const EntityType zero_type=MBEDGE, const int zero_side=0) |
|
MoFEMErrorCode | doWork (int side, EntityType type, EntitiesFieldData::EntData &data) |
|
| OpBaseImpl (const std::string row_field_name, const std::string col_field_name, const OpType type, boost::shared_ptr< Range > ents_ptr=nullptr) |
|
MoFEMErrorCode | doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data) |
| Do calculations for the left hand side. More...
|
|
MoFEMErrorCode | doWork (int row_side, EntityType row_type, EntData &row_data) |
| Do calculations for the right hand side. More...
|
|
|
using | OpType = typename EleOp::OpType |
|
using | EntData = EntitiesFieldData::EntData |
|
using | MatSetValuesHook = boost::function< MoFEMErrorCode(ForcesAndSourcesCore::UserDataOperator *op_ptr, const EntitiesFieldData::EntData &row_data, const EntitiesFieldData::EntData &col_data, MatrixDouble &m)> |
|
TimeFun | timeScalingFun |
| assumes that time variable is set More...
|
|
FEFun | feScalingFun |
| assumes that time variable is set More...
|
|
boost::shared_ptr< Range > | entsPtr |
| Entities on which element is run. More...
|
|
static MatSetValuesHook | matSetValuesHook |
|
template<int DIM> |
FTensor::Tensor1< FTensor::PackPtr< double *, DIM >, DIM > | getNf () |
|
template<int DIM> |
FTensor::Tensor2< FTensor::PackPtr< double *, DIM >, DIM, DIM > | getLocMat (const int rr) |
|
virtual MoFEMErrorCode | iNtegrate (EntData &row_data, EntData &col_data) |
| Integrate grad-grad operator. More...
|
|
virtual MoFEMErrorCode | aSsemble (EntData &row_data, EntData &col_data, const bool trans) |
|
virtual MoFEMErrorCode | iNtegrate (EntData &data) |
| Class dedicated to integrate operator. More...
|
|
virtual MoFEMErrorCode | aSsemble (EntData &data) |
|
virtual size_t | getNbOfBaseFunctions (EntitiesFieldData::EntData &data) |
| Get number of base functions. More...
|
|
int | nbRows |
| number of dofs on rows More...
|
|
int | nbCols |
| number if dof on column More...
|
|
int | nbIntegrationPts |
| number of integration points More...
|
|
int | nbRowBaseFunctions |
| number or row base functions More...
|
|
int | rowSide |
| row side number More...
|
|
int | colSide |
| column side number More...
|
|
EntityType | rowType |
| row type More...
|
|
EntityType | colType |
| column type More...
|
|
bool | assembleTranspose |
|
bool | onlyTranspose |
|
MatrixDouble | locMat |
| local entity block matrix More...
|
|
MatrixDouble | locMatTranspose |
| local entity block matrix More...
|
|
VectorDouble | locF |
| local entity vector More...
|
|
template<int Tensor_Dim, typename OpBase>
struct MoFEM::OpCalculateHVecTensorTrace< Tensor_Dim, OpBase >
Calculate trace of vector (Hdiv/Hcurl) space.
- Template Parameters
-
- Examples
- EshelbianPlasticity.cpp, and tensor_divergence_operator.cpp.
Definition at line 2764 of file UserDataOperators.hpp.
◆ OpCalculateHVecTensorTrace()
template<int Tensor_Dim, typename OpBase >
◆ doWork()
template<int Tensor_Dim, typename OpBase >
Definition at line 2776 of file UserDataOperators.hpp.
2779 const size_t nb_integration_points = OpBase::getGaussPts().size2();
2781 dataPtr->resize(Tensor_Dim, nb_integration_points,
false);
2784 const size_t nb_dofs = data.getFieldData().size();
2786 auto t_normal = OpBase::getFTensor1NormalsAtGaussPts();
2787 const size_t nb_base_functions = data.getN().size2() / 3;
2788 auto t_base = data.getFTensor1N<3>();
2789 auto t_data = getFTensor1FromMat<Tensor_Dim>(*
dataPtr);
2790 for (
size_t gg = 0; gg != nb_integration_points; ++gg) {
2792 t_normalized_normal(
j) = t_normal(
j);
2794 auto t_dof = data.getFTensor1FieldData<Tensor_Dim>();
2796 for (; bb != nb_dofs / Tensor_Dim; ++bb) {
2797 t_data(
i) += t_dof(
i) * (t_base(
j) * t_normalized_normal(
j));
2801 for (; bb < nb_base_functions; ++bb) {
◆ dataPtr
template<int Tensor_Dim, typename OpBase >
template<int Tensor_Dim, typename OpBase >
template<int Tensor_Dim, typename OpBase >
◆ zeroSide
template<int Tensor_Dim, typename OpBase >
◆ zeroType
template<int Tensor_Dim, typename OpBase >
The documentation for this struct was generated from the following file: