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#if 0 // NEML2 v2->v3 migration: superseded by the Python model
10 // modules/solid_mechanics/data/neml2/R2IncrementToRate.py (loaded via the NEML2Action 'load'
11 // parameter)
12
13#pragma once
14
15#ifdef NEML2_ENABLED
16
17#include "neml2/models/Model.h"
18
19namespace neml2
20{
21class R2;
22
24class R2IncrementToRate : public Model
25{
26public:
27 static OptionSet expected_options();
28
29 R2IncrementToRate(const OptionSet & options);
30
31protected:
32 void set_value(bool out, bool dout_din, bool d2out_din2) override;
33
35 const Variable<R2> & _delta;
36
38 const Variable<Scalar> & _t;
39 const Variable<Scalar> & _t_n;
40
42 Variable<R2> & _rate;
43};
44} // namespace neml2
45
46#endif // NEML2_ENABLED
47
48#endif // NEML2 v2->v3 migration: DEFERRED
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.