https://mooseframework.inl.gov
MisfitReporterOffsetFunctionMaterial.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 
13 
14 template <bool>
18 
23 template <bool is_ad>
25 {
26 public:
28 
30 
31 protected:
32  virtual void computeQpProperties() override;
33 
36 
39 
41  const std::vector<Real> & _measurement_values;
42 
43  Real computeWeighting(const Point & point_shift);
44 
54 };
GenericMaterialProperty< Real, is_ad > & _mat_prop_gradient
Gradient of misfit with respect to the simulation variable.
This class defines a material with an associated offset function.
MisfitReporterOffsetFunctionMaterialTempl< false > MisfitReporterOffsetFunctionMaterial
const GenericVariableValue< is_ad > & _sim_var
Simulation variable.
MisfitReporterOffsetFunctionMaterialTempl< true > ADMisfitReporterOffsetFunctionMaterial
Moose::GenericType< VariableValue, is_ad > GenericVariableValue
const std::vector< Real > & _measurement_values
values at each xyz coordinate
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
Real computeWeighting(const Point &point_shift)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
This class creates a misfit and misfit gradient material that can be used for optimizing measurements...