waves
Basic FE playground
wHeatTerm.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 WHEATTERM_H
18 #define WHEATTERM_H
19 
20 #include "heat.h"
21 
22 #include <vector>
23 #include <Eigen/Dense>
24 
25 namespace heat
26 {
27 
32 {
33 public:
34  // Volume
35  static Eigen::MatrixXd build(tbox::Element const &e, std::vector<double> const &u, tbox::Fct2 const &f, bool fake);
36  static Eigen::VectorXd build2(tbox::Element const &e, std::vector<double> const &u, tbox::Fct2 const &f);
37  // Boundary and Source
38  static Eigen::VectorXd build(tbox::Element const &e, std::vector<double> const &u, tbox::Fct0 const &f);
39  // Functionals
40  static Eigen::VectorXd computeFlux(tbox::Element const &e, std::vector<double> const &u, tbox::Fct2 const &f);
41  static Eigen::MatrixXd computeMatrix(tbox::Element const &e, std::vector<double> const &u, tbox::Fct2 const &f);
42 };
43 
44 } // namespace heat
45 #endif //WHEATTERM_H
HEAT_API
#define HEAT_API
Definition: heat.h:29
heat
this namespace avoids conflicts with similar names in 'waves'
Definition: heat.h:38
heat::HeatTerm
Formulation of heat terms.
Definition: wHeatTerm.h:31
heat.h