https://mooseframework.inl.gov
WeightedAverageAux.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 "AuxKernel.h"
13 
24 {
25 public:
27 
28 protected:
29  virtual Real computeValue();
30 
31  const unsigned int _n_values;
32  std::vector<const VariableValue *> _values;
33  std::vector<const VariableValue *> _weights;
34 
35 public:
37 };
const unsigned int _n_values
static InputParameters validParams()
virtual Real computeValue()
std::vector< const VariableValue * > _weights
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< const VariableValue * > _values
Weighted average of an aux variable using another aux variable as the weights
const InputParameters & parameters() const
WeightedAverageAux(const InputParameters &parameters)