https://mooseframework.inl.gov
ElementOptimizationSourceFunctionInnerProduct.C
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 
11 
13 
16 {
18  params.addClassDescription("Computes the inner product of variable with parameterized source "
19  "function for optimization gradient computation.");
20  return params;
21 }
22 
24  const InputParameters & parameters)
26 {
27 }
28 
29 Real
31 {
32  return _var[_qp];
33 }
const VariableValue & _var
Quadrature point values of coupled MOOSE variables.
registerMooseObject("OptimizationApp", ElementOptimizationSourceFunctionInnerProduct)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
virtual Real computeQpInnerProduct() override
Used to compute the inner product at a certain quadrature point.