v0.16.0
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 114 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 123 of file EssentialHeatFluxCubitBcData.hpp.

131 {
133
134 using OP =
135 typename EssentialBC<OpBase>::template Assembly<A>::template LinearForm<
136 I>::template OpEssentialRhs<HeatFluxCubitBcData, BASE_DIM,
137 FIELD_DIM>;
138 using OpInternal = typename FormsIntegrators<OpBase>::template Assembly<
139 A>::template LinearForm<I>::template OpBaseTimesVector<BASE_DIM,
140 FIELD_DIM,
141 FIELD_DIM>;
142
143 auto add_op = [&](auto &bcs) {
145 for (auto &m : bcs) {
146 if (auto bc = m.second->heatFluxBcPtr) {
147 auto &bc_id = m.first;
148 auto regex_str =
149 (boost::format("%s_%s_(.*)") % problem_name % field_name).str();
150 if (std::regex_match(bc_id, std::regex(regex_str))) {
151 MOFEM_TAG_AND_LOG("SELF", Sev::noisy, "OpEssentialRhs") << *bc;
152 pipeline.push_back(
153 new OpSetBc(field_name, false, m.second->getBcMarkersPtr()));
154 pipeline.push_back(
155 new OP(field_name, bc, m.second->getBcEntsPtr(), smv));
156 pipeline.push_back(new OpInternal(
157 field_name, field_mat_ptr,
158 [](double, double, double) constexpr { return 1.; },
159 m.second->getBcEntsPtr()));
160 pipeline.push_back(new OpUnSetBc(field_name));
161 }
162 }
163 }
164 MOFEM_LOG_CHANNEL("SELF");
166 };
167
168 CHKERR add_op(m_field.getInterface<BcManager>()->getBcMapByBlockName());
169
171 }
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
constexpr int FIELD_DIM
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#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()
#define CHKERR
Inline error check.
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
constexpr int BASE_DIM
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
constexpr IntegrationType I
constexpr AssemblyType A
constexpr auto field_name
FTensor::Index< 'm', 3 > m
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.

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