Panzer  Version of the Day
Panzer_Workset_Builder_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Panzer: A partial differential equation assembly
5 // engine for strongly coupled complex multiphysics systems
6 // Copyright (2011) Sandia Corporation
7 //
8 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 // the U.S. Government retains certain rights in this software.
10 //
11 // Redistribution and use in source and binary forms, with or without
12 // modification, are permitted provided that the following conditions are
13 // met:
14 //
15 // 1. Redistributions of source code must retain the above copyright
16 // notice, this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright
19 // notice, this list of conditions and the following disclaimer in the
20 // documentation and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of the Corporation nor the names of the
23 // contributors may be used to endorse or promote products derived from
24 // this software without specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 //
38 // Questions? Contact Roger P. Pawlowski (rppawlo@sandia.gov) and
39 // Eric C. Cyr (eccyr@sandia.gov)
40 // ***********************************************************************
41 // @HEADER
42 
43 
44 #ifndef CHARON_WORKSET_BUILDER_DECL_HPP
45 #define CHARON_WORKSET_BUILDER_DECL_HPP
46 
47 #include <vector>
48 #include <map>
49 
50 #include "Teuchos_RCP.hpp"
51 
52 #include "PanzerDiscFE_config.hpp"
53 #include "Panzer_WorksetNeeds.hpp"
54 
55 namespace shards {
56  class CellTopology;
57 }
58 
59 namespace panzer {
60 
61  struct Workset;
62  struct WorksetDetails;
63  class MeshData;
64  class BoundaryCondition;
65  class PhysicsBlock;
66  class BC;
67 
68  template<typename ArrayT>
70  buildWorksets(const PhysicsBlock & pb,
71  const std::vector<std::size_t>& local_cell_ids,
72  const ArrayT& vertex_coordinates);
73 
74  template<typename ArrayT>
76  buildWorksets(const WorksetNeeds & needs,
77  const std::string & elementBlock,
78  const std::vector<std::size_t>& local_cell_ids,
79  const ArrayT& vertex_coordinates);
80 
81  template<typename ArrayT>
83  buildBCWorkset(const PhysicsBlock & volume_pb,
84  const std::vector<std::size_t>& local_cell_ids,
85  const std::vector<std::size_t>& local_side_ids,
86  const ArrayT& vertex_coordinates);
87 
88  template<typename ArrayT>
90  buildBCWorkset(const WorksetNeeds & needs,
91  const std::string & elementBlock,
92  const std::vector<std::size_t>& local_cell_ids,
93  const std::vector<std::size_t>& local_side_ids,
94  const ArrayT& vertex_coordinates,
95  const bool populate_value_arrays = true);
96 
103  template<typename ArrayT>
105  buildEdgeWorksets(const PhysicsBlock & pb_a,
106  const std::vector<std::size_t>& local_cell_ids_a,
107  const std::vector<std::size_t>& local_side_ids_a,
108  const ArrayT& vertex_coordinates_a,
109  const PhysicsBlock & pb_b,
110  const std::vector<std::size_t>& local_cell_ids_b,
111  const std::vector<std::size_t>& local_side_ids_b,
112  const ArrayT& vertex_coordinates_b);
113 
114  template<typename ArrayT>
116  buildEdgeWorksets(const WorksetNeeds & needs_a,
117  const std::string & eblock_a,
118  const std::vector<std::size_t>& local_cell_ids_a,
119  const std::vector<std::size_t>& local_side_ids_a,
120  const ArrayT& vertex_coordinates_a,
121  const WorksetNeeds & needs_b,
122  const std::string & eblock_b,
123  const std::vector<std::size_t>& local_cell_ids_b,
124  const std::vector<std::size_t>& local_side_ids_b,
125  const ArrayT& vertex_coordinates_b);
126 
127  template<typename ArrayT>
128  std::vector<Workset>::iterator
129  buildEdgeWorksets(const std::vector<std::size_t> & cell_indices,
130  const PhysicsBlock & pb_a,
131  const std::vector<std::size_t>& local_cell_ids_a,
132  const std::vector<std::size_t>& local_side_ids_a,
133  const ArrayT& vertex_coordinates_a,
134  const PhysicsBlock & pb_b,
135  const std::vector<std::size_t>& local_cell_ids_b,
136  const std::vector<std::size_t>& local_side_ids_b,
137  const ArrayT& vertex_coordinates_b,
138  std::vector<Workset>::iterator beg);
139 
140  template<typename ArrayT>
141  std::vector<Workset>::iterator
142  buildEdgeWorksets(const std::vector<std::size_t> & cell_indices,
143  const WorksetNeeds & needs_a,
144  const std::string & eblock_a,
145  const std::vector<std::size_t>& local_cell_ids_a,
146  const std::vector<std::size_t>& local_side_ids_a,
147  const ArrayT& vertex_coordinates_a,
148  const WorksetNeeds & needs_b,
149  const std::string & eblock_b,
150  const std::vector<std::size_t>& local_cell_ids_b,
151  const std::vector<std::size_t>& local_side_ids_b,
152  const ArrayT& vertex_coordinates_b,
153  std::vector<Workset>::iterator beg);
154 
155  template<typename ArrayT>
158  const std::vector<std::size_t>& local_cell_ids_a,
159  const std::vector<std::size_t>& local_side_ids_a,
160  const ArrayT& vertex_coordinates_a,
161  const panzer::PhysicsBlock& pb_b,
162  const std::vector<std::size_t>& local_cell_ids_b,
163  const std::vector<std::size_t>& local_side_ids_b,
164  const ArrayT& vertex_coordinates_b);
165 
182  void populateValueArrays(std::size_t num_cells,
183  bool isSide,
184  const PhysicsBlock & pb,
185  WorksetDetails & details,
186  const Teuchos::RCP<WorksetDetails> other_details = Teuchos::null);
187  void populateValueArrays(std::size_t num_cells,
188  bool isSide,
189  const WorksetNeeds & pb,
190  WorksetDetails & details,
191  const Teuchos::RCP<WorksetDetails> other_details = Teuchos::null);
192 
193 }
194 
195 #endif
Teuchos::RCP< std::map< unsigned, Workset > > buildBCWorkset(const PhysicsBlock &volume_pb, const std::vector< std::size_t > &local_cell_ids, const std::vector< std::size_t > &local_side_ids, const ArrayT &vertex_coordinates)
Object that contains information on the physics and discretization of a block of elements with the SA...
Teuchos::RCP< std::vector< Workset > > buildEdgeWorksets(const PhysicsBlock &pb_a, const std::vector< std::size_t > &local_cell_ids_a, const std::vector< std::size_t > &local_side_ids_a, const ArrayT &vertex_coordinates_a, const PhysicsBlock &pb_b, const std::vector< std::size_t > &local_cell_ids_b, const std::vector< std::size_t > &local_side_ids_b, const ArrayT &vertex_coordinates_b)
Teuchos::RCP< std::vector< Workset > > buildWorksets(const PhysicsBlock &pb, const std::vector< std::size_t > &local_cell_ids, const ArrayT &vertex_coordinates)
void populateValueArrays(std::size_t num_cells, bool isSide, const WorksetNeeds &needs, WorksetDetails &details, const Teuchos::RCP< WorksetDetails > other_details)