https://mooseframework.inl.gov
ElementUOProvider.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 "GeneralUserObject.h"
13 
14 // Forward Declarations
15 class InputParameters;
16 
24 {
25 public:
27 
29 
30  virtual unsigned long getElementalValueLong(dof_id_type /*element_id*/,
31  const std::string & /*field_name*/) const
32  {
33  mooseError(name(), " does not satisfy the getElementalValueLong interface");
34  }
35 
36  virtual Real getElementalValueReal(dof_id_type /*element_id*/,
37  const std::string & /*field_name*/) const
38  {
39  mooseError(name(), " does not satisfy the getElementalValueReal interface");
40  }
41 };
ElementUOProvider(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
static InputParameters validParams()
User object intermediate base class that declares an interface for providing generic fields by name...
virtual Real getElementalValueReal(dof_id_type, const std::string &) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
virtual unsigned long getElementalValueLong(dof_id_type, const std::string &) const
uint8_t dof_id_type