www.mooseframework.org
PiecewiseLinearInterpolationMaterial.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef PIECEWISELINEARINTERPOLATIONMATERIAL_H
16 #define PIECEWISELINEARINTERPOLATIONMATERIAL_H
17 
18 #include "Material.h"
19 #include "LinearInterpolation.h"
21 
22 // Forward Declarations
24 
25 template <>
27 
33 {
34 public:
36 
37 protected:
38  virtual void computeQpProperties() override;
39 
41  std::string _prop_name;
42 
45 
47  const Real _scale_factor;
48 
53 
55  std::unique_ptr<LinearInterpolation> _linear_interp;
56 };
57 
58 #endif // PIECEWISELINEARINTERPOLATIONMATERIAL_H
PiecewiseLinearInterpolationMaterial(const InputParameters &parameters)
MaterialProperty< Real > * _dproperty
First derivative of the material property wrt the coupled variable.
const VariableValue & _coupled_var
Value of the coupled variable to be used as the abscissa in the piecewise linear interpolation.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MaterialProperty< Real > * _property
Material property to be calculated.
std::unique_ptr< LinearInterpolation > _linear_interp
LinearInterpolation object.
This material uses a LinearInterpolation object to define the dependence of the material&#39;s value on a...
InputParameters validParams< PiecewiseLinearInterpolationMaterial >()
Interface class ("Veneer") to provide generator methods for derivative material property names...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual void computeQpProperties() override
Users must override this method.
std::string _prop_name
Name of the property to be computed.
const Real _scale_factor
Factor to scale the ordinate values by (default = 1)