https://mooseframework.inl.gov
ConstantMaterial.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 
18 {
19 public:
21 
22 protected:
23  virtual void computeQpProperties();
24 
25  const Real & _value;
26 
27  const MaterialPropertyName _property_name;
28 
30 
32  const unsigned int _n_derivative_vars;
33 
35  std::vector<const VariableValue *> _derivative_vars;
36 
38  std::vector<MaterialProperty<Real> *> _derivative_properties;
39 
40 public:
42 };
const Real & _value
const unsigned int _n_derivative_vars
Number of variables for which to create zero-valued property derivatives.
std::vector< MaterialProperty< Real > * > _derivative_properties
Derivatives of material property with respect to each variable.
static InputParameters validParams()
MaterialProperty< Real > & _property
ConstantMaterial(const InputParameters &parameters)
const MaterialPropertyName _property_name
std::vector< const VariableValue * > _derivative_vars
List of variables for which to create zero-valued property derivatives.
Constant material with zero-valued derivatives.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual void computeQpProperties()