https://mooseframework.inl.gov
Loading...
Searching...
No Matches
KKSPhaseChemicalPotential.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
16// Forward Declarations
17
32class KKSPhaseChemicalPotential : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
33{
34public:
36
38
39protected:
40 virtual Real computeQpResidual();
41 virtual Real computeQpJacobian();
42 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
43 virtual void initialSetup();
44
45private:
47 unsigned int _cb_var;
48 VariableName _cb_name;
49
55
56 std::vector<const MaterialProperty<Real> *> _d2fadcadarg;
57 std::vector<const MaterialProperty<Real> *> _d2fbdcbdarg;
58
60 const Real _ka;
61 const Real _kb;
63};
Enforce the equality of the chemical potentials in the two phases.
const MaterialProperty< Real > & _dfadca
material properties we need to access
static InputParameters validParams()
const MaterialProperty< Real > & _dfbdcb
std::vector< const MaterialProperty< Real > * > _d2fbdcbdarg
const MaterialProperty< Real > & _d2fadca2
const MaterialProperty< Real > & _d2fbdcbca
unsigned int _cb_var
coupled variable for cb
std::vector< const MaterialProperty< Real > * > _d2fadcadarg
virtual Real computeQpOffDiagJacobian(unsigned int jvar)