waves
Basic FE playground
wThermoMecaTerm.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 University of Liège
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef WTHERMOMECATERM_H
18 #define WTHERMOMECATERM_H
19 
20 #include "mirrors.h"
21 
22 #include <vector>
23 #include <Eigen/Dense>
24 
25 namespace mirrors
26 {
27 
32 {
33 public:
34  // Mass matrix
35  static Eigen::MatrixXd buildM(tbox::Element const &e);
36  // Thermo-mechanical matrices
37  static Eigen::MatrixXd buildK(tbox::Element const &e, Eigen::MatrixXd const &H);
38  static Eigen::MatrixXd buildL(tbox::Element const &e, Eigen::MatrixXd const &C);
39  static Eigen::MatrixXd buildS(tbox::Element const &e, Eigen::MatrixXd const &D);
40  // Strain/stress computation
41  static void strain_stress(tbox::Element const &e, Eigen::MatrixXd const &H, std::vector<double> const &u, Eigen::MatrixXd &Strain, Eigen::MatrixXd &Stress);
42 };
43 
44 } // namespace mirrors
45 #endif //WTHERMOMECATERM_H
mirrors
this namespace avoids conflicts with similar names in 'waves'
Definition: mirrors.h:37
mirrors.h
mirrors::ThermoMecaTerm
Formulation of thermo-mechanical terms.
Definition: wThermoMecaTerm.h:31
MIRRORS_API
#define MIRRORS_API
Definition: mirrors.h:29