https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SecondDerivativeRegularization.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://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
10#pragma once
11
12#include "GenericKernel.h"
13
15{
16 Huhu = 0,
17 Lulu = 1,
18 HuhuLulu = 2
19};
20
25template <bool is_ad>
54
Moose::GenericType< VariableSecond, is_ad > GenericVariableSecond
Moose::GenericType< Real, is_ad > GenericReal
OutputTools< Real >::VariableTestSecond VariableTestSecond
OutputTools< Real >::VariablePhiSecond VariablePhiSecond
const InputParameters & parameters() const
Adds regularization terms based on Hessian and Laplacian contractions of a scalar nonlinear variable.
const GenericVariableSecond< is_ad > & _second_u
Second derivatives of the nonlinear variable.
const unsigned int _dim
Mesh dimension used for the default LuLu factor.
const VariableTestSecond & _second_test
Second derivatives of test functions.
virtual GenericReal< is_ad > computeQpResidual() override
const Real _lulu_factor
LuLu correction factor used only by HuHu-LuLu.
const VariablePhiSecond & _second_phi
Second derivatives of trial functions used by the hand-coded Jacobian.
const SecondDerivativeRegularizationType _regularization_type
Selected regularization contraction.
const Real _coefficient
User coefficient multiplying the selected regularization term.