https://mooseframework.inl.gov
SLKKSPhaseConcentration.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 
30 class SLKKSPhaseConcentration : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
31 {
32 public:
34 
36 
37 protected:
38  virtual Real computeQpResidual();
39  virtual Real computeQpJacobian();
40  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
41 
43  unsigned int _nca;
44  std::vector<const VariableValue *> _ca;
45  std::vector<Real> _a_ca;
46  const JvarMap & _ca_map;
48 
50  unsigned int _ncb;
51  std::vector<const VariableValue *> _cb;
52  std::vector<Real> _a_cb;
53  const JvarMap & _cb_map;
55 
58 
60  const VariableValue & _c;
61  unsigned int _c_var;
63 
66  unsigned int _eta_var;
68 
71 
74 
75 private:
77  void computeSums();
78 
83 };
Enforce sum of phase concentrations to be the real concentration.
static InputParameters validParams()
unsigned int _ncb
sublattice B variables
const VariableValue & _c
global concentration variable
unsigned int _nca
sublattice A variables
std::vector< const VariableValue * > _cb
Real _a_u
sublattice fraction for the sublattice B concentration represented by the kernel variable ...
const MaterialProperty< Real > & _prop_dh
Derivative of the switching function .
std::vector< const VariableValue * > _ca
Real _casum
updated by computeSums
const MaterialProperty< Real > & _prop_h
Switching function .
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _eta
phase order parameter
SLKKSPhaseConcentration(const InputParameters &parameters)
void computeSums()
update the _casum and _cbsum members