v0.14.0
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 342 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 352 of file EssentialDisplacementCubitBcData.hpp.

358  {
360 
361  using OP = typename EssentialBC<OpBase>::template Assembly<A>::
362  template BiLinearForm<I>::template OpEssentialLhs<
363  DisplacementCubitBcData, BASE_DIM, FIELD_DIM>;
364 
365  auto add_op = [&](auto &bcs) {
367  for (auto &m : bcs) {
368  if (auto bc = m.second->dispBcPtr) {
369  auto &bc_id = m.first;
370  auto regex_str =
371  (boost::format("%s_%s_(.*)") % problem_name % field_name).str();
372  if (std::regex_match(bc_id, std::regex(regex_str))) {
373  MOFEM_TAG_AND_LOG("SELF", Sev::noisy, "OpEssentialLhs") << *bc;
374  pipeline.push_back(
375  new OpSetBc(field_name, false, m.second->getBcMarkersPtr()));
376  pipeline.push_back(new OP(field_name, m.second->getBcEntsPtr()));
377  pipeline.push_back(new OpUnSetBc(field_name));
378  }
379  }
380  }
381  MOFEM_LOG_CHANNEL("SELF");
383  };
384 
385  CHKERR add_op(m_field.getInterface<BcManager>()->getBcMapByBlockName());
386 
388  }

The documentation for this struct was generated from the following file:
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.
Definition: UnknownInterface.hpp:93
MOFEM_LOG_CHANNEL
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
BASE_DIM
constexpr int BASE_DIM
Definition: dg_projection.cpp:15
FIELD_DIM
constexpr int FIELD_DIM
Definition: child_and_parent.cpp:15
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
BiLinearForm
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
MOFEM_TAG_AND_LOG
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
Definition: LogManager.hpp:362
m
FTensor::Index< 'm', 3 > m
Definition: shallow_wave.cpp:80
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
OP
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346