NuTo
Numerics Tool
NeumannBc.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include <iostream>
10 
11 namespace NuTo
12 {
13 namespace Integrands
14 {
15 
19 template <int TDim>
20 class NeumannBc
21 {
22 public:
24  : mDofType(dofType)
25  , mFactor(factor)
26  {
27  }
28 
30  {
31  Eigen::MatrixXd N = cellIpData.N(mDofType);
33 
34  gradient[mDofType] = N.transpose() * mFactor;
35 
36  return gradient;
37  }
38 
39 private:
40  DofType mDofType;
42 };
43 } /* Integrand */
44 } /* NuTo */
NeumannBc(NuTo::DofType dofType, Eigen::Matrix< double, TDim, 1 > factor)
Definition: NeumannBc.h:23
Similar to NuTo::CellData.
Definition: CellIpData.h:14
Definition: DofType.h:8
applies a neumann boundary condition
Definition: NeumannBc.h:20
NuTo::DofVector< double > ExternalLoad(const NuTo::CellIpData &cellIpData)
Definition: NeumannBc.h:29
Definition: Exception.h:6
gradient
Definition: NeuralNetwork.py:98
const Eigen::MatrixXd & N(DofType dofType) const
Returns a memoized copy of the N matrix for a given dof type.
Definition: CellIpData.h:77
Eigen::MatrixXd N(const Eigen::VectorXd &shapeFunctions, int numNodes, int dim)
Definition: Matrix.h:8