Flow123d  3.9.1-8f37ba8
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_ */
AssemblyGroupInterface
Definition: assembly_theory.hh:22
FlowLMHAssembly::FlowLMHAssembly
FlowLMHAssembly(std::shared_ptr< FlowLMHData > data)
Definition: assembly_theory.hh:92
Assembler::group_assemblers_
MultidimGroupAssembly group_assemblers_
Definition: assembly_theory.hh:57
FlowMHAssembly
Definition: assembly_theory.hh:73
FlowMHEq::FlowMHEq
FlowMHEq(Mesh &mesh)
Definition: assembly_theory.hh:79
FlowMHAssembly::data_
std::shared_ptr< FlowMHData > data_
Definition: assembly_theory.hh:75
FlowLMHAssembly::assembly_vector_on_element
void assembly_vector_on_element()
std::vector
Definition: doxy_dummy_defs.hh:7
FlowLMHEq::FlowLMHEq
FlowLMHEq(Mesh &mesh)
Definition: assembly_theory.hh:104
FlowLMHAssembly::data_
std::shared_ptr< FlowLMHData > data_
Definition: assembly_theory.hh:100
FlowLMHAssembly
Definition: assembly_theory.hh:91
FlowMHAssembly::FlowMHAssembly
FlowMHAssembly(std::shared_ptr< FlowMHData > data)
EquationBase::mesh
Mesh & mesh()
Definition: equation.hh:178
FlowLMHEq
Definition: assembly_theory.hh:103
AssemblyGroupBase::group_generate_quadratute_points
void group_generate_quadratute_points()
FieldSet
Container for various descendants of FieldCommonBase.
Definition: field_set.hh:159
EquationBase
Definition: equation.hh:56
Assembler::Assembler
Assembler(MultidimGroupAssembly assembly_vec_)
Definition: assembly_theory.hh:58
Assembler::MultidimGroupAssembly
std::vector< std::shared_ptr< AssemblyGroupInterface > > MultidimGroupAssembly
Definition: assembly_theory.hh:56
FlowMHEq
Definition: assembly_theory.hh:78
Mesh
Definition: mesh.h:362
AssemblyGroupBase::group_precompute_fields
void group_precompute_fields()
AssemblyGroupBase::group_assembly_boundary_integrals
void group_assembly_boundary_integrals()
AssemblyGroupBase::group_assembly_edge_integrals
void group_assembly_edge_integrals()
FlowLMHData
Definition: assembly_theory.hh:86
Assembler
Definition: assembly_theory.hh:55
AssemblyGroupBase
Definition: assembly_theory.hh:27
FlowMHData
Definition: assembly_theory.hh:68
FlowLMHAssembly::assembly_matrix_on_element
void assembly_matrix_on_element()
AssemblyGroupBase::group_assembly_element_integrals
void group_assembly_element_integrals()