www.mooseframework.org
CoupledMaterialDerivative.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
19 class CoupledMaterialDerivative : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
20 {
21 public:
23 
25  virtual void initialSetup() override;
26 
27 protected:
28  virtual Real computeQpResidual() override;
29  virtual Real computeQpJacobian() override;
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
31 
33  std::string _v_name;
34  unsigned int _v_var;
35 
38 
41 
43  std::vector<const MaterialProperty<Real> *> _d2Fdvdarg;
44 };
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< Real > & _d2Fdvdu
2nd order material property derivative w.r.t. v then u
This kernel adds the term (dFdv, test), where v is a coupled variable.
std::string _v_name
name of the coupled variable the derivative is taken with respect to
static InputParameters validParams()
virtual void initialSetup() override
virtual Real computeQpResidual() override
CoupledMaterialDerivative(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpJacobian() override
std::vector< const MaterialProperty< Real > * > _d2Fdvdarg
2nd order material property derivatives w.r.t. v and then all other coupled variables ...
const MaterialProperty< Real > & _dFdv
Material property derivative w.r.t. v.