v0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ThermoPlasticOps::OpCalculateConstraintsLhs_dTImpl< GAUSS, AssemblyDomainEleOp > Struct Template Reference

#include "users_modules/multifield-thermoplasticity-private/src/ThermoPlasticOps.hpp"

Inheritance diagram for ThermoPlasticOps::OpCalculateConstraintsLhs_dTImpl< GAUSS, AssemblyDomainEleOp >:
[legend]
Collaboration diagram for ThermoPlasticOps::OpCalculateConstraintsLhs_dTImpl< GAUSS, AssemblyDomainEleOp >:
[legend]

Public Member Functions

 OpCalculateConstraintsLhs_dTImpl (const std::string row_field_name, const std::string col_field_name, boost::shared_ptr< ThermoPlasticOps::ThermoPlasticBlockedParameters > TP_common_data_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 

Private Attributes

boost::shared_ptr< ThermoPlasticOps::ThermoPlasticBlockedParametersTPcommonDataPtr
 

Detailed Description

template<typename AssemblyDomainEleOp>
struct ThermoPlasticOps::OpCalculateConstraintsLhs_dTImpl< GAUSS, AssemblyDomainEleOp >

Definition at line 663 of file ThermoPlasticOps.hpp.

Constructor & Destructor Documentation

◆ OpCalculateConstraintsLhs_dTImpl()

template<typename AssemblyDomainEleOp >
ThermoPlasticOps::OpCalculateConstraintsLhs_dTImpl< GAUSS, AssemblyDomainEleOp >::OpCalculateConstraintsLhs_dTImpl ( const std::string  row_field_name,
const std::string  col_field_name,
boost::shared_ptr< ThermoPlasticOps::ThermoPlasticBlockedParameters TP_common_data_ptr 
)

Definition at line 678 of file ThermoPlasticOps.hpp.

683 : AssemblyDomainEleOp(row_field_name, col_field_name,
684 DomainEleOp::OPROWCOL),
685 TPcommonDataPtr(TP_common_data_ptr) {
686 AssemblyDomainEleOp::sYmm = false;
687}
boost::shared_ptr< ThermoPlasticOps::ThermoPlasticBlockedParameters > TPcommonDataPtr
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp

Member Function Documentation

◆ iNtegrate()

template<typename AssemblyDomainEleOp >
MoFEMErrorCode ThermoPlasticOps::OpCalculateConstraintsLhs_dTImpl< GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData &  row_data,
EntitiesFieldData::EntData &  col_data 
)

Definition at line 691 of file ThermoPlasticOps.hpp.

693 {
695
696 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
697 const auto nb_row_base_functions = row_data.getN().size2();
698
699 auto t_res_c_dtemperature =
700 getFTensor0FromVec(TPcommonDataPtr->resCdTemperature);
701 auto next = [&]() { ++t_res_c_dtemperature; };
702
703 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
704 auto t_row_base = row_data.getFTensor0N();
705 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
706 const double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
707 ++t_w;
708
709 const auto res = alpha * (t_res_c_dtemperature);
710 next();
711
712 auto mat_ptr = AssemblyDomainEleOp::locMat.data().begin();
713 size_t rr = 0;
714 for (; rr != AssemblyDomainEleOp::nbRows; ++rr) {
715 auto t_col_base = col_data.getFTensor0N(gg, 0);
716 for (size_t cc = 0; cc != AssemblyDomainEleOp::nbCols; ++cc) {
717 *mat_ptr += t_row_base * t_col_base * res;
718 ++t_col_base;
719 ++mat_ptr;
720 }
721 ++t_row_base;
722 }
723 for (; rr < nb_row_base_functions; ++rr)
724 ++t_row_base;
725 }
726
728}
#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()

Member Data Documentation

◆ TPcommonDataPtr

Definition at line 674 of file ThermoPlasticOps.hpp.


The documentation for this struct was generated from the following file: