[OpWettingAngleRhs]
More...
#include "tutorials/vec-5_free_surface/src/FreeSurfaceOps.hpp"
|
| | OpNormalConstrainLhs (const std::string field_name_row, const std::string field_name_col) |
| |
| MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data) |
| |
[OpWettingAngleRhs]
[OpNormalConstrainLhs]
Boundary normal constraint LHS (Jacobian block)
- Parameters
-
| field_name_row | Name of the field associated with the row operator |
| field_name_col | Name 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:
- w_L : test function for Lagrange multiplier (λ)
- w_u : test function for velocity (u)
- n : outward normal vector on the boundary.
- Examples
- mofem/tutorials/vec-5_free_surface/free_surface.cpp.
Definition at line 272 of file FreeSurfaceOps.hpp.
◆ 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.
277 AssemblyBoundaryEleOp::OPROWCOL) {
278 assembleTranspose = true;
279 sYmm = false;
280 }
FormsIntegrators< BoundaryEleOp >::Assembly< A >::OpBase AssemblyBoundaryEleOp
◆ 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);
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);
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 };
#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
The documentation for this struct was generated from the following file: