v0.14.0
Public Types | Public Member Functions | Private Attributes | List of all members
MoFEM::OpSetFlux< OpBase > Struct Template Reference

#include <src/finite_elements/FormsBrokenSpaceConstraintImpl.hpp>

Inheritance diagram for MoFEM::OpSetFlux< OpBase >:
[legend]
Collaboration diagram for MoFEM::OpSetFlux< OpBase >:
[legend]

Public Types

using OP = OpBase
 

Public Member Functions

 OpSetFlux (boost::shared_ptr< std::vector< BrokenBaseSideData >> broken_base_side_data, boost::shared_ptr< MatrixDouble > flux_ptr)
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 

Private Attributes

boost::shared_ptr< std::vector< BrokenBaseSideData > > brokenBaseSideData
 
boost::shared_ptr< MatrixDoublefluxPtr
 

Detailed Description

template<typename OpBase>
struct MoFEM::OpSetFlux< OpBase >

Examples
EshelbianPlasticity.cpp, and test_broken_space.cpp.

Definition at line 139 of file FormsBrokenSpaceConstraintImpl.hpp.

Member Typedef Documentation

◆ OP

template<typename OpBase >
using MoFEM::OpSetFlux< OpBase >::OP = OpBase

Definition at line 141 of file FormsBrokenSpaceConstraintImpl.hpp.

Constructor & Destructor Documentation

◆ OpSetFlux()

template<typename OpBase >
MoFEM::OpSetFlux< OpBase >::OpSetFlux ( boost::shared_ptr< std::vector< BrokenBaseSideData >>  broken_base_side_data,
boost::shared_ptr< MatrixDouble flux_ptr 
)

Definition at line 156 of file FormsBrokenSpaceConstraintImpl.hpp.

159  : OP(NOSPACE, OP::OPSPACE), brokenBaseSideData(broken_base_side_data),
160  fluxPtr(flux_ptr) {}

Member Function Documentation

◆ doWork()

template<typename OpBase >
MoFEMErrorCode MoFEM::OpSetFlux< OpBase >::doWork ( int  row_side,
EntityType  row_type,
EntitiesFieldData::EntData row_data 
)

Definition at line 163 of file FormsBrokenSpaceConstraintImpl.hpp.

164  {
166  auto swap_flux = [&](auto &side_data) { side_data.getFlux().swap(*fluxPtr); };
167  swap_flux((*brokenBaseSideData)[OP::getNinTheLoop()]);
169 }

Member Data Documentation

◆ brokenBaseSideData

template<typename OpBase >
boost::shared_ptr<std::vector<BrokenBaseSideData> > MoFEM::OpSetFlux< OpBase >::brokenBaseSideData
private

Definition at line 151 of file FormsBrokenSpaceConstraintImpl.hpp.

◆ fluxPtr

template<typename OpBase >
boost::shared_ptr<MatrixDouble> MoFEM::OpSetFlux< OpBase >::fluxPtr
private

Definition at line 152 of file FormsBrokenSpaceConstraintImpl.hpp.


The documentation for this struct was generated from the following file:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
MoFEM::OpSetFlux::OP
OpBase OP
Definition: FormsBrokenSpaceConstraintImpl.hpp:141
MoFEM::OpSetFlux::fluxPtr
boost::shared_ptr< MatrixDouble > fluxPtr
Definition: FormsBrokenSpaceConstraintImpl.hpp:152
MoFEM::OpSetFlux::brokenBaseSideData
boost::shared_ptr< std::vector< BrokenBaseSideData > > brokenBaseSideData
Definition: FormsBrokenSpaceConstraintImpl.hpp:151
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