v0.14.0
Public Member Functions | Protected Attributes | List of all members
OpBlockPermittivity Struct Reference

#include <tutorials/scl-12/src/electrostatics.hpp>

Inheritance diagram for OpBlockPermittivity:
[legend]
Collaboration diagram for OpBlockPermittivity:
[legend]

Public Member Functions

 OpBlockPermittivity (boost::shared_ptr< DataAtIntegrationPts > common_data_ptr, boost::shared_ptr< map< int, BlockData >> perm_block_sets_ptr, const std::string &field_name)
 
MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 

Protected Attributes

boost::shared_ptr< map< int, BlockData > > permBlockSetsPtr
 
boost::shared_ptr< DataAtIntegrationPtscommonDataPtr
 

Detailed Description

Definition at line 103 of file electrostatics.hpp.

Constructor & Destructor Documentation

◆ OpBlockPermittivity()

OpBlockPermittivity::OpBlockPermittivity ( boost::shared_ptr< DataAtIntegrationPts common_data_ptr,
boost::shared_ptr< map< int, BlockData >>  perm_block_sets_ptr,
const std::string &  field_name 
)
inline

Definition at line 105 of file electrostatics.hpp.

109  : DomainEleOp(field_name, field_name, OPROWCOL, false),
110  commonDataPtr(common_data_ptr), permBlockSetsPtr(perm_block_sets_ptr) {
111  std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE], false);
112  doEntities[MBVERTEX] = true;
113  }

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpBlockPermittivity::doWork ( int  row_side,
int  col_side,
EntityType  row_type,
EntityType  col_type,
EntitiesFieldData::EntData row_data,
EntitiesFieldData::EntData col_data 
)
inline

Definition at line 115 of file electrostatics.hpp.

118  {
120  for (auto &m : (*permBlockSetsPtr)) {
121  if (m.second.domainEnts.find(getFEEntityHandle()) !=
122  m.second.domainEnts.end()) {
123  commonDataPtr->blockPermittivity = m.second.epsPermit;
124  }
125  }
127  }

Member Data Documentation

◆ commonDataPtr

boost::shared_ptr<DataAtIntegrationPts> OpBlockPermittivity::commonDataPtr
protected

Definition at line 131 of file electrostatics.hpp.

◆ permBlockSetsPtr

boost::shared_ptr<map<int, BlockData> > OpBlockPermittivity::permBlockSetsPtr
protected

Definition at line 130 of file electrostatics.hpp.


The documentation for this struct was generated from the following file:
DomainEleOp
DomainEle::UserDataOperator DomainEleOp
Definition: electrostatics.hpp:16
OpBlockPermittivity::commonDataPtr
boost::shared_ptr< DataAtIntegrationPts > commonDataPtr
Definition: electrostatics.hpp:131
OpBlockPermittivity::permBlockSetsPtr
boost::shared_ptr< map< int, BlockData > > permBlockSetsPtr
Definition: electrostatics.hpp:130
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
m
FTensor::Index< 'm', 3 > m
Definition: shallow_wave.cpp:80
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