Flow123d  master-f44eb46
assembly_theory.hh
Go to the documentation of this file.
1 /*
2  * assembly_theory.hh
3  *
4  * Created on: Apr 30, 2016
5  * Author: jb
6  */
7 
8 #ifndef SRC_FLOW_ASSEMBLY_THEORY_HH_
9 #define SRC_FLOW_ASSEMBLY_THEORY_HH_
10 
11 /**
12  * @file
13  * Conceptual scheme of Assembly classes.
14  *
15  * TODO:
16  * - passing data between classes
17  * - equations derive code and data
18  * - assembly residual and assembly jacobian
19  */
20 
21 
23 
24 };
25 
26 template <class ImplAL>
33 
34  // interface for descendants
35 
36 
37 };
38 
39 
40 
41 
42 /**
43  * Class that groups the mesh entities (mainly elements) into
44  * local groups that should fit into the cache with all necessary data.
45  * Assembly of one group may involve few virtual calls, and may involve more cycles, since
46  * these are local in the cache.
47  * Group assembly scheme:
48  * 1. generate quadrature points, make subgroups by region (partly VECTORISE)
49  * 2. precompute field values in quadrature points (may involve various dependencies)
50  * single virtual call per involved field per subgroup (VECTORISE)
51  * 3. assembly element integrals per dim (VECTORISE)
52  * 4. assembly edge integrals per dim (VECTORISE)
53  * 5. assembly boundary integrals
54  */
55 class Assembler {
59  : group_assemblers_(assembly_vec_)
60  {}
61 
62 
63 };
64 
65 /********************** Equations examples ********************/
66 
67 
68 class FlowMHData : public FieldSet {
69 
70 };
71 
72 template <int dim>
73 class FlowMHAssembly : public AssemblyGroupBase< SomeEqAssembly<dim> > {
74  FlowMHAssembly(std::shared_ptr<FlowMHData> data);
75  std::shared_ptr<FlowMHData> data_;
76 };
77 
78 class FlowMHEq : public EquationBase {
80 
81  }
82 };
83 
84 /********** Derived equation **********/
85 
86 class FlowLMHData : public FlowMHData {
87 
88 };
89 
90 template <int dim>
91 class FlowLMHAssembly : public AssemblyGroupBase< SomeEqAssembly<dim> > {
92  FlowLMHAssembly(std::shared_ptr<FlowLMHData> data)
93  :FlowMHAssembly(data)
94  {}
95 
97 
99 
100  std::shared_ptr<FlowLMHData> data_;
101 };
102 
103 class FlowLMHEq : public EquationBase {
105 
106  }
107 };
108 
109 
110 #endif /* SRC_FLOW_ASSEMBLY_THEORY_HH_ */
MultidimGroupAssembly group_assemblers_
std::vector< std::shared_ptr< AssemblyGroupInterface > > MultidimGroupAssembly
Assembler(MultidimGroupAssembly assembly_vec_)
void group_precompute_fields()
void group_assembly_element_integrals()
void group_assembly_boundary_integrals()
void group_generate_quadratute_points()
void group_assembly_edge_integrals()
Mesh & mesh()
Definition: equation.hh:181
Container for various descendants of FieldCommonBase.
Definition: field_set.hh:159
void assembly_matrix_on_element()
std::shared_ptr< FlowLMHData > data_
void assembly_vector_on_element()
FlowLMHAssembly(std::shared_ptr< FlowLMHData > data)
FlowLMHEq(Mesh &mesh)
std::shared_ptr< FlowMHData > data_
FlowMHAssembly(std::shared_ptr< FlowMHData > data)
FlowMHEq(Mesh &mesh)
Definition: mesh.h:362