https://mooseframework.inl.gov
SLKKSChemicalPotential.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 
22 class SLKKSChemicalPotential : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
23 {
24 public:
26 
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33  virtual void initialSetup();
34 
35 private:
37  unsigned int _cs_var;
38  VariableName _cs_name;
40 
47 
49  const Real _a_u;
50  const Real _a_cs;
52 
54  std::vector<const MaterialProperty<Real> *> _d2Fdudarg;
55  std::vector<const MaterialProperty<Real> *> _d2Fdcsdarg;
57 };
static InputParameters validParams()
Enforce the equality of the chemical potentials in sublattices of the same phase D.
const Real _a_u
sublattice site fractions
const MaterialProperty< Real > & _dFdu
chemical potentials and their derivatives w.r.t. the two sublattice concentrations ...
const MaterialProperty< Real > & _dFdcs
const MaterialProperty< Real > & _d2Fdcsu
unsigned int _cs_var
coupled variable for the other sublattice concentration cs
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const MaterialProperty< Real > & _d2Fdu2
SLKKSChemicalPotential(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< const MaterialProperty< Real > * > _d2Fdudarg
free energy derivatives
std::vector< const MaterialProperty< Real > * > _d2Fdcsdarg