https://mooseframework.inl.gov
SubChannelAddInitialConditionsAction.h
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 #pragma once
11 
12 #include "Action.h"
13 #include "MooseTypes.h"
14 
19 {
20 public:
22 
24 
25  virtual void act() override;
26 
27 protected:
29  void addInitialCondition(const std::string & type,
30  const std::string & name,
31  const VariableName & var_name);
32 
34  bool hasInitialCondition(const VariableName & var_name) const;
35 };
void addInitialCondition(const std::string &type, const std::string &name, const VariableName &var_name)
Add an initial condition unless another IC already targets the variable.
const InputParameters & parameters() const
const std::string & name() const
Action that adds default SubChannel geometry initial conditions.
const std::string & type() const
SubChannelAddInitialConditionsAction(const InputParameters &parameters)
bool hasInitialCondition(const VariableName &var_name) const
Return whether any user-provided IC targets the variable.