Line data Source code
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 "DerivativeParsedMaterialHelper.h" 13 : #include "ParsedMaterialBase.h" 14 : 15 : /** 16 : * Class to evaluate a parsed function (for example a free energy) and automatically 17 : * provide all derivatives. 18 : */ 19 : template <bool is_ad> 20 : class DerivativeParsedMaterialTempl : public DerivativeParsedMaterialHelperTempl<is_ad>, 21 : public ParsedMaterialBase 22 : { 23 : public: 24 : static InputParameters validParams(); 25 : 26 : DerivativeParsedMaterialTempl(const InputParameters & parameters); 27 : 28 : usingDerivativeParsedMaterialHelperMembers(is_ad); 29 : 30 : protected: 31 0 : virtual void resetQpProperties() override {} 32 : }; 33 : 34 : typedef DerivativeParsedMaterialTempl<false> DerivativeParsedMaterial; 35 : typedef DerivativeParsedMaterialTempl<true> ADDerivativeParsedMaterial;