https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
15class InputParameters;
16
24{
25public:
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};
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
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
static InputParameters validParams()
virtual unsigned long getElementalValueLong(dof_id_type, const std::string &) const
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
const std::string & name() const
Get the name of the class.
Definition MooseBase.h:103