https://mooseframework.inl.gov
FVInitialConditionBase.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 "FVInitialConditionBase.h"
11 #include "SystemBase.h"
12 #include "MooseVariableFE.h"
13 #include "UserObject.h"
14 
17 {
21 
22  params.addRequiredParam<VariableName>("variable",
23  "The variable this initial condition is "
24  "supposed to provide values for.");
25  params.registerBase("FVInitialCondition");
26 
27  return params;
28 }
29 
31  : MooseObject(parameters),
32  InitialConditionInterface(parameters),
33  BlockRestrictable(this),
34  FunctionInterface(this),
35  Restartable(this, "FVInitialConditionBases"),
38  _sys(*getCheckedPointerParam<SystemBase *>("_sys")),
39  _depend_vars(std::set<std::string>())
40 {
41  _supplied_vars.insert(getParam<VariableName>("variable"));
42 }
43 
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
A class for creating restricted objects.
Definition: Restartable.h:28
FVInitialConditionBase(const InputParameters &parameters)
Constructor.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for a system (of equations)
Definition: SystemBase.h:84
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
static InputParameters validParams()
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System...
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:28
InitialConditionInterface serves as the abstract class for InitialConditions, FVInitialConditions, and ScalarInitialConditions.
static InputParameters validParams()
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
Interface for sorting dependent vectors of objects.
static InputParameters validParams()
Definition: MooseObject.C:25
static InputParameters validParams()
std::set< std::string > _supplied_vars
Supplied variables.
Interface for objects that need to use functions.