https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MaterialDerivativeStdVectorRealTestKernel.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "Kernel.h"
13#include "JvarMapInterface.h"
15
20 : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
21{
22public:
24
25protected:
26 virtual Real computeQpResidual() override;
27 virtual Real computeQpJacobian() override;
28 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
29
31 const unsigned int _n_vars;
32
33 const std::string & _name;
34
37
39 std::vector<const MaterialProperty<std::vector<Real>> *> _p_off_diag_derivatives;
40
43
45 const unsigned int _component_i;
46
47public:
49};
Kernel for testing derivatives of a std::vector<Real> material property.
const MaterialProperty< std::vector< Real > > & _p_diag_derivative
material property for the diagonal derivative of the tested property
const unsigned int _component_i
the component of the std::vector material property
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< Real > & _p
material property for which to test derivatives
std::vector< const MaterialProperty< std::vector< Real > > * > _p_off_diag_derivatives
material properties for the off-diagonal derivatives of the tested property
const unsigned int _n_vars
number of nonlinear variables