https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
22class SLKKSChemicalPotential : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
23{
24public:
26
27 SLKKSChemicalPotential(const InputParameters & parameters);
28
29protected:
30 virtual Real computeQpResidual();
31 virtual Real computeQpJacobian();
32 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33 virtual void initialSetup();
34
35private:
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};
Enforce the equality of the chemical potentials in sublattices of the same phase D.
std::vector< const MaterialProperty< Real > * > _d2Fdudarg
free energy derivatives
std::vector< const MaterialProperty< Real > * > _d2Fdcsdarg
static InputParameters validParams()
const Real _a_u
sublattice site fractions
const MaterialProperty< Real > & _d2Fdu2
unsigned int _cs_var
coupled variable for the other sublattice concentration cs
const MaterialProperty< Real > & _dFdu
chemical potentials and their derivatives w.r.t. the two sublattice concentrations
const MaterialProperty< Real > & _dFdcs
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const MaterialProperty< Real > & _d2Fdcsu