www.mooseframework.org
ElementUserObject.h
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 
10 #pragma once
11 
12 // MOOSE includes
13 #include "UserObject.h"
14 #include "BlockRestrictable.h"
16 #include "Coupleable.h"
18 #include "TransientInterface.h"
19 #include "RandomInterface.h"
20 #include "ElementIDInterface.h"
21 
22 namespace libMesh
23 {
24 class Elem;
25 class QBase;
26 }
27 
29  public BlockRestrictable,
31  public Coupleable,
33  public TransientInterface,
34  public RandomInterface,
35  public ElementIDInterface
36 {
37 public:
39 
41 
42 protected:
44 
46  const Elem * const & _current_elem;
47 
50 
52  const QBase * const & _qrule;
55 };
Interface for objects that need parallel consistent random numbers without patterns over the course o...
const MooseArray< Point > & _q_point
const MooseArray< Real > & _coord
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
const Real & _current_elem_volume
The current element volume (available during execute())
Interface for objects that needs transient capabilities.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:88
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:45
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const QBase *const & _qrule
const Elem *const & _current_elem
The current element pointer (available during execute())
An interface for accessing Materials.
const MooseArray< Real > & _JxW
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
ElementUserObject(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
Base class for user-specific data.
Definition: UserObject.h:39