https://mooseframework.inl.gov
MatBodyForce.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 "BodyForce.h"
13 #include "JvarMapInterface.h"
15 
21 template <bool is_ad, class Parent>
22 class MatBodyForceTempl : public Parent
23 {
24 public:
26 
27  MatBodyForceTempl(const InputParameters & parameters);
28 
29 protected:
30  virtual GenericReal<is_ad> computeQpResidual() override;
31 
33 
35 };
36 
37 using MatBodyForceParent =
39 
41 {
42 public:
43  MatBodyForce(const InputParameters & parameters);
44  virtual void initialSetup() override;
45 
46 protected:
47  virtual Real computeQpJacobian() override;
48  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
49 
52 
54  std::vector<const MaterialProperty<Real> *> _dpropertydarg;
55 };
56 
Moose::GenericType< Real, is_ad > GenericReal
Definition: MooseTypes.h:648
virtual GenericReal< is_ad > computeQpResidual() override
Definition: MatBodyForce.C:35
MatBodyForceTempl(const InputParameters &parameters)
Definition: MatBodyForce.C:27
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
Definition: MatBodyForce.C:63
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const MaterialProperty< Real > & _dpropertydv
derivative of the property wrt the kernel&#39;s nonlinear variable
Definition: MatBodyForce.h:51
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
virtual void initialSetup() override
Definition: MatBodyForce.C:51
This kernel creates a body force that is modified by a mask defined as a material.
Definition: MatBodyForce.h:22
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
Definition: MatBodyForce.C:17
MatBodyForce(const InputParameters &parameters)
Definition: MatBodyForce.C:40
std::vector< const MaterialProperty< Real > * > _dpropertydarg
Reaction rate derivatives w.r.t. other coupled variables.
Definition: MatBodyForce.h:54
virtual Real computeQpJacobian() override
Definition: MatBodyForce.C:57
const GenericMaterialProperty< Real, is_ad > & _property
Definition: MatBodyForce.h:32