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