https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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),
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 that restricts an object to subdomains via the 'blocks' input parameter.
static InputParameters validParams()
Interface for sorting dependent vectors of objects.
FVInitialConditionBase(const InputParameters &parameters)
Constructor.
std::set< std::string > _supplied_vars
Supplied variables.
static InputParameters validParams()
Interface for objects that need to use functions.
InitialConditionInterface serves as the abstract class for InitialConditions, FVInitialConditions,...
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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...
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:31
static InputParameters validParams()
Definition MooseObject.C:25
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
A class for creating restricted objects.
Definition Restartable.h:29
Base class for a system (of equations)
Definition SystemBase.h:87