waves
Basic FE playground
wPotentialResidual.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 WPOTENTIALRESIDUAL_H
18 #define WPOTENTIALRESIDUAL_H
19 
20 #include "flow.h"
21 
22 #include <vector>
23 #include <Eigen/Dense>
24 
25 namespace flow
26 {
27 
34 {
35 public:
36  // Picard
37  static Eigen::MatrixXd buildFixed(tbox::Element const &e, std::vector<double> const &phi, Medium const &fluid);
38  // Newton
39  static Eigen::VectorXd build(tbox::Element const &e, tbox::Element const &eU, std::vector<double> const &phi, Medium const &fluid, double muC, double mCO);
40  static std::tuple<Eigen::MatrixXd, Eigen::MatrixXd> buildGradientFlow(tbox::Element const &e, tbox::Element const &eU, std::vector<double> const &phi, Medium const &fluid, double muC, double mCO);
41  // Adjoint
42  static std::tuple<Eigen::MatrixXd, Eigen::MatrixXd> buildGradientMesh(tbox::Element const &e, tbox::Element const &eU, std::vector<double> const &phi, Medium const &fluid, int nDim, double muC, double mCO);
43 };
44 
45 } // namespace flow
46 #endif //WPOTENTIALRESIDUAL_H
flow::Medium
Handle fluid medium.
Definition: wMedium.h:33
FLOW_API
#define FLOW_API
Definition: flow.h:29
flow
Namespace for flow module.
Definition: flow.h:37
flow::PotentialResidual
Formulation of nonlinear potential equation residuals.
Definition: wPotentialResidual.h:33
flow.h