v0.13.1
Public Member Functions | List of all members
OpVolumeSide Struct Reference

Inherits VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator.

Public Member Functions

 OpVolumeSide (const std::string &field_name)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 

Detailed Description

Examples
hello_world.cpp.

Definition at line 114 of file hello_world.cpp.

Constructor & Destructor Documentation

◆ OpVolumeSide()

OpVolumeSide::OpVolumeSide ( const std::string &  field_name)
Examples
hello_world.cpp.

Definition at line 116 of file hello_world.cpp.

118 field_name, field_name, OPROW) {}
ForcesAndSourcesCore::UserDataOperator UserDataOperator
constexpr auto field_name

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpVolumeSide::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)
Examples
hello_world.cpp.

Definition at line 119 of file hello_world.cpp.

120 {
122 if (type == MBVERTEX) {
123 MOFEM_LOG("SYNC", Sev::inform)
124 << "Hello Operator OpVolumeSide:"
125 << " volume " << getVolume() << " normal " << getNormal();
126 }
128 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:301
#define HelloFunctionBegin
Definition: hello_world.cpp:18

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