forked from idaholab/moose
/
VectorCoupledValuesMaterial.h
43 lines (35 loc) · 1.26 KB
/
VectorCoupledValuesMaterial.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#pragma once
#include "Material.h"
class VectorCoupledValuesMaterial;
template <>
InputParameters validParams<VectorCoupledValuesMaterial>();
/**
* A material that couples vector variable values and stores them into material properties
* This makes sure that everything is properly resized and can be indexed into.
*/
class VectorCoupledValuesMaterial : public Material
{
public:
VectorCoupledValuesMaterial(const InputParameters & parameters);
protected:
virtual void computeQpProperties() override;
const VectorVariableValue & _value;
const VectorVariableValue & _dot;
const VectorVariableValue & _dot_dot;
const VariableValue & _dot_du;
const VariableValue & _dot_dot_du;
const std::string & _var_name;
MaterialProperty<RealVectorValue> & _value_prop;
MaterialProperty<RealVectorValue> & _dot_prop;
MaterialProperty<RealVectorValue> & _dot_dot_prop;
MaterialProperty<Real> & _dot_du_prop;
MaterialProperty<Real> & _dot_dot_du_prop;
};