https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
19public:
20 ConstantMaterial(const InputParameters & parameters);
21
22protected:
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
40public:
42};
Constant material with zero-valued derivatives.
const unsigned int _n_derivative_vars
Number of variables for which to create zero-valued property derivatives.
std::vector< const VariableValue * > _derivative_vars
List of variables for which to create zero-valued property derivatives.
const Real & _value
const MaterialPropertyName _property_name
virtual void computeQpProperties()
std::vector< MaterialProperty< Real > * > _derivative_properties
Derivatives of material property with respect to each variable.
static InputParameters validParams()
MaterialProperty< Real > & _property