www.mooseframework.org
CHSplitConcentration.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 #ifndef CHSPLITCONCENTRATION_H
8 #define CHSPLITCONCENTRATION_H
9 
10 #include "Kernel.h"
11 #include "DerivativeMaterialInterface.h"
12 
14 
15 template <>
16 InputParameters validParams<CHSplitConcentration>();
17 
22 class CHSplitConcentration : public DerivativeMaterialInterface<Kernel>
23 {
24 public:
25  CHSplitConcentration(const InputParameters & parameters);
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int);
31 
33  MaterialPropertyName _mobility_name;
34 
35  const MaterialProperty<RealTensorValue> & _mobility;
36  const MaterialProperty<RealTensorValue> & _dmobility_dc;
37 
39  const unsigned int _mu_var;
40  const VariableGradient & _grad_mu;
41 };
42 
43 #endif
const MaterialProperty< RealTensorValue > & _mobility
virtual Real computeQpResidual()
const MaterialProperty< RealTensorValue > & _dmobility_dc
Solves Cahn-Hilliard equation using chemical potential as non-linear variable.
const VariableGradient & _grad_mu
CHSplitConcentration(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned int)
const unsigned int _mu_var
Chemical potential variable.
InputParameters validParams< CHSplitConcentration >()
MaterialPropertyName _mobility_name
Mobility property name.
virtual Real computeQpJacobian()