https://mooseframework.inl.gov
DivergenceAux.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 "AuxKernel.h"
13 
17 template <bool is_ad>
19 {
20 public:
22 
24 
25 protected:
26  virtual Real computeValue();
27 
28  // Component variable gradients
32 
36  const bool _use_qp_arg;
37 };
38 
const Moose::Functor< GenericReal< is_ad > > * _v
Definition: DivergenceAux.h:30
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DivergenceAuxTempl(const InputParameters &parameters)
Definition: DivergenceAux.C:32
Computes the divergence of a vector of variables.
Definition: DivergenceAux.h:18
DivergenceAuxTempl< false > DivergenceAux
Definition: DivergenceAux.h:39
const Moose::Functor< GenericReal< is_ad > > * _w
Definition: DivergenceAux.h:31
const Moose::Functor< GenericReal< is_ad > > & _u
Definition: DivergenceAux.h:29
virtual Real computeValue()
Compute and return the value of the aux variable.
Definition: DivergenceAux.C:43
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
DivergenceAuxTempl< true > ADDivergenceAux
Definition: DivergenceAux.h:40
const InputParameters & parameters() const
Get the parameters of the object.
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Definition: AuxKernel.h:36
const bool _use_qp_arg
Whether to use a quadrature-based functor argument, appropriate for finite element evaluations...
Definition: DivergenceAux.h:36
static InputParameters validParams()
Definition: DivergenceAux.C:18