https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CHPFCRFF.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
18class CHPFCRFF : public Kernel
19{
20public:
22
24
25protected:
26 virtual Real computeQpResidual();
27 virtual Real computeQpJacobian();
28 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
29
30private:
32 const bool _has_MJac;
34
36 const Real _tol;
37
38 const unsigned int _num_L;
39 std::vector<unsigned int> _vals_var;
40 std::vector<const VariableGradient *> _grad_vals;
41
42 const unsigned int _n_exp_terms;
43 const Real _a;
44 const Real _b;
45 const Real _c;
46};
This kernel calculates the main portion of the cahn-hilliard residual for the RFF form of the phase f...
Definition CHPFCRFF.h:19
virtual Real computeQpJacobian()
Definition CHPFCRFF.C:127
const bool _has_MJac
Definition CHPFCRFF.h:32
const MaterialProperty< Real > & _M
Definition CHPFCRFF.h:31
static InputParameters validParams()
Definition CHPFCRFF.C:16
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition CHPFCRFF.C:218
std::vector< unsigned int > _vals_var
Definition CHPFCRFF.h:39
const unsigned int _num_L
Definition CHPFCRFF.h:38
const Real _a
Definition CHPFCRFF.h:43
std::vector< const VariableGradient * > _grad_vals
Definition CHPFCRFF.h:40
const MaterialProperty< Real > *const _DM
Definition CHPFCRFF.h:33
const MooseEnum _log_approach
Definition CHPFCRFF.h:35
const unsigned int _n_exp_terms
Definition CHPFCRFF.h:42
const Real _b
Definition CHPFCRFF.h:44
virtual Real computeQpResidual()
Definition CHPFCRFF.C:61
const Real _tol
Definition CHPFCRFF.h:36
const Real _c
Definition CHPFCRFF.h:45
const InputParameters & parameters() const