Matrix coefficient for the Jacobian of NLCurlCurlIntegrator.
More...
#include <NLCurlCurlIntegrator.h>
|
| | NLCurlCurlJacMatrixCoefficient (mfem::Coefficient &k, mfem::Coefficient &curlu_dk_dcurlu, mfem::VectorCoefficient &curlu_vec, mfem::real_t curlu_zero_tol) |
| |
| void | Eval (mfem::DenseMatrix &K, mfem::ElementTransformation &T, const mfem::IntegrationPoint &ip) override |
| |
| void | SetTime (mfem::real_t t) override |
| |
Matrix coefficient for the Jacobian of NLCurlCurlIntegrator.
Produces the matrix k(|curl u|) I + |curl u| dk/d|curl u| (curl u_hat \otimes curl u_hat)
Definition at line 23 of file NLCurlCurlIntegrator.h.
◆ NLCurlCurlJacMatrixCoefficient()
| Moose::MFEM::NLCurlCurlJacMatrixCoefficient::NLCurlCurlJacMatrixCoefficient |
( |
mfem::Coefficient & |
k, |
|
|
mfem::Coefficient & |
curlu_dk_dcurlu, |
|
|
mfem::VectorCoefficient & |
curlu_vec, |
|
|
mfem::real_t |
curlu_zero_tol |
|
) |
| |
Definition at line 17 of file NLCurlCurlIntegrator.C.
21 : mfem::MatrixCoefficient(curlu_vec.GetVDim()),
26{
27}
mfem::NormalizedVectorCoefficient _curlu_hat_coef
mfem::Coefficient & _k_coef
const mfem::real_t _curlu_zero_tol
mfem::Coefficient & _curlu_dk_dcurlu_coef
◆ Eval()
| void Moose::MFEM::NLCurlCurlJacMatrixCoefficient::Eval |
( |
mfem::DenseMatrix & |
K, |
|
|
mfem::ElementTransformation & |
T, |
|
|
const mfem::IntegrationPoint & |
ip |
|
) |
| |
|
override |
Definition at line 39 of file NLCurlCurlIntegrator.C.
42{
43 const int dim = GetHeight();
44 mfem::Vector curlu_hat(
dim);
45
47 const mfem::real_t k =
_k_coef.Eval(T, ip);
49
51 for (
int i = 0; i <
dim; ++i)
52 for (
int j = 0; j <
dim; ++j)
53 K(i, j) += curlu_dk_dcurlu * curlu_hat(i) * curlu_hat(j);
54}
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
◆ SetTime()
| void Moose::MFEM::NLCurlCurlJacMatrixCoefficient::SetTime |
( |
mfem::real_t |
t | ) |
|
|
override |
◆ _curlu_dk_dcurlu_coef
| mfem::Coefficient& Moose::MFEM::NLCurlCurlJacMatrixCoefficient::_curlu_dk_dcurlu_coef |
|
protected |
◆ _curlu_hat_coef
| mfem::NormalizedVectorCoefficient Moose::MFEM::NLCurlCurlJacMatrixCoefficient::_curlu_hat_coef |
|
protected |
◆ _curlu_zero_tol
| const mfem::real_t Moose::MFEM::NLCurlCurlJacMatrixCoefficient::_curlu_zero_tol |
|
protected |
◆ _k_coef
| mfem::Coefficient& Moose::MFEM::NLCurlCurlJacMatrixCoefficient::_k_coef |
|
protected |
The documentation for this class was generated from the following files: