www.mooseframework.org
AddVariableAction.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 "Action.h"
14 #include "OutputInterface.h"
15 
16 #include "libmesh/fe_type.h"
17 
18 // Forward declerations
19 class AddVariableAction;
20 
21 template <>
23 
28 {
29 public:
34 
35  virtual void act() override;
36 
42 
48 
49 protected:
55  void addVariable(const std::string & var_name);
56 
64 
69  std::set<SubdomainID> getSubdomainIDs();
70 
72  FEType _fe_type;
73 
76 
78  static const Real _abs_zero_tol;
79 };
80 
AddVariableAction(InputParameters params)
Class constructor.
InputParameters validParams< AddVariableAction >()
std::set< SubdomainID > getSubdomainIDs()
Get the block ids from the input parameters.
bool _scalar_var
True if the variable being created is a scalar.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
Adds nonlinear variable.
FEType _fe_type
FEType for the variable being created.
A class to provide an common interface to objects requiring "outputs" option.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:35
static MooseEnum getNonlinearVariableFamilies()
Get the possible variable families.
static MooseEnum getNonlinearVariableOrders()
Get the possible variable orders.
static const Real _abs_zero_tol
Absolute zero tolerance.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:31
void addVariable(const std::string &var_name)
Adds a nonlinear variable to the system.
void createInitialConditionAction()
Create the action to generate the InitialCondition object.