https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DiscreteElementUserObject.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
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
28
29void
33
34void
36{
37 mooseError("DiscreteElementUserObjects must be called explicitly from Materials");
38}
39
40void
42{
43 mooseError("DiscreteElementUserObjects must be called explicitly from Materials");
44}
45
46void
48{
49 mooseError("DiscreteElementUserObjects must be called explicitly from Materials");
50}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
const ExecFlagType EXEC_CUSTOM
Definition Moose.C:51
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void execute() override final
Block all methods that are not used in explicitly called UOs.
virtual void threadJoin(const UserObject &) override final
Must override.
DiscreteElementUserObject(const InputParameters &parameters)
virtual void finalize() override final
Finalize.
static InputParameters validParams()
static InputParameters validParams()
A MultiMooseEnum object to hold "execute_on" flags.
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't required or valid in the derived class...
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
Base class for user-specific data.
Definition UserObject.h:20