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