https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
20class InitialConditionWarehouse : public MooseObjectWarehouseBase<InitialConditionBase>
21{
22public:
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
41protected:
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};
unsigned int THREAD_ID
Definition MooseTypes.h:237
InitialConditionBase serves as the abstract base class for InitialConditions and VectorInitialConditi...
Warehouse for storing initial conditions.
std::set< std::string > getDependObjects() const
Get a list of dependent UserObjects for this exec type.
std::tuple< VariableName, unsigned short > ic_key_type
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
void initialSetup(THREAD_ID tid)
Initial setup.
std::vector< std::map< ic_key_type, std::set< BoundaryID > > > _boundary_ics
A base storage container for MooseObjects.