https://mooseframework.inl.gov
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 {
28 public:
30 
31 protected:
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 
55 public:
57 };
const MaterialPropertyName _y_name
Name of the new material property.
std::vector< MaterialProperty< Real > * > _y_derivatives
Derivatives of material property with respect to each aux variable.
virtual void computeQpProperties()
std::vector< const VariableValue * > _vars
List of aux variables the material property depends upon.
const std::vector< Real > _slopes
Slopes with respect to the nonlinear variables.
LinearTestMaterial(const InputParameters &parameters)
const Real _shift
Shift constant: &#39;b&#39; in &#39;y = m * x + b&#39;.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
static InputParameters validParams()
MaterialProperty< Real > & _y
Linear material property.
Computes a material property that is linear with respect to a list of aux variables.
const unsigned int _n_vars
Number of aux variables the material property depends upon.