https://mooseframework.inl.gov
Loading...
Searching...
No Matches
WeightedAverageMaterial.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
12#include "Material.h"
13
24{
25public:
27
28protected:
29 virtual void computeQpProperties();
30
34 const unsigned int _n_values;
36 std::vector<const MaterialProperty<Real> *> _values;
38 std::vector<const VariableValue *> _weights;
39
40public:
42};
const InputParameters & parameters() const
Weighted average of material properties using aux variables as the weights.
const unsigned int _n_values
Number of components (i.e. values and weights)
MaterialProperty< Real > & _prop
The material property where the weighted average is stored.
static InputParameters validParams()
std::vector< const MaterialProperty< Real > * > _values
Values to average.
std::vector< const VariableValue * > _weights
Weights of the values.