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 "GeneralUserObject.h" 13 : #include "Function.h" 14 : 15 : /** 16 : * 17 : */ 18 : class SolidMaterialProperties : public GeneralUserObject 19 : { 20 : public: 21 : SolidMaterialProperties(const InputParameters & parameters); 22 : 23 : virtual void initialize(); 24 : virtual void finalize(); 25 : virtual void execute(); 26 : 27 : ADReal k(const ADReal & temp) const; 28 : ADReal cp(const ADReal & temp) const; 29 : ADReal rho(const ADReal & temp) const; 30 : 31 72 : const Function & getKFunction() const { return _k; } 32 72 : const Function & getCpFunction() const { return _cp; } 33 72 : const Function & getRhoFunction() const { return _rho; } 34 : 35 : protected: 36 : const Function & _k; 37 : const Function & _cp; 38 : const Function & _rho; 39 : 40 : public: 41 : static InputParameters validParams(); 42 : };