waves
Basic FE playground
Loads.h
Go to the documentation of this file.
1 #ifndef KATOPTRON_LOADS_H
2 #define KATOPTRON_LOADS_H
3 
4 #include "katoptron.h"
5 #include "Map.h"
6 #include "Domain.h"
7 #include "DirichletList.h"
8 #include "NeumannList.h"
9 #include "SourcesList.h"
10 #include "ElementsList.h"
11 #include "PreloadList.h"
12 #include "WeightsList.h"
13 
14 namespace katoptron
15 {
16 
20 template <typename scalar>
21 class Loads
22 {
23 public:
24  Teuchos::RCP<DirichletList<scalar>> dirichletList;
25  Teuchos::RCP<NeumannList<scalar>> neumannList;
26  Teuchos::RCP<SourcesList<scalar>> sourcesList;
27  Teuchos::RCP<PreloadList<scalar>> preloadList;
28  Teuchos::RCP<WeightsList<scalar>> weightsList;
29 
30  Loads();
31  Loads(Problem &pbl, Teuchos::RCP<Map> map, Teuchos::RCP<Domain<scalar>> domain);
32 };
33 
46 template <typename scalar>
47 Loads<scalar>::Loads(Problem &pbl, Teuchos::RCP<Map> map, Teuchos::RCP<Domain<scalar>> domain)
48 {
49  dirichletList = Teuchos::rcp(new DirichletList<scalar>(pbl, map, domain->elementsList));
50  neumannList = Teuchos::rcp(new NeumannList<scalar>(pbl, map, domain->elementsList));
51  sourcesList = Teuchos::rcp(new SourcesList<scalar>(pbl, map, domain->elementsList));
52  preloadList = Teuchos::rcp(new PreloadList<scalar>(pbl, map, domain->elementsList));
53  weightsList = Teuchos::rcp(new WeightsList<scalar>(pbl, map, domain->elementsList));
54 }
55 
56 }; // namespace katoptron
57 
58 #endif //KATOPTRON_LOADS_H
katoptron::NeumannList
Class which is used to store the list of the Neumann boundary conditions (BC).
Definition: NeumannList.h:24
katoptron::Domain
Class which is used to store all the information related to the discretized domain:
Definition: Domain.h:26
WeightsList.h
katoptron::Loads::sourcesList
Teuchos::RCP< SourcesList< scalar > > sourcesList
Definition: Loads.h:26
Domain.h
katoptron::WeightsList
Class which is used to store the list of the weights used for the residual computation.
Definition: WeightsList.h:27
katoptron::SourcesList
Class which is used to store the list of the volumetric heat sources.
Definition: SourcesList.h:22
katoptron::Loads::preloadList
Teuchos::RCP< PreloadList< scalar > > preloadList
Definition: Loads.h:27
NeumannList.h
PreloadList.h
katoptron::Loads::Loads
Loads()
ElementsList.h
katoptron
katoptron namespace
Definition: Algebraic.h:18
DirichletList.h
katoptron::Loads
Class which includes all the loads, boundary conditions, preloads, and weights.
Definition: Loads.h:21
katoptron::Problem
Class which is used to specify in Python the thermomechanical to solve.
Definition: wProblem.h:19
katoptron.h
katoptron::DirichletList
Class which is used to store the list of the Dirichlet boundary conditions (BC).
Definition: DirichletList.h:28
SourcesList.h
katoptron::Loads::weightsList
Teuchos::RCP< WeightsList< scalar > > weightsList
Definition: Loads.h:28
katoptron::Loads::neumannList
Teuchos::RCP< NeumannList< scalar > > neumannList
Definition: Loads.h:25
Map.h
katoptron::PreloadList
Class which is used to store the list of the preloads.
Definition: PreloadList.h:24
katoptron::Loads::dirichletList
Teuchos::RCP< DirichletList< scalar > > dirichletList
Definition: Loads.h:24