www.mooseframework.org
DerivativeMaterialPropertyNameInterface.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "MooseTypes.h"
13 #include "MooseError.h"
14 
16 {
17 public:
22  const MaterialPropertyName derivativePropertyName(const MaterialPropertyName & base,
23  const std::vector<VariableName> & c) const;
24 
29  const MaterialPropertyName derivativePropertyNameFirst(const MaterialPropertyName & base,
30  const VariableName & c1) const;
31 
36  const MaterialPropertyName derivativePropertyNameSecond(const MaterialPropertyName & base,
37  const VariableName & c1,
38  const VariableName & c2) const;
39 
44  const MaterialPropertyName derivativePropertyNameThird(const MaterialPropertyName & base,
45  const VariableName & c1,
46  const VariableName & c2,
47  const VariableName & c3) const;
48 
50  const MaterialPropertyName propertyName(const MaterialPropertyName & base,
51  const std::vector<VariableName> & c) const
52  {
53  mooseDeprecated("This function was renamed to 'derivativePropertyName'");
54  return derivativePropertyName(base, c);
55  }
56  const MaterialPropertyName propertyNameFirst(const MaterialPropertyName & base,
57  const VariableName & c1) const
58  {
59  mooseDeprecated("This function was renamed to 'derivativePropertyNameFirst'");
60  return derivativePropertyNameFirst(base, c1);
61  }
62  const MaterialPropertyName propertyNameSecond(const MaterialPropertyName & base,
63  const VariableName & c1,
64  const VariableName & c2) const
65  {
66  mooseDeprecated("This function was renamed to 'derivativePropertyNameSecond'");
67  return derivativePropertyNameSecond(base, c1, c2);
68  }
69  const MaterialPropertyName propertyNameThird(const MaterialPropertyName & base,
70  const VariableName & c1,
71  const VariableName & c2,
72  const VariableName & c3) const
73  {
74  mooseDeprecated("This function was renamed to 'derivativePropertyNameThird'");
75  return derivativePropertyNameThird(base, c1, c2, c3);
76  }
78 };
79 
const MaterialPropertyName derivativePropertyNameSecond(const MaterialPropertyName &base, const VariableName &c1, const VariableName &c2) const
Helper functions to generate the material property names for the second derivatives.
const MaterialPropertyName propertyNameThird(const MaterialPropertyName &base, const VariableName &c1, const VariableName &c2, const VariableName &c3) const
const MaterialPropertyName propertyName(const MaterialPropertyName &base, const std::vector< VariableName > &c) const
aliases for the deprecated old function names
const MaterialPropertyName propertyNameFirst(const MaterialPropertyName &base, const VariableName &c1) const
const MaterialPropertyName propertyNameSecond(const MaterialPropertyName &base, const VariableName &c1, const VariableName &c2) const
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition: MooseError.h:236
const MaterialPropertyName derivativePropertyNameThird(const MaterialPropertyName &base, const VariableName &c1, const VariableName &c2, const VariableName &c3) const
Helper functions to generate the material property names for the third derivatives.
const MaterialPropertyName derivativePropertyName(const MaterialPropertyName &base, const std::vector< VariableName > &c) const
Helper functions to generate the material property names for the arbitrary derivatives.
const MaterialPropertyName derivativePropertyNameFirst(const MaterialPropertyName &base, const VariableName &c1) const
Helper functions to generate the material property names for the first derivatives.