v0.16.3
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase > Struct Template Reference

#include "src/boundary_conditions/EssentialHeatFluxCubitBcData.hpp"

Inheritance diagram for MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >:
[legend]
Collaboration diagram for MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >:
[legend]

Public Types

using OP = typename FormsIntegrators< OpBase >::template Assembly< A >::OpBase
 

Public Member Functions

 OpEssentialRhsImpl (const std::string field_name, boost::shared_ptr< HeatFluxCubitBcData > bc_data, boost::shared_ptr< Range > ents_ptr, std::vector< boost::shared_ptr< ScalingMethod > > smv)
 

Protected Member Functions

MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data)
 

Private Attributes

double heatFlux
 
VecOfTimeScalingMethods vecOfTimeScalingMethods
 

Detailed Description

template<AssemblyType A, typename OpBase>
struct MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >

Definition at line 17 of file EssentialHeatFluxCubitBcData.hpp.

Member Typedef Documentation

◆ OP

template<AssemblyType A, typename OpBase >
using MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >::OP = typename FormsIntegrators<OpBase>::template Assembly<A>::OpBase

Definition at line 20 of file EssentialHeatFluxCubitBcData.hpp.

Constructor & Destructor Documentation

◆ OpEssentialRhsImpl()

template<AssemblyType A, typename OpBase >
MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >::OpEssentialRhsImpl ( const std::string  field_name,
boost::shared_ptr< HeatFluxCubitBcData >  bc_data,
boost::shared_ptr< Range >  ents_ptr,
std::vector< boost::shared_ptr< ScalingMethod > >  smv 
)

Definition at line 43 of file EssentialHeatFluxCubitBcData.hpp.

48 : OP(field_name, field_name, OpBase::OPROW, ents_ptr),
50 heatFlux = -bc_data->data.value1;
51 this->timeScalingFun = [this](const double t) {
52 double s = 1;
53 for (auto &o : vecOfTimeScalingMethods) {
54 s *= o->getScale(t);
55 }
56 return s;
57 };
58}
constexpr double t
plate stiffness
Definition plate.cpp:58
constexpr auto field_name
typename FormsIntegrators< OpBase >::template Assembly< A >::OpBase OP

Member Function Documentation

◆ iNtegrate()

template<AssemblyType A, typename OpBase >
MoFEMErrorCode MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >::iNtegrate ( EntitiesFieldData::EntData &  row_data)
protected

Definition at line 62 of file EssentialHeatFluxCubitBcData.hpp.

63 {
65
66 FTENSOR_INDEX(3, i);
67
68 // get element volume
69 const double vol = OP::getMeasure();
70 // get integration weights
71 auto t_w = OP::getFTensor0IntegrationWeight();
72 // get base function gradient on rows
73 auto t_row_base = row_data.getFTensor1N<3>();
74 // get normal
75 auto t_normal = OP::getFTensor1NormalsAtGaussPts();
76
77 // loop over integration points
78 for (int gg = 0; gg != OP::nbIntegrationPts; gg++) {
79 // take into account Jacobian
80 const double alpha = t_w;
81
82 FTensor::Tensor1<double, 3> t_unit_normal;
83 t_unit_normal(i) = t_normal(i) / t_normal.l2();
84
85 // loop over rows base functions
86 int rr = 0;
87 for (; rr != OP::nbRows; ++rr) {
88 OP::locF[rr] += alpha * (t_row_base(i) * t_unit_normal(i));
89 ++t_row_base;
90 }
91 for (; rr < OP::nbRowBaseFunctions; ++rr)
92 ++t_row_base;
93 ++t_w; // move to another integration weight
94 ++t_normal;
95 }
96
97 OP::locF *= vol * heatFlux;
98
100}
#define FTENSOR_INDEX(DIM, I)
#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()
FTensor::Index< 'i', SPACE_DIM > i

Member Data Documentation

◆ heatFlux

template<AssemblyType A, typename OpBase >
double MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >::heatFlux
private

Definition at line 31 of file EssentialHeatFluxCubitBcData.hpp.

◆ vecOfTimeScalingMethods

template<AssemblyType A, typename OpBase >
VecOfTimeScalingMethods MoFEM::OpEssentialRhsImpl< HeatFluxCubitBcData, 3, 3, A, GAUSS, OpBase >::vecOfTimeScalingMethods
private

Definition at line 32 of file EssentialHeatFluxCubitBcData.hpp.


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