v0.14.0
Public Types | Public Member Functions | Protected Attributes | List of all members
FreeSurfaceOps::OpLoopSideGetDataForSideEle Struct Reference

#include <tutorials/vec-5/src/FreeSurfaceOps.hpp>

Inheritance diagram for FreeSurfaceOps::OpLoopSideGetDataForSideEle:
[legend]
Collaboration diagram for FreeSurfaceOps::OpLoopSideGetDataForSideEle:
[legend]

Public Types

using UDO = ForcesAndSourcesCore::UserDataOperator
 

Public Member Functions

 OpLoopSideGetDataForSideEle (const std::string field_name, boost::shared_ptr< std::vector< VectorInt >> col_indices_ptr, boost::shared_ptr< std::vector< MatrixDouble >> col_diff_basefunctions_ptr)
 
MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 

Protected Attributes

boost::shared_ptr< std::vector< VectorInt > > colIndicesPtr
 
boost::shared_ptr< std::vector< MatrixDouble > > colDiffBaseFunctionsPtr
 

Detailed Description

Examples
free_surface.cpp.

Definition at line 576 of file FreeSurfaceOps.hpp.

Member Typedef Documentation

◆ UDO

Definition at line 578 of file FreeSurfaceOps.hpp.

Constructor & Destructor Documentation

◆ OpLoopSideGetDataForSideEle()

FreeSurfaceOps::OpLoopSideGetDataForSideEle::OpLoopSideGetDataForSideEle ( const std::string  field_name,
boost::shared_ptr< std::vector< VectorInt >>  col_indices_ptr,
boost::shared_ptr< std::vector< MatrixDouble >>  col_diff_basefunctions_ptr 
)
inline

Definition at line 580 of file FreeSurfaceOps.hpp.

584  : UDO(field_name, UDO::OPCOL), colIndicesPtr(col_indices_ptr),
585  colDiffBaseFunctionsPtr(col_diff_basefunctions_ptr) {}

Member Function Documentation

◆ doWork()

MoFEMErrorCode FreeSurfaceOps::OpLoopSideGetDataForSideEle::doWork ( int  side,
EntityType  type,
DataForcesAndSourcesCore::EntData data 
)
inline

Definition at line 587 of file FreeSurfaceOps.hpp.

588  {
590 
591  if (type == MBVERTEX) {
592  colIndicesPtr->clear();
593  colDiffBaseFunctionsPtr->clear();
594  }
595 
596  colIndicesPtr->push_back(data.getIndices());
597  colDiffBaseFunctionsPtr->push_back(data.getDiffN());
598 
600  }

Member Data Documentation

◆ colDiffBaseFunctionsPtr

boost::shared_ptr<std::vector<MatrixDouble> > FreeSurfaceOps::OpLoopSideGetDataForSideEle::colDiffBaseFunctionsPtr
protected

Definition at line 604 of file FreeSurfaceOps.hpp.

◆ colIndicesPtr

boost::shared_ptr<std::vector<VectorInt> > FreeSurfaceOps::OpLoopSideGetDataForSideEle::colIndicesPtr
protected

Definition at line 603 of file FreeSurfaceOps.hpp.


The documentation for this struct was generated from the following file:
FreeSurfaceOps::OpLoopSideGetDataForSideEle::colIndicesPtr
boost::shared_ptr< std::vector< VectorInt > > colIndicesPtr
Definition: FreeSurfaceOps.hpp:603
FreeSurfaceOps::OpLoopSideGetDataForSideEle::colDiffBaseFunctionsPtr
boost::shared_ptr< std::vector< MatrixDouble > > colDiffBaseFunctionsPtr
Definition: FreeSurfaceOps.hpp:604
convert.type
type
Definition: convert.py:64
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
FreeSurfaceOps::OpLoopSideGetDataForSideEle::UDO
ForcesAndSourcesCore::UserDataOperator UDO
Definition: FreeSurfaceOps.hpp:578
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