www.mooseframework.org
DistributionInterface.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef DISTRIBUTIONINTERFACE_H
16 #define DISTRIBUTIONINTERFACE_H
17 
18 #include "ParallelUniqueId.h"
19 #include "InputParameters.h"
20 #include "FEProblemBase.h"
21 
22 // Forward declarations
23 class Distribution;
25 
26 template <>
28 
36 {
37 public:
44  DistributionInterface(const MooseObject * moose_object);
45 
51  Distribution & getDistribution(const std::string & name);
52 
58  Distribution & getDistributionByName(const DistributionName & name);
59 
60 private:
63 
66 };
67 
68 #endif /* DISTRIBUTIONINTERFACE_H */
DistributionInterface(const MooseObject *moose_object)
Distribution & getDistribution(const std::string &name)
Get a distribution with a given name.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
All Distributions should inherit from this class.
Definition: Distribution.h:28
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Distribution & getDistributionByName(const DistributionName &name)
Get a distribution with a given name.
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:36
Interface for objects that need to use distributions.
InputParameters validParams< DistributionInterface >()
FEProblemBase & _dni_feproblem
Reference to FEProblemBase instance.
const InputParameters & _dni_params
Parameters of the object with this interface.