https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearTestMaterial.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
13
27{
28public:
29 LinearTestMaterial(const InputParameters & parameters);
30
31protected:
32 virtual void computeQpProperties();
33
35 const unsigned int _n_vars;
36
38 std::vector<const VariableValue *> _vars;
39
41 const std::vector<Real> _slopes;
42
44 const Real _shift;
45
47 const MaterialPropertyName _y_name;
48
51
53 std::vector<MaterialProperty<Real> *> _y_derivatives;
54
55public:
57};
Computes a material property that is linear with respect to a list of aux variables.
const Real _shift
Shift constant: 'b' in 'y = m * x + b'.
std::vector< MaterialProperty< Real > * > _y_derivatives
Derivatives of material property with respect to each aux variable.
std::vector< const VariableValue * > _vars
List of aux variables the material property depends upon.
static InputParameters validParams()
const std::vector< Real > _slopes
Slopes with respect to the nonlinear variables.
virtual void computeQpProperties()
MaterialProperty< Real > & _y
Linear material property.
const MaterialPropertyName _y_name
Name of the new material property.
const unsigned int _n_vars
Number of aux variables the material property depends upon.