https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DerivativeMaterialPropertyNameInterface.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 "MooseTypes.h"
13#include "MooseError.h"
14
15#define usingDerivativeMaterialPropertyNameInterfaceMembers \
16 using DerivativeMaterialPropertyNameInterface::derivativePropertyName; \
17 using DerivativeMaterialPropertyNameInterface::derivativePropertyNameFirst; \
18 using DerivativeMaterialPropertyNameInterface::derivativePropertyNameSecond; \
19 using DerivativeMaterialPropertyNameInterface::derivativePropertyNameThird
20
22{
23public:
24 typedef std::string SymbolName;
25
30 const MaterialPropertyName derivativePropertyName(const MaterialPropertyName & base,
31 const std::vector<SymbolName> & c) const;
32
37 const MaterialPropertyName derivativePropertyNameFirst(const MaterialPropertyName & base,
38 const SymbolName & c1) const;
39
44 const MaterialPropertyName derivativePropertyNameSecond(const MaterialPropertyName & base,
45 const SymbolName & c1,
46 const SymbolName & c2) const;
47
52 const MaterialPropertyName derivativePropertyNameThird(const MaterialPropertyName & base,
53 const SymbolName & c1,
54 const SymbolName & c2,
55 const SymbolName & c3) const;
56
58 const MaterialPropertyName propertyName(const MaterialPropertyName & base,
59 const std::vector<SymbolName> & c) const
60 {
61 mooseDeprecated("This function was renamed to 'derivativePropertyName'");
62 return derivativePropertyName(base, c);
63 }
64 const MaterialPropertyName propertyNameFirst(const MaterialPropertyName & base,
65 const SymbolName & c1) const
66 {
67 mooseDeprecated("This function was renamed to 'derivativePropertyNameFirst'");
68 return derivativePropertyNameFirst(base, c1);
69 }
70 const MaterialPropertyName propertyNameSecond(const MaterialPropertyName & base,
71 const SymbolName & c1,
72 const SymbolName & c2) const
73 {
74 mooseDeprecated("This function was renamed to 'derivativePropertyNameSecond'");
75 return derivativePropertyNameSecond(base, c1, c2);
76 }
77 const MaterialPropertyName propertyNameThird(const MaterialPropertyName & base,
78 const SymbolName & c1,
79 const SymbolName & c2,
80 const SymbolName & c3) const
81 {
82 mooseDeprecated("This function was renamed to 'derivativePropertyNameThird'");
83 return derivativePropertyNameThird(base, c1, c2, c3);
84 }
86};
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition MooseError.h:363
const MaterialPropertyName derivativePropertyNameThird(const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
Helper functions to generate the material property names for the third derivatives.
const MaterialPropertyName propertyNameThird(const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
const MaterialPropertyName propertyNameSecond(const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
const MaterialPropertyName propertyName(const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
aliases for the deprecated old function names
const MaterialPropertyName derivativePropertyNameSecond(const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
Helper functions to generate the material property names for the second derivatives.
const MaterialPropertyName propertyNameFirst(const MaterialPropertyName &base, const SymbolName &c1) const
const MaterialPropertyName derivativePropertyNameFirst(const MaterialPropertyName &base, const SymbolName &c1) const
Helper functions to generate the material property names for the first derivatives.
const MaterialPropertyName derivativePropertyName(const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
Helper functions to generate the material property names for the arbitrary derivatives.