https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADWeightedAverageMaterial.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 ADMaterialProperty<Real> *> _values;
38 std::vector<const ADVariableValue *> _weights;
39
40public:
42};
Weighted average of material properties using aux variables as the weights.
static InputParameters validParams()
std::vector< const ADVariableValue * > _weights
Weights of the values.
ADMaterialProperty< Real > & _prop
The material property where the weighted average is stored.
std::vector< const ADMaterialProperty< Real > * > _values
Values to average.
const unsigned int _n_values
Number of components (i.e. values and weights)
const InputParameters & parameters() const