https://mooseframework.inl.gov
ElementUserObject.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 
10 #include "ElementUserObject.h"
11 #include "MooseVariableFE.h"
12 #include "SubProblem.h"
13 #include "Assembly.h"
14 
15 #include "libmesh/elem.h"
16 
19 {
24  params += RandomInterface::validParams();
25  return params;
26 }
27 
29  : UserObject(parameters),
30  BlockRestrictable(this),
33  TransientInterface(this),
34  RandomInterface(parameters, _fe_problem, _tid, false),
35  ElementIDInterface(this),
36  _mesh(_subproblem.mesh()),
37  _current_elem(_assembly.elem()),
38  _current_elem_volume(_assembly.elemVolume()),
39  _q_point(_assembly.qPoints()),
40  _qrule(_assembly.qRule()),
41  _JxW(_assembly.JxW()),
42  _coord(_assembly.coordTransformation())
43 {
44 }
Interface for objects that need parallel consistent random numbers without patterns over the course o...
static InputParameters validParams()
MeshBase & mesh
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
static InputParameters validParams()
static InputParameters validParams()
Interface for objects that needs transient capabilities.
static InputParameters validParams()
An interface for accessing Materials.
const std::set< BoundaryID > EMPTY_BOUNDARY_IDS
Definition: MooseTypes.h:684
Intermediate base class that ties together all the interfaces for getting MooseVariableFEBases with t...
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
ElementUserObject(const InputParameters &parameters)
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
Base class for user-specific data.
Definition: UserObject.h:40
static InputParameters validParams()
Definition: UserObject.C:18