v0.13.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FreeSurfaceOps::OpLhsG_dG Struct Reference

Lhs for H dH. More...

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

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

Public Member Functions

 OpLhsG_dG (const std::string field_name)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 

Detailed Description

Lhs for H dH.

Examples
free_surface.cpp.

Definition at line 1121 of file FreeSurfaceOps.hpp.

Constructor & Destructor Documentation

◆ OpLhsG_dG()

FreeSurfaceOps::OpLhsG_dG::OpLhsG_dG ( const std::string  field_name)
inline

Definition at line 1123 of file FreeSurfaceOps.hpp.

1125 AssemblyDomainEleOp::OPROWCOL) {
1126 sYmm = true;
1127 }
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp
Definition: plastic.cpp:46
constexpr auto field_name

Member Function Documentation

◆ iNtegrate()

MoFEMErrorCode FreeSurfaceOps::OpLhsG_dG::iNtegrate ( EntitiesFieldData::EntData &  row_data,
EntitiesFieldData::EntData &  col_data 
)
inline

Definition at line 1129 of file FreeSurfaceOps.hpp.

1130 {
1132
1133 const double vol = getMeasure();
1134
1135 auto t_row_base = row_data.getFTensor0N();
1136 auto t_w = getFTensor0IntegrationWeight();
1137 auto t_coords = getFTensor1CoordsAtGaussPts();
1138
1139 for (int gg = 0; gg != nbIntegrationPts; ++gg) {
1140
1141 const double r = t_coords(0);
1142 const double alpha = t_w * vol * cylindrical(r);
1143
1144 int rr = 0;
1145 for (; rr != nbRows; ++rr) {
1146 auto t_col_base = col_data.getFTensor0N(gg, 0);
1147 const double beta = alpha * t_row_base;
1148 for (int cc = 0; cc != nbCols; ++cc) {
1149 locMat(rr, cc) += (t_col_base * beta);
1150 ++t_col_base;
1151 }
1152
1153 ++t_row_base;
1154 }
1155
1156 for (; rr < nbRowBaseFunctions; ++rr) {
1157 ++t_row_base;
1158 }
1159
1160 ++t_w;
1161 ++t_coords;
1162 }
1163
1165 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
auto cylindrical
const double r
rate factor

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