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

[OpWettingAngleRhs] More...

#include "tutorials/vec-5_free_surface/src/FreeSurfaceOps.hpp"

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

Public Member Functions

 OpNormalConstrainLhs (const std::string field_name_row, const std::string field_name_col)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 

Detailed Description

[OpWettingAngleRhs]

[OpNormalConstrainLhs]

Boundary normal constraint LHS (Jacobian block)

Parameters
field_name_rowName of the field associated with the row operator
field_name_colName of the field associated with the column operator
Returns
MoFEMErrorCode

Computes the matrix entries for ∫_Γ ​w_L​⋅(n⋅u) dΓ, and its transpose ∫_Γ ​w_u​⋅(λn) dΓ, where:

Examples
mofem/tutorials/vec-5_free_surface/free_surface.cpp.

Definition at line 272 of file FreeSurfaceOps.hpp.

Constructor & Destructor Documentation

◆ OpNormalConstrainLhs()

FreeSurfaceOps::OpNormalConstrainLhs::OpNormalConstrainLhs ( const std::string  field_name_row,
const std::string  field_name_col 
)
inline

Definition at line 274 of file FreeSurfaceOps.hpp.

276 : AssemblyBoundaryEleOp(field_name_row, field_name_col,
277 AssemblyBoundaryEleOp::OPROWCOL) {
278 assembleTranspose = true;
279 sYmm = false;
280 }
FormsIntegrators< BoundaryEleOp >::Assembly< A >::OpBase AssemblyBoundaryEleOp

Member Function Documentation

◆ iNtegrate()

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

Definition at line 282 of file FreeSurfaceOps.hpp.

283 {
285
286 auto t_w = getFTensor0IntegrationWeight();
287 auto t_normal = getFTensor1Normal();
288 auto t_row_base = row_data.getFTensor0N();
289 auto t_coords = getFTensor1CoordsAtGaussPts();
290
291 for (int gg = 0; gg != nbIntegrationPts; ++gg) {
292
293 auto t_mat = getFTensor1FromPtr<U_FIELD_DIM>(&locMat(0, 0));
294
295 const double r = t_coords(0);
296 const double alpha = t_w * cylindrical(r);
297
298 int rr = 0;
299 for (; rr != nbRows; ++rr) {
300
301 auto t_col_base = col_data.getFTensor0N(gg, 0);
302 const double a = alpha * t_row_base;
303
304 for (int cc = 0; cc != nbCols / U_FIELD_DIM; ++cc) {
305 t_mat(i) += (a * t_col_base) * t_normal(i); // α * N_row * N_col * n
306 ++t_col_base;
307 ++t_mat;
308 }
309 ++t_row_base;
310 }
311
312 for (; rr < nbRowBaseFunctions; ++rr)
313 ++t_row_base;
314
315 ++t_w;
316 ++t_coords;
317 }
318
320 };
constexpr double a
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
auto cylindrical
[cylindrical]
constexpr int U_FIELD_DIM
FTensor::Index< 'i', SPACE_DIM > i
int r
Definition sdf.py:205

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