https://mooseframework.inl.gov
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 
16 namespace neml2
17 {
18 class R2;
19 
21 class R2IncrementToRate : public Model
22 {
23 public:
24  static OptionSet expected_options();
25 
26  R2IncrementToRate(const OptionSet & options);
27 
28 protected:
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
static OptionSet expected_options()
Variable< R2 > & _rate
Rate.
void set_value(bool out, bool dout_din, bool d2out_din2) override
const Variable< Scalar > & _t_n
R2IncrementToRate(const OptionSet &options)
OStreamProxy out
const Variable< Scalar > & _t
Time.
Get the rate of a rank two tensor given its increment.
const Variable< R2 > & _delta
Increment of the rank two tensor.