https://mooseframework.inl.gov
InitialConditionWarehouse.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 
13 #include "MooseTypes.h"
14 
16 
20 class InitialConditionWarehouse : public MooseObjectWarehouseBase<InitialConditionBase>
21 {
22 public:
24 
28  void initialSetup(THREAD_ID tid);
29 
33  void addObject(std::shared_ptr<InitialConditionBase> object, THREAD_ID tid, bool recurse = true);
34 
39  std::set<std::string> getDependObjects() const;
40 
41 protected:
48  using ic_key_type = std::tuple<VariableName, unsigned short>;
49  std::vector<std::map<ic_key_type, std::set<BoundaryID>>> _boundary_ics;
50  std::vector<std::map<ic_key_type, std::set<SubdomainID>>> _block_ics;
52 };
Warehouse for storing initial conditions.
InitialConditionBase serves as the abstract base class for InitialConditions and VectorInitialConditi...
void initialSetup(THREAD_ID tid)
Initial setup.
void addObject(std::shared_ptr< InitialConditionBase > object, THREAD_ID tid, bool recurse=true)
Add object to the warehouse.
std::vector< std::map< ic_key_type, std::set< SubdomainID > > > _block_ics
std::vector< std::map< ic_key_type, std::set< BoundaryID > > > _boundary_ics
std::set< std::string > getDependObjects() const
Get a list of dependent UserObjects for this exec type.
std::tuple< VariableName, unsigned short > ic_key_type
A base storage container for MooseObjects.
unsigned int THREAD_ID
Definition: MooseTypes.h:209