v0.14.0
Public Member Functions | Static Public Member Functions | List of all members
MoFEM::AddEssentialToRhsPipelineImpl< OpEssentialRhsImpl< DisplacementCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase > Struct Template Reference

#include <src/boundary_conditions/EssentialDisplacementCubitBcData.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< DisplacementCubitBcData, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >

Definition at line 289 of file EssentialDisplacementCubitBcData.hpp.

Constructor & Destructor Documentation

◆ AddEssentialToRhsPipelineImpl()

template<int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
MoFEM::AddEssentialToRhsPipelineImpl< OpEssentialRhsImpl< DisplacementCubitBcData, 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< 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,
boost::shared_ptr< MatrixDouble field_mat_ptr,
std::vector< boost::shared_ptr< ScalingMethod >>  smv 
)
inlinestatic

Definition at line 299 of file EssentialDisplacementCubitBcData.hpp.

307  {
309 
310  using OP =
311  typename EssentialBC<OpBase>::template Assembly<A>::template LinearForm<
312  I>::template OpEssentialRhs<DisplacementCubitBcData, BASE_DIM,
313  FIELD_DIM>;
314  using OpInternal = typename FormsIntegrators<OpBase>::template Assembly<
315  A>::template LinearForm<I>::template OpBaseTimesVector<BASE_DIM,
316  FIELD_DIM, 1>;
317 
318  auto add_op = [&](auto &bcs) {
320  for (auto &m : bcs) {
321  if (auto bc = m.second->dispBcPtr) {
322  auto &bc_id = m.first;
323  auto regex_str =
324  (boost::format("%s_%s_(.*)") % problem_name % field_name).str();
325  if (std::regex_match(bc_id, std::regex(regex_str))) {
326  MOFEM_TAG_AND_LOG("SELF", Sev::noisy, "OpEssentialRhs") << *bc;
327  pipeline.push_back(
328  new OpSetBc(field_name, false, m.second->getBcMarkersPtr()));
329  pipeline.push_back(
330  new OP(field_name, bc, m.second->getBcEntsPtr(), smv));
331  pipeline.push_back(new OpInternal(
332  field_name, field_mat_ptr,
333  [](double, double, double) constexpr { return 1.; },
334  m.second->getBcEntsPtr()));
335  pipeline.push_back(new OpUnSetBc(field_name));
336  }
337  }
338  }
339  MOFEM_LOG_CHANNEL("SELF");
341  };
342 
343  CHKERR add_op(m_field.getInterface<BcManager>()->getBcMapByBlockName());
344 
346  }

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:460
MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
Definition: UnknownInterface.hpp:93
MOFEM_LOG_CHANNEL
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
BASE_DIM
constexpr int BASE_DIM
Definition: dg_projection.cpp:15
FIELD_DIM
constexpr int FIELD_DIM
Definition: child_and_parent.cpp:15
I
constexpr IntegrationType I
Definition: operators_tests.cpp:31
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
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:453
OP
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359