https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
registerMooseObject("PhaseFieldApp", ADPrefactorLaplacianSplit)
Split with a variable that holds the Laplacian of the phase field.
virtual ADRealGradient precomputeQpResidual()
static InputParameters validParams()
Split with a variable that holds the Laplacian of the phase field with a constant prefactor.
virtual ADRealGradient precomputeQpResidual() override
const ADMaterialProperty< Real > & _rho_val
static InputParameters validParams()
ADPrefactorLaplacianSplit(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp