www.mooseframework.org
KKSMultiACBulkBase.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 "ACBulk.h"
13 
14 // Forward Declarations
15 class KKSMultiACBulkBase;
16 
17 template <>
18 InputParameters validParams<KKSMultiACBulkBase>();
19 
27 class KKSMultiACBulkBase : public ACBulk<Real>
28 {
29 public:
30  KKSMultiACBulkBase(const InputParameters & parameters);
31 
32  virtual void initialSetup();
33 
34 protected:
36  unsigned int _nvar;
37 
39  VariableName _etai_name;
40 
42  unsigned int _etai_var;
43 
45  std::vector<MaterialPropertyName> _Fj_names;
46  unsigned int _num_j;
47 
49  std::vector<const MaterialProperty<Real> *> _prop_Fj;
50 
52  std::vector<std::vector<const MaterialProperty<Real> *>> _prop_dFjdarg;
53 
55  std::vector<MaterialPropertyName> _hj_names;
56 
58  std::vector<const MaterialProperty<Real> *> _prop_hj;
59 
61  std::vector<const MaterialProperty<Real> *> _prop_dhjdetai;
62 
64  std::vector<const MaterialProperty<Real> *> _prop_d2hjdetai2;
65 
67  std::vector<std::vector<const MaterialProperty<Real> *>> _prop_d2hjdetaidarg;
68 };
69 
KKSMultiACBulkBase::initialSetup
virtual void initialSetup()
Definition: KKSMultiACBulkBase.C:76
KKSMultiACBulkBase::_prop_dFjdarg
std::vector< std::vector< const MaterialProperty< Real > * > > _prop_dFjdarg
Derivatives of the free energy functions (needed for off-diagonal Jacobians)
Definition: KKSMultiACBulkBase.h:52
ACBulk
This is the Allen-Cahn equation base class that implements the bulk or local energy term of the equat...
Definition: ACBulk.h:24
ACBulk.h
KKSMultiACBulkBase::KKSMultiACBulkBase
KKSMultiACBulkBase(const InputParameters &parameters)
Definition: KKSMultiACBulkBase.C:29
KKSMultiACBulkBase::_num_j
unsigned int _num_j
Definition: KKSMultiACBulkBase.h:46
KKSMultiACBulkBase::_prop_Fj
std::vector< const MaterialProperty< Real > * > _prop_Fj
Values of the free energy functions for each phase .
Definition: KKSMultiACBulkBase.h:49
KKSMultiACBulkBase::_prop_hj
std::vector< const MaterialProperty< Real > * > _prop_hj
Values of the switching functions for each phase .
Definition: KKSMultiACBulkBase.h:58
KKSMultiACBulkBase::_Fj_names
std::vector< MaterialPropertyName > _Fj_names
Names of free energy functions for each phase .
Definition: KKSMultiACBulkBase.h:45
KKSMultiACBulkBase::_prop_d2hjdetaidarg
std::vector< std::vector< const MaterialProperty< Real > * > > _prop_d2hjdetaidarg
Second derivatives of the switching functions (needed for off-diagonal Jacobians)
Definition: KKSMultiACBulkBase.h:67
KKSMultiACBulkBase::_hj_names
std::vector< MaterialPropertyName > _hj_names
switching function names
Definition: KKSMultiACBulkBase.h:55
KKSMultiACBulkBase::_etai_name
VariableName _etai_name
name of order parameter that derivatives are taken wrt (needed to retrieve the derivative material pr...
Definition: KKSMultiACBulkBase.h:39
KKSMultiACBulkBase::_prop_dhjdetai
std::vector< const MaterialProperty< Real > * > _prop_dhjdetai
Derivatives of the switching functions wrt the order parameter for this kernel.
Definition: KKSMultiACBulkBase.h:61
KKSMultiACBulkBase::_prop_d2hjdetai2
std::vector< const MaterialProperty< Real > * > _prop_d2hjdetai2
Second derivatives of the switching functions wrt the order parameter for this kernel.
Definition: KKSMultiACBulkBase.h:64
KKSMultiACBulkBase::_nvar
unsigned int _nvar
Number of coupled variables.
Definition: KKSMultiACBulkBase.h:36
validParams< KKSMultiACBulkBase >
InputParameters validParams< KKSMultiACBulkBase >()
Definition: KKSMultiACBulkBase.C:14
KKSMultiACBulkBase::_etai_var
unsigned int _etai_var
index of order parameter that derivatives are taken wrt
Definition: KKSMultiACBulkBase.h:42
KKSMultiACBulkBase
ACBulk child class that sets up necessary variables and materials for calculation of residual contrib...
Definition: KKSMultiACBulkBase.h:27