www.mooseframework.org
DiscreteElementUserObject.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
14 {
16 
17  // UOs of this type should not be executed by MOOSE, but only called directly by the user
18  params.set<ExecFlagEnum>("execute_on") = EXEC_CUSTOM;
19  params.suppressParameter<ExecFlagEnum>("execute_on");
20 
21  return params;
22 }
23 
25  : ElementUserObject(parameters)
26 {
27 }
28 
29 void
31 {
32 }
33 
34 void
36 {
37  mooseError("DiscreteElementUserObjects must be called explicitly from Materials");
38 }
39 
40 void
42 {
43  mooseError("DiscreteElementUserObjects must be called explicitly from Materials");
44 }
45 
46 void
48 {
49  mooseError("DiscreteElementUserObjects must be called explicitly from Materials");
50 }
A MultiMooseEnum object to hold "execute_on" flags.
Definition: ExecFlagEnum.h:21
const ExecFlagType EXEC_CUSTOM
Definition: Moose.C:41
static InputParameters validParams()
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
virtual void threadJoin(const UserObject &) override final
Must override.
DiscreteElementUserObject(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void suppressParameter(const std::string &name)
This method suppresses an inherited parameter so that it isn&#39;t required or valid in the derived class...
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
virtual void execute() override final
Block all methods that are not used in explicitly called UOs.
virtual void finalize() override final
Finalize.
static InputParameters validParams()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Base class for user-specific data.
Definition: UserObject.h:39