v0.13.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
AddFluxToRhsPipelineImpl< OpFluxRhsImpl< ElasticExample::SpringBcType< BCTYPE >, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase > Struct Template Reference

#include <users_modules/tutorials/vec-0/src/ElasticSpring.hpp>

Public Member Functions

 AddFluxToRhsPipelineImpl ()=delete
 

Static Public Member Functions

static MoFEMErrorCode add (boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pipeline, MoFEM::Interface &m_field, std::string field_name, boost::shared_ptr< MatrixDouble > u_ptr, double scale, std::string block_name, Sev sev)
 

Detailed Description

template<CubitBC BCTYPE, int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase>
struct AddFluxToRhsPipelineImpl< OpFluxRhsImpl< ElasticExample::SpringBcType< BCTYPE >, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >

Definition at line 243 of file ElasticSpring.hpp.

Constructor & Destructor Documentation

◆ AddFluxToRhsPipelineImpl()

template<CubitBC BCTYPE, int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
AddFluxToRhsPipelineImpl< OpFluxRhsImpl< ElasticExample::SpringBcType< BCTYPE >, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >::AddFluxToRhsPipelineImpl ( )
delete

Member Function Documentation

◆ add()

template<CubitBC BCTYPE, int BASE_DIM, int FIELD_DIM, AssemblyType A, IntegrationType I, typename OpBase >
static MoFEMErrorCode AddFluxToRhsPipelineImpl< OpFluxRhsImpl< ElasticExample::SpringBcType< BCTYPE >, BASE_DIM, FIELD_DIM, A, I, OpBase >, A, I, OpBase >::add ( boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &  pipeline,
MoFEM::Interface m_field,
std::string  field_name,
boost::shared_ptr< MatrixDouble >  u_ptr,
double  scale,
std::string  block_name,
Sev  sev 
)
inlinestatic

Definition at line 253 of file ElasticSpring.hpp.

260 {
262
263 using OP = OpFluxRhsImpl<ElasticExample::SpringBcType<BLOCKSET>, BASE_DIM,
265
266 auto add_op = [&](auto &&meshset_vec_ptr) {
267 for (auto m : meshset_vec_ptr) {
268 MOFEM_TAG_AND_LOG("WORLD", sev, "OpSpringRhs") << "Add " << *m;
269 pipeline.push_back(
270 new OP(m_field, m->getMeshsetId(), field_name, u_ptr, scale));
271 }
272 MOFEM_LOG_CHANNEL("WORLD");
273 };
274
275 switch (BCTYPE) {
276 case BLOCKSET:
277 add_op(
278
279 m_field.getInterface<MeshsetsManager>()->getCubitMeshsetPtr(
280 std::regex(
281
282 (boost::format("%s(.*)") % block_name).str()
283
284 ))
285
286 );
287
288 break;
289 default:
290 SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
291 "Handling of bc type not implemented");
292 break;
293 }
295 }
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
Definition: LogManager.hpp:362
constexpr int FIELD_DIM
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
@ BLOCKSET
Definition: definitions.h:148
@ MOFEM_NOT_IMPLEMENTED
Definition: definitions.h:32
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
FTensor::Index< 'm', SPACE_DIM > m
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
constexpr int BASE_DIM
double scale
Definition: plastic.cpp:97
constexpr auto field_name
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.

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