#include <users_modules/tutorials/adv-0/src/PlasticOps.hpp>
|
| OpCalculateConstraintsRhs (const std::string field_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< MatrixDouble > m_D_ptr) |
|
MoFEMErrorCode | iNtegrate (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...
|
|
void | setAssembleTo (AssembleTo a_to) |
| Where to assemble. More...
|
|
- Examples
- plastic.cpp.
Definition at line 155 of file PlasticOps.hpp.
◆ OpCalculateConstraintsRhs()
PlasticOps::OpCalculateConstraintsRhs::OpCalculateConstraintsRhs |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< CommonData > |
common_data_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
m_D_ptr |
|
) |
| |
- Examples
- PlasticOpsGeneric.hpp.
Definition at line 354 of file PlasticOpsGeneric.hpp.
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp
constexpr auto field_name
@ OPROW
operator doWork function is executed on FE rows
boost::shared_ptr< CommonData > commonDataPtr
boost::shared_ptr< MatrixDouble > mDPtr
◆ iNtegrate()
MoFEMErrorCode PlasticOps::OpCalculateConstraintsRhs::iNtegrate |
( |
EntitiesFieldData::EntData & |
data | ) |
|
- Examples
- PlasticOps.hpp, and PlasticOpsGeneric.hpp.
Definition at line 361 of file PlasticOpsGeneric.hpp.
361 {
363
364 const size_t nb_integration_pts = getGaussPts().size2();
365 const size_t nb_base_functions = data.getN().size2();
366
368
369 auto next = [&]() { ++t_res_c; };
370
371 auto t_w = getFTensor0IntegrationWeight();
373 auto t_base = data.getFTensor0N();
374 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
375 const double alpha = getMeasure() * t_w;
376 ++t_w;
377 const auto res =
alpha * t_res_c;
378 next();
379
380 size_t bb = 0;
382 nf[bb] += t_base * res;
383 ++t_base;
384 }
385 for (; bb < nb_base_functions; ++bb)
386 ++t_base;
387 }
388
390}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
VectorDouble locF
local entity vector
int nbRows
number of dofs on rows
◆ commonDataPtr
boost::shared_ptr<CommonData> PlasticOps::OpCalculateConstraintsRhs::commonDataPtr |
|
private |
◆ mDPtr
boost::shared_ptr<MatrixDouble> PlasticOps::OpCalculateConstraintsRhs::mDPtr |
|
private |
The documentation for this struct was generated from the following files: