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