www.mooseframework.org
AllenCahnElasticEnergyOffDiag.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 "DerivativeMaterialInterface.h"
13 #include "JvarMapInterface.h"
14 #include "Kernel.h"
15 
16 // Forward Declarations
18 template <typename>
21 
22 template <>
24 
30  : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
31 {
32 public:
33  AllenCahnElasticEnergyOffDiag(const InputParameters & parameters);
34 
35 protected:
36  Real computeQpResidual() override { return 0.0; }
37 
38  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
39 
41  const MaterialProperty<Real> & _L;
42 
44  const unsigned int _ndisp;
45  std::vector<unsigned int> _disp_var;
47 
49  const MaterialProperty<RankTwoTensor> & _d2Fdcdstrain;
50 };
RankTwoTensor
RankTwoTensorTempl< Real > RankTwoTensor
Definition: AllenCahnElasticEnergyOffDiag.h:19
AllenCahnElasticEnergyOffDiag::_L
const MaterialProperty< Real > & _L
Mobility.
Definition: AllenCahnElasticEnergyOffDiag.h:41
AllenCahnElasticEnergyOffDiag::_ndisp
const unsigned int _ndisp
Displacement variables used for off-diagonal Jacobian.
Definition: AllenCahnElasticEnergyOffDiag.h:44
validParams< AllenCahnElasticEnergyOffDiag >
InputParameters validParams< AllenCahnElasticEnergyOffDiag >()
Definition: AllenCahnElasticEnergyOffDiag.C:18
AllenCahnElasticEnergyOffDiag
This kernel computes the off-diagonal jacobian of elastic energy in AllenCahn respect to displacement...
Definition: AllenCahnElasticEnergyOffDiag.h:29
AllenCahnElasticEnergyOffDiag::_disp_var
std::vector< unsigned int > _disp_var
Definition: AllenCahnElasticEnergyOffDiag.h:45
AllenCahnElasticEnergyOffDiag::AllenCahnElasticEnergyOffDiag
AllenCahnElasticEnergyOffDiag(const InputParameters &parameters)
Definition: AllenCahnElasticEnergyOffDiag.C:31
RankTwoTensorTempl
Definition: ACGrGrElasticDrivingForce.h:17
AllenCahnElasticEnergyOffDiag::_d2Fdcdstrain
const MaterialProperty< RankTwoTensor > & _d2Fdcdstrain
Free energy material properties and derivatives.
Definition: AllenCahnElasticEnergyOffDiag.h:49
AllenCahnElasticEnergyOffDiag::computeQpResidual
Real computeQpResidual() override
Definition: AllenCahnElasticEnergyOffDiag.h:36
AllenCahnElasticEnergyOffDiag::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
Definition: AllenCahnElasticEnergyOffDiag.C:43