www.mooseframework.org
SideUserObject.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 
10 #include "SideUserObject.h"
11 #include "SubProblem.h"
12 #include "MooseTypes.h"
13 #include "Assembly.h"
14 
15 template <>
18 {
22  return params;
23 }
24 
26  : UserObject(parameters),
27  BoundaryRestrictableRequired(this, false), // false for applying to sidesets
28  MaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, boundaryIDs()),
29  Coupleable(this, false),
31  UserObjectInterface(this),
32  TransientInterface(this),
34  _mesh(_subproblem.mesh()),
35  _q_point(_assembly.qPointsFace()),
36  _qrule(_assembly.qRuleFace()),
37  _JxW(_assembly.JxWFace()),
38  _coord(_assembly.coordTransformation()),
39  _normals(_assembly.normals()),
40  _current_elem(_assembly.elem()),
41  _current_side(_assembly.side()),
42  _current_side_elem(_assembly.sideElem()),
43  _current_side_volume(_assembly.sideElemVolume())
44 {
45  // Keep track of which variables are coupled so we know what we depend on
46  const std::vector<MooseVariableFEBase *> & coupled_vars = getCoupledMooseVars();
47  for (const auto & var : coupled_vars)
49 }
InputParameters validParams< MaterialPropertyInterface >()
A class for requiring an object to be boundary restricted.
SideUserObject(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
Interface for objects that needs transient capabilities.
InputParameters validParams< UserObject >()
Definition: UserObject.C:18
Interface for objects that need to use UserObjects.
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:62
InputParameters validParams< SideUserObject >()
const std::set< SubdomainID > EMPTY_BLOCK_IDS
Definition: MooseTypes.h:451
An interface for accessing Materials.
const std::vector< MooseVariableFEBase * > & getCoupledMooseVars() const
Get the list of all coupled variables.
Definition: Coupleable.h:90
InputParameters validParams< BoundaryRestrictableRequired >()
Definition: Moose.h:112
Base class for user-specific data.
Definition: UserObject.h:37
Interface class for classes which interact with Postprocessors.