Evaluate function values and gradients at Gauss Pts.
More...
#include <users_modules/minimal_surface_equation/src/MinimalSurfaceElement.hpp>
Evaluate function values and gradients at Gauss Pts.
- Examples
- minimal_surface_area.cpp.
Definition at line 190 of file MinimalSurfaceElement.hpp.
◆ OpGetDataAtGaussPts()
MinimalSurfaceEquation::MinimalSurfaceElement::OpGetDataAtGaussPts::OpGetDataAtGaussPts |
( |
const string |
field_name, |
|
|
CommonData & |
common_data |
|
) |
| |
|
inline |
Definition at line 193 of file MinimalSurfaceElement.hpp.
194 : FaceElementForcesAndSourcesCore::UserDataOperator(
constexpr auto field_name
◆ doWork()
PetscErrorCode MinimalSurfaceEquation::MinimalSurfaceElement::OpGetDataAtGaussPts::doWork |
( |
int |
side, |
|
|
EntityType |
type, |
|
|
DataForcesAndSourcesCore::EntData & |
data |
|
) |
| |
|
inline |
Definition at line 198 of file MinimalSurfaceElement.hpp.
199 {
201
202 int nb_dofs = data.getFieldData().size();
203 if (nb_dofs == 0) {
205 }
206 int nb_gauss_pts = data.getN().size1();
207
208
209 if (type == MBVERTEX) {
210
213 }
214
215 for (int gg = 0; gg != nb_gauss_pts; gg++) {
217 ublas::matrix_row<MatrixDouble> grad_at_gauss_pt(
commonData.
gradU, gg);
218 noalias(grad_at_gauss_pt) +=
219 prod(trans(grad_shape_fun), data.getFieldData());
220 }
221
223 }
#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()
MatrixShallowArrayAdaptor< double > MatrixAdaptor
Matrix adaptor.
MatrixDouble gradU
nb_gauss_pts x 2 gradients at integration pts
◆ commonData
CommonData& MinimalSurfaceEquation::MinimalSurfaceElement::OpGetDataAtGaussPts::commonData |
The documentation for this struct was generated from the following file: