https://mooseframework.inl.gov
ADPrefactorLaplacianSplit.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.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 
11 
13 
16 {
18  params.addClassDescription("Laplacian split with a prefactor.");
19  params.addRequiredParam<Real>("prefactor", "prefactor of the Laplacian operator");
20  params.addParam<MaterialPropertyName>("density_value", "1.0", "density of the fluid mixture");
21  return params;
22 }
23 
25  : ADLaplacianSplit(parameters),
26  _prefactor(getParam<Real>("prefactor")),
27  _rho_val(getADMaterialProperty<Real>("density_value"))
28 {
29 }
30 
33 {
35 }
virtual ADRealGradient precomputeQpResidual() override
Split with a variable that holds the Laplacian of the phase field.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
virtual ADRealGradient precomputeQpResidual()
registerMooseObject("PhaseFieldApp", ADPrefactorLaplacianSplit)
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
ADPrefactorLaplacianSplit(const InputParameters &parameters)
static InputParameters validParams()
const ADMaterialProperty< Real > & _rho_val
unsigned int _qp
Split with a variable that holds the Laplacian of the phase field with a constant prefactor...