https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADDirichletBCBaseTempl.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 "ADDirichletBCBase.h"
13#include "ADNodalBC.h"
14
18template <typename T>
19class ADDirichletBCBaseTempl : public ADNodalBCTempl<T, ADDirichletBCBase>
20{
21public:
23
27 virtual void computeValue(NumericVector<Number> & current_solution) override;
28
30
31protected:
32 virtual typename Moose::ADType<T>::type computeQpResidual() override;
33
37 virtual typename Moose::ADType<T>::type computeQpValue() = 0;
38
45};
Base class for automatic differentiation Dirichlet BCs.
virtual Moose::ADType< T >::type computeQpValue()=0
Compute the value of the Dirichlet BC at the current quadrature point.
virtual void computeValue(NumericVector< Number > &current_solution) override
Method to preset the nodal value if applicable.
virtual Moose::ADType< T >::type computeQpResidual() override
Compute this NodalBC's contribution to the residual at the current quadrature point.
static InputParameters validParams()
Base class for automatic differentiation Dirichlet BCs.
Base class for deriving any automatic differentiation boundary condition of a integrated type.
Definition ADNodalBC.h:22
const Moose::ADType< T >::type & _u
Value of the unknown variable this BC is acting on.
Definition ADNodalBC.h:48
bool shouldSetComp(unsigned short i) const
Definition ADNodalBC.h:30
MooseVariableFE< T > & _var
The variable that this NodalBC operates on.
Definition ADNodalBC.h:39
const Node *const & _current_node
current node being processed
Definition ADNodalBC.h:42
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
SystemBase & _sys
Reference to the EquationSystem object.