Integrate vector on rhs,.
More...
#include <users_modules/minimal_surface_equation/src/MinimalSurfaceElement.hpp>
Integrate vector on rhs,.
\[
\mathbf{F} = \int_L \mathbf{N}^\textrm{T} g(x,y) \textrm{d}L
\]
- Examples
- minimal_surface_area.cpp.
Definition at line 91 of file MinimalSurfaceElement.hpp.
◆ OpAssmebleBcRhs()
MinimalSurfaceEquation::MinimalSurfaceElement::OpAssmebleBcRhs::OpAssmebleBcRhs |
( |
const string |
field_name, |
|
|
Vec |
v_f |
|
) |
| |
|
inline |
Definition at line 94 of file MinimalSurfaceElement.hpp.
95 : EdgeElementForcesAndSourcesCore::UserDataOperator(
constexpr auto field_name
◆ doWork()
PetscErrorCode MinimalSurfaceEquation::MinimalSurfaceElement::OpAssmebleBcRhs::doWork |
( |
int |
side, |
|
|
EntityType |
type, |
|
|
DataForcesAndSourcesCore::EntData & |
data |
|
) |
| |
|
inline |
Definition at line 108 of file MinimalSurfaceElement.hpp.
109 {
111
112 int nb_dofs = data.getFieldData().size();
113 if (nb_dofs == 0) {
115 }
116 nF.resize(nb_dofs,
false);
118 int nb_gauss_pts = data.getN().size1();
119 for (int gg = 0; gg != nb_gauss_pts; gg++) {
120 double val = getLength() * getGaussPts()(1, gg);
121 double x = getCoordsAtGaussPts()(gg, 0);
122 double y = getCoordsAtGaussPts()(gg, 1);
124 }
126 &*data.getIndices().data().begin(), &
nF[0],
127 ADD_VALUES);
129 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#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()
#define CHKERR
Inline error check.
MoFEMErrorCode VecSetValues(Vec V, const EntitiesFieldData::EntData &data, const double *ptr, InsertMode iora)
Assemble PETSc vector.
virtual double evalFunction(double x, double y)
Function on boundary Inherit this class and overload this function to change bc.
◆ evalFunction()
virtual double MinimalSurfaceEquation::MinimalSurfaceElement::OpAssmebleBcRhs::evalFunction |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inlinevirtual |
Function on boundary Inherit this class and overload this function to change bc.
Definition at line 102 of file MinimalSurfaceElement.hpp.
102 {
103 return sin(2 * M_PI * (x + y));
104
105 }
◆ nF
VectorDouble MinimalSurfaceEquation::MinimalSurfaceElement::OpAssmebleBcRhs::nF |
◆ vF
Vec MinimalSurfaceEquation::MinimalSurfaceElement::OpAssmebleBcRhs::vF |
The documentation for this struct was generated from the following file: