www.mooseframework.org
CHPFCRFF.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef CHPFCRFF_H
9 #define CHPFCRFF_H
10 
11 #include "Kernel.h"
12 
13 // Forward Declarations
14 class CHPFCRFF;
15 
16 template <>
17 InputParameters validParams<CHPFCRFF>();
18 
23 class CHPFCRFF : public Kernel
24 {
25 public:
26  CHPFCRFF(const InputParameters & parameters);
27 
28 protected:
29  virtual Real computeQpResidual();
30  virtual Real computeQpJacobian();
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
32 
33 private:
34  const MaterialProperty<Real> & _M;
35  const bool _has_MJac;
36  const MaterialProperty<Real> * _DM;
37 
38  const MooseEnum _log_approach;
39  const Real _tol;
40 
41  const unsigned int _num_L;
42  std::vector<unsigned int> _vals_var;
43  std::vector<const VariableGradient *> _grad_vals;
44 
45  const unsigned int _n_exp_terms;
46  const Real _a;
47  const Real _b;
48  const Real _c;
49 };
50 
51 #endif // CHPFCRFF_H
const MaterialProperty< Real > * _DM
Definition: CHPFCRFF.h:36
const Real _a
Definition: CHPFCRFF.h:46
const MooseEnum _log_approach
Definition: CHPFCRFF.h:38
std::vector< unsigned int > _vals_var
Definition: CHPFCRFF.h:42
const unsigned int _n_exp_terms
Definition: CHPFCRFF.h:45
InputParameters validParams< CHPFCRFF >()
Definition: CHPFCRFF.C:13
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: CHPFCRFF.C:214
CHPFCRFF(const InputParameters &parameters)
Definition: CHPFCRFF.C:34
virtual Real computeQpJacobian()
Definition: CHPFCRFF.C:124
const Real _tol
Definition: CHPFCRFF.h:39
This kernel calculates the main portion of the cahn-hilliard residual for the RFF form of the phase f...
Definition: CHPFCRFF.h:23
const Real _b
Definition: CHPFCRFF.h:47
const Real _c
Definition: CHPFCRFF.h:48
std::vector< const VariableGradient * > _grad_vals
Definition: CHPFCRFF.h:43
const bool _has_MJac
Definition: CHPFCRFF.h:35
const unsigned int _num_L
Definition: CHPFCRFF.h:41
const MaterialProperty< Real > & _M
Definition: CHPFCRFF.h:34
virtual Real computeQpResidual()
Definition: CHPFCRFF.C:58