v0.16.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
MoFEM::AddEssentialToLhsPipelineImpl< OpEssentialLhsImpl< DisplacementCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase > Struct Template Reference

#include "src/boundary_conditions/EssentialDisplacementCubitBcData.hpp"

Public Member Functions

 AddEssentialToLhsPipelineImpl ()=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)
 

Detailed Description

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase>
struct MoFEM::AddEssentialToLhsPipelineImpl< OpEssentialLhsImpl< DisplacementCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >

Definition at line 357 of file EssentialDisplacementCubitBcData.hpp.

Constructor & Destructor Documentation

◆ AddEssentialToLhsPipelineImpl()

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
MoFEM::AddEssentialToLhsPipelineImpl< OpEssentialLhsImpl< DisplacementCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >::AddEssentialToLhsPipelineImpl ( )
delete

Member Function Documentation

◆ add()

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
static MoFEMErrorCode MoFEM::AddEssentialToLhsPipelineImpl< OpEssentialLhsImpl< DisplacementCubitBcData, 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 
)
inlinestatic

Definition at line 367 of file EssentialDisplacementCubitBcData.hpp.

373 {
375
376 using OP = typename EssentialBC<OpBase>::template Assembly<A>::
377 template BiLinearForm<I>::template OpEssentialLhs<
378 DisplacementCubitBcData, BASE_DIM, FIELD_DIM>;
379
380 auto add_op = [&](auto &bcs) {
382 for (auto &m : bcs) {
383 if (auto bc = m.second->dispBcPtr) {
384 auto &bc_id = m.first;
385 auto regex_str =
386 (boost::format("%s_%s_(.*)") % problem_name % field_name).str();
387 if (std::regex_match(bc_id, std::regex(regex_str))) {
388 MOFEM_TAG_AND_LOG("SELF", Sev::noisy, "OpEssentialLhs") << *bc;
389 pipeline.push_back(
390 new OpSetBc(field_name, false, m.second->getBcMarkersPtr()));
391 pipeline.push_back(new OP(field_name, m.second->getBcEntsPtr()));
392 pipeline.push_back(new OpUnSetBc(field_name));
393 }
394 }
395 }
396 MOFEM_LOG_CHANNEL("SELF");
398 };
399
400 CHKERR add_op(m_field.getInterface<BcManager>()->getBcMapByBlockName());
401
403 }
#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 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: