www.mooseframework.org
CHPFCRFF.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
14 // Forward Declarations
15 class CHPFCRFF;
16 
17 template <>
18 InputParameters validParams<CHPFCRFF>();
19 
24 class CHPFCRFF : public Kernel
25 {
26 public:
27  CHPFCRFF(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33 
34 private:
35  const MaterialProperty<Real> & _M;
36  const bool _has_MJac;
37  const MaterialProperty<Real> * _DM;
38 
39  const MooseEnum _log_approach;
40  const Real _tol;
41 
42  const unsigned int _num_L;
43  std::vector<unsigned int> _vals_var;
44  std::vector<const VariableGradient *> _grad_vals;
45 
46  const unsigned int _n_exp_terms;
47  const Real _a;
48  const Real _b;
49  const Real _c;
50 };
51 
CHPFCRFF::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: CHPFCRFF.C:219
CHPFCRFF::_n_exp_terms
const unsigned int _n_exp_terms
Definition: CHPFCRFF.h:46
validParams< CHPFCRFF >
InputParameters validParams< CHPFCRFF >()
Definition: CHPFCRFF.C:17
CHPFCRFF::_vals_var
std::vector< unsigned int > _vals_var
Definition: CHPFCRFF.h:43
CHPFCRFF::_DM
const MaterialProperty< Real > * _DM
Definition: CHPFCRFF.h:37
CHPFCRFF::CHPFCRFF
CHPFCRFF(const InputParameters &parameters)
Definition: CHPFCRFF.C:38
CHPFCRFF::_tol
const Real _tol
Definition: CHPFCRFF.h:40
CHPFCRFF::_c
const Real _c
Definition: CHPFCRFF.h:49
CHPFCRFF::computeQpJacobian
virtual Real computeQpJacobian()
Definition: CHPFCRFF.C:128
CHPFCRFF::_grad_vals
std::vector< const VariableGradient * > _grad_vals
Definition: CHPFCRFF.h:44
CHPFCRFF::_log_approach
const MooseEnum _log_approach
Definition: CHPFCRFF.h:39
CHPFCRFF::_has_MJac
const bool _has_MJac
Definition: CHPFCRFF.h:36
CHPFCRFF::computeQpResidual
virtual Real computeQpResidual()
Definition: CHPFCRFF.C:62
CHPFCRFF::_b
const Real _b
Definition: CHPFCRFF.h:48
CHPFCRFF::_num_L
const unsigned int _num_L
Definition: CHPFCRFF.h:42
CHPFCRFF::_a
const Real _a
Definition: CHPFCRFF.h:47
CHPFCRFF::_M
const MaterialProperty< Real > & _M
Definition: CHPFCRFF.h:35
CHPFCRFF
This kernel calculates the main portion of the cahn-hilliard residual for the RFF form of the phase f...
Definition: CHPFCRFF.h:24