www.mooseframework.org
MaterialWarehouse.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 // MOOSE includes
16 #include "MaterialWarehouse.h"
17 #include "Material.h"
18 
19 void
20 MaterialWarehouse::addObjects(std::shared_ptr<Material> block,
21  std::shared_ptr<Material> neighbor,
22  std::shared_ptr<Material> face,
23  THREAD_ID tid /*=0*/)
24 {
26  _neighbor_materials.addObject(neighbor, tid);
27  _face_materials.addObject(face, tid);
28 }
29 
32 {
33  switch (data_type)
34  {
36  return _neighbor_materials;
37  break;
39  return _face_materials;
40  break;
41  default:
42  return *this;
43  }
44 }
45 
46 void
48 {
52 }
53 
54 void
56 {
60 }
61 
62 void
64 {
67 }
68 
69 void
71 {
73 }
74 
75 void
77 {
80 }
81 
82 void
84 {
86 }
87 
88 void
90 {
94 }
95 
96 void
98 {
102 }
103 
104 void
106 {
110 }
111 
112 void
114 {
117  _face_materials.sort(tid);
118 }
void sort(THREAD_ID tid=0)
Sort the objects using the DependencyResolver.
const MooseObjectWarehouse< Material > & operator[](Moose::MaterialDataType data_type) const
subdomain_id_type SubdomainID
Definition: MooseTypes.h:77
virtual void subdomainSetup(THREAD_ID tid=0) const
MaterialDataType
MaterialData types.
Definition: MooseTypes.h:129
virtual void jacobianSetup(THREAD_ID tid=0) const
virtual void addObject(std::shared_ptr< T > object, THREAD_ID tid=0)
Adds an object to the storage structure.
virtual void timestepSetup(THREAD_ID tid=0) const
virtual void initialSetup(THREAD_ID tid=0) const
Convenience methods for calling object setup methods that handle the extra neighbor and face objects...
MooseObjectWarehouse< Material > _neighbor_materials
Stroage for neighbor material objects (Block are stored in the base class)
virtual void timestepSetup(THREAD_ID tid=0) const
virtual void jacobianSetup(THREAD_ID tid=0) const
virtual void initialSetup(THREAD_ID tid=0) const
Convenience methods for calling object setup methods.
virtual void updateActive(THREAD_ID tid=0)
Updates the active objects storage.
virtual void residualSetup(THREAD_ID tid=0) const
void sort(THREAD_ID tid=0)
MooseObjectWarehouse< Material > _face_materials
Stroage for face material objects (Block are stored in the base class)
void addObjects(std::shared_ptr< Material > block, std::shared_ptr< Material > neighbor, std::shared_ptr< Material > face, THREAD_ID tid=0)
A special method unique to this class for adding Block, Neighbor, and Face material objects...
virtual void neighborSubdomainSetup(THREAD_ID tid=0) const
virtual void subdomainSetup(THREAD_ID tid=0) const
virtual void updateActive(THREAD_ID tid=0)
Updates the active objects storage.
unsigned int THREAD_ID
Definition: MooseTypes.h:79
virtual void residualSetup(THREAD_ID tid=0) const