https://mooseframework.inl.gov
Loading...
Searching...
No Matches
R2IncrementToRate.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#ifdef NEML2_ENABLED
13
14#include "neml2/models/Model.h"
15
16namespace neml2
17{
18class R2;
19
21class R2IncrementToRate : public Model
22{
23public:
24 static OptionSet expected_options();
25
26 R2IncrementToRate(const OptionSet & options);
27
28protected:
29 void set_value(bool out, bool dout_din, bool d2out_din2) override;
30
32 const Variable<R2> & _delta;
33
35 const Variable<Scalar> & _t;
36 const Variable<Scalar> & _t_n;
37
39 Variable<R2> & _rate;
40};
41} // namespace neml2
42
43#endif // NEML2_ENABLED
Get the rate of a rank two tensor given its increment.
const Variable< Scalar > & _t_n
static OptionSet expected_options()
void set_value(bool out, bool dout_din, bool d2out_din2) override
Variable< R2 > & _rate
Rate.
const Variable< Scalar > & _t
Time.
const Variable< R2 > & _delta
Increment of the rank two tensor.