https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADPenaltyDirichletBC.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 "ADIntegratedBC.h"
13
35{
36public:
38
40
41protected:
42 virtual ADReal computeQpResidual() override;
43
44private:
46 const Real _p;
47
49 const Real & _v;
50};
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for deriving any boundary condition of a integrated type.
Weakly enforce a Dirichlet BC using a penalty term.
static InputParameters validParams()
const Real & _v
Value of u on the boundary.
const Real _p
Penalty value.
virtual ADReal computeQpResidual() override
Compute this IntegratedBC's contribution to the residual at the current quadrature point.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131