v0.13.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
MoFEM::AddEssentialToRhsPipelineImpl< OpEssentialRhsImpl< HeatFluxCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase > Struct Template Reference

#include <src/boundary_conditions/EssentialHeatFluxCubitBcData.hpp>

Public Member Functions

 AddEssentialToRhsPipelineImpl ()=delete
 

Static Public Member Functions

static MoFEMErrorCode add (MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pipeline, const std::string problem_name, std::string field_name, boost::shared_ptr< MatrixDouble > field_mat_ptr, std::vector< boost::shared_ptr< ScalingMethod > > smv)
 

Detailed Description

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase>
struct MoFEM::AddEssentialToRhsPipelineImpl< OpEssentialRhsImpl< HeatFluxCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >

Definition at line 67 of file EssentialHeatFluxCubitBcData.hpp.

Constructor & Destructor Documentation

◆ AddEssentialToRhsPipelineImpl()

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
MoFEM::AddEssentialToRhsPipelineImpl< OpEssentialRhsImpl< HeatFluxCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >::AddEssentialToRhsPipelineImpl ( )
delete

Member Function Documentation

◆ add()

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
static MoFEMErrorCode MoFEM::AddEssentialToRhsPipelineImpl< OpEssentialRhsImpl< HeatFluxCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >::add ( MoFEM::Interface m_field,
boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &  pipeline,
const std::string  problem_name,
std::string  field_name,
boost::shared_ptr< MatrixDouble field_mat_ptr,
std::vector< boost::shared_ptr< ScalingMethod > >  smv 
)
inlinestatic

Definition at line 76 of file EssentialHeatFluxCubitBcData.hpp.

84 {
86
87 using OP =
88 typename EssentialBC<OpBase>::template Assembly<A>::template LinearForm<
89 I>::template OpEssentialRhs<HeatFluxCubitBcData, BASE_DIM,
90 FIELD_DIM>;
91 using OpInternal = typename FormsIntegrators<OpBase>::template Assembly<
92 A>::template LinearForm<I>::template OpBaseTimesVector<BASE_DIM,
93 FIELD_DIM, 1>;
94
95 auto add_op = [&](auto &bcs) {
97 for (auto &m : bcs) {
98 if (auto bc = m.second->heatFluxBcPtr) {
99 auto &bc_id = m.first;
100 auto regex_str =
101 (boost::format("%s_%s_(.*)") % problem_name % field_name).str();
102 if (std::regex_match(bc_id, std::regex(regex_str))) {
103 MOFEM_TAG_AND_LOG("SELF", Sev::noisy, "OpEssentialRhs") << *bc;
104 pipeline.push_back(
105 new OpSetBc(field_name, false, m.second->getBcMarkersPtr()));
106 pipeline.push_back(
107 new OP(field_name, bc, m.second->getBcEntsPtr(), smv));
108 pipeline.push_back(new OpInternal(
109 field_name, field_mat_ptr,
110 [](double, double, double) constexpr { return 1.; },
111 m.second->getBcEntsPtr()));
112 pipeline.push_back(new OpUnSetBc(field_name));
113 }
114 }
115 }
116 MOFEM_LOG_CHANNEL("SELF");
118 };
119
120 CHKERR add_op(m_field.getInterface<BcManager>()->getBcMapByBlockName());
121
123 }
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
Definition: LogManager.hpp:359
constexpr int FIELD_DIM
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
FTensor::Index< 'm', SPACE_DIM > m
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
constexpr int BASE_DIM
constexpr IntegrationType I
constexpr AssemblyType A
constexpr auto field_name
Enforce essential constrains on rhs.
Definition: Essential.hpp:55
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.

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