https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SLKKSSum.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"
14
22class SLKKSSum : public JvarMapKernelInterface<Kernel>
23{
24public:
26
27 SLKKSSum(const InputParameters & parameters);
28
29protected:
30 virtual Real computeQpResidual();
31 virtual Real computeQpJacobian();
32 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33
35 unsigned int _ncs;
36 std::vector<const VariableValue *> _cs;
37 std::vector<Real> _a_cs;
40
42 Real _a_u;
43
46};
Enforce the sum of sublattice concentrations to a given phase concentration.
Definition SLKKSSum.h:23
const JvarMap & _cs_map
Definition SLKKSSum.h:38
unsigned int _ncs
sublattice A variables
Definition SLKKSSum.h:35
virtual Real computeQpResidual()
Definition SLKKSSum.C:56
std::vector< Real > _a_cs
Definition SLKKSSum.h:37
virtual Real computeQpJacobian()
Definition SLKKSSum.C:66
static InputParameters validParams()
Definition SLKKSSum.C:16
Real _a_u
sublattice fraction for the sublattice B concentration represented by the kernel variable
Definition SLKKSSum.h:42
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition SLKKSSum.C:72
const VariableValue & _target
AuxVariable to hold the target sum.
Definition SLKKSSum.h:45
std::vector< const VariableValue * > _cs
Definition SLKKSSum.h:36
VariableValueTempl< false > VariableValue