www.mooseframework.org
CoupledAllenCahn.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 "ACBulk.h"
13 
14 // Forward Declarations
15 class CoupledAllenCahn;
16 
17 template <>
18 InputParameters validParams<CoupledAllenCahn>();
19 
26 class CoupledAllenCahn : public ACBulk<Real>
27 {
28 public:
29  CoupledAllenCahn(const InputParameters & parameters);
30 
31  virtual void initialSetup();
32 
33 protected:
34  virtual Real computeDFDOP(PFFunctionType type);
35  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
36 
37  // coupled variable name
38  VariableName _v_name;
39 
40  const unsigned int _nvar;
41  const MaterialProperty<Real> & _dFdV;
42  const MaterialProperty<Real> & _d2FdVdEta;
43 
44  std::vector<const MaterialProperty<Real> *> _d2FdVdarg;
45 };
46 
CoupledAllenCahn::computeDFDOP
virtual Real computeDFDOP(PFFunctionType type)
Definition: CoupledAllenCahn.C:49
CoupledAllenCahn::_d2FdVdEta
const MaterialProperty< Real > & _d2FdVdEta
Definition: CoupledAllenCahn.h:42
ACBulk
This is the Allen-Cahn equation base class that implements the bulk or local energy term of the equat...
Definition: ACBulk.h:24
ACBulk.h
validParams< CoupledAllenCahn >
InputParameters validParams< CoupledAllenCahn >()
Definition: CoupledAllenCahn.C:16
CoupledAllenCahn
CoupledAllenCahn uses the Free Energy function and derivatives provided by a DerivativeParsedMaterial...
Definition: CoupledAllenCahn.h:26
CoupledAllenCahn::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: CoupledAllenCahn.C:64
CoupledAllenCahn::_nvar
const unsigned int _nvar
Definition: CoupledAllenCahn.h:40
CoupledAllenCahn::_v_name
VariableName _v_name
Definition: CoupledAllenCahn.h:38
CoupledAllenCahn::initialSetup
virtual void initialSetup()
Definition: CoupledAllenCahn.C:42
CoupledAllenCahn::_d2FdVdarg
std::vector< const MaterialProperty< Real > * > _d2FdVdarg
Definition: CoupledAllenCahn.h:44
CoupledAllenCahn::_dFdV
const MaterialProperty< Real > & _dFdV
Definition: CoupledAllenCahn.h:41
CoupledAllenCahn::CoupledAllenCahn
CoupledAllenCahn(const InputParameters &parameters)
Definition: CoupledAllenCahn.C:27
ACBulk< Real >::PFFunctionType
PFFunctionType
Definition: ACBulk.h:37