www.mooseframework.org
CoupledSwitchingTimeDerivative.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 "CoupledTimeDerivative.h"
13 #include "JvarMapInterface.h"
14 #include "DerivativeMaterialInterface.h"
15 
16 // Forward Declaration
18 
19 template <>
21 
33  : public DerivativeMaterialInterface<JvarMapKernelInterface<CoupledTimeDerivative>>
34 {
35 public:
36  CoupledSwitchingTimeDerivative(const InputParameters & parameters);
37  virtual void initialSetup();
38 
39 protected:
40  virtual Real computeQpResidual();
41  virtual Real computeQpJacobian();
42  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
43 
45  const unsigned int _nvar;
46 
49  const VariableName _v_name;
50 
52  std::vector<MaterialPropertyName> _Fj_names;
53 
55  const unsigned int _num_j;
56 
58  std::vector<const MaterialProperty<Real> *> _prop_Fj;
59 
61  std::vector<const MaterialProperty<Real> *> _prop_dFjdv;
62 
64  std::vector<std::vector<const MaterialProperty<Real> *>> _prop_dFjdarg;
65 
67  std::vector<MaterialPropertyName> _hj_names;
68 
70  std::vector<const MaterialProperty<Real> *> _prop_dhjdetai;
71 
73  std::vector<const MaterialProperty<Real> *> _prop_d2hjdetai2;
74 
76  std::vector<std::vector<const MaterialProperty<Real> *>> _prop_d2hjdetaidarg;
77 };
78 
CoupledSwitchingTimeDerivative::_prop_dhjdetai
std::vector< const MaterialProperty< Real > * > _prop_dhjdetai
Derivatives of the switching functions wrt the order parameter for this kernel.
Definition: CoupledSwitchingTimeDerivative.h:70
CoupledSwitchingTimeDerivative::_prop_dFjdarg
std::vector< std::vector< const MaterialProperty< Real > * > > _prop_dFjdarg
Derivatives of the functions (needed for off-diagonal Jacobians)
Definition: CoupledSwitchingTimeDerivative.h:64
CoupledSwitchingTimeDerivative::computeQpJacobian
virtual Real computeQpJacobian()
Definition: CoupledSwitchingTimeDerivative.C:95
CoupledSwitchingTimeDerivative::_prop_Fj
std::vector< const MaterialProperty< Real > * > _prop_Fj
Values of the functions for each phase .
Definition: CoupledSwitchingTimeDerivative.h:58
CoupledSwitchingTimeDerivative::_Fj_names
std::vector< MaterialPropertyName > _Fj_names
Names of functions for each phase .
Definition: CoupledSwitchingTimeDerivative.h:52
CoupledSwitchingTimeDerivative::_prop_d2hjdetai2
std::vector< const MaterialProperty< Real > * > _prop_d2hjdetai2
Second derivatives of the switching functions wrt the order parameter for this kernel.
Definition: CoupledSwitchingTimeDerivative.h:73
validParams< CoupledSwitchingTimeDerivative >
InputParameters validParams< CoupledSwitchingTimeDerivative >()
Definition: CoupledSwitchingTimeDerivative.C:16
CoupledSwitchingTimeDerivative
This kernel adds a contribution where are the phases, are the switching functions,...
Definition: CoupledSwitchingTimeDerivative.h:32
CoupledSwitchingTimeDerivative::CoupledSwitchingTimeDerivative
CoupledSwitchingTimeDerivative(const InputParameters &parameters)
Definition: CoupledSwitchingTimeDerivative.C:30
CoupledSwitchingTimeDerivative::_prop_dFjdv
std::vector< const MaterialProperty< Real > * > _prop_dFjdv
Derivatives of the functions wrt the nonlinear variable for this kernel.
Definition: CoupledSwitchingTimeDerivative.h:61
CoupledSwitchingTimeDerivative::_prop_d2hjdetaidarg
std::vector< std::vector< const MaterialProperty< Real > * > > _prop_d2hjdetaidarg
Second derivatives of the switching functions (needed for off-diagonal Jacobians)
Definition: CoupledSwitchingTimeDerivative.h:76
CoupledSwitchingTimeDerivative::_hj_names
std::vector< MaterialPropertyName > _hj_names
switching function names
Definition: CoupledSwitchingTimeDerivative.h:67
CoupledSwitchingTimeDerivative::_nvar
const unsigned int _nvar
Number of coupled variables.
Definition: CoupledSwitchingTimeDerivative.h:45
CoupledSwitchingTimeDerivative::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: CoupledSwitchingTimeDerivative.C:105
CoupledSwitchingTimeDerivative::_v_name
const VariableName _v_name
name of order parameter that derivatives are taken wrt (needed to retrieve the derivative material pr...
Definition: CoupledSwitchingTimeDerivative.h:49
CoupledSwitchingTimeDerivative::initialSetup
virtual void initialSetup()
Definition: CoupledSwitchingTimeDerivative.C:75
CoupledSwitchingTimeDerivative::computeQpResidual
virtual Real computeQpResidual()
Definition: CoupledSwitchingTimeDerivative.C:85
CoupledSwitchingTimeDerivative::_num_j
const unsigned int _num_j
Number of phases.
Definition: CoupledSwitchingTimeDerivative.h:55