waves
Basic FE playground
wMedium.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 WMEDIUM_H
18 #define WMEDIUM_H
19 
20 #include "mirrors.h"
21 #include "wGroup.h"
22 #include <string>
23 
24 using namespace tbox;
25 
26 namespace mirrors
27 {
28 
33 class MIRRORS_API Medium : public Group
34 {
35 public:
36  std::string medium_name;
37  double E;
38  double nu;
39  double k;
40  double beta;
41  Medium(Problem &pbl, int no, std::string _medium_name,
42  double _E = 1000., double _nu = 0., double _k = 0., double _beta = 0.);
43  Medium(Problem &pbl, std::string const &name, std::string _medium_name,
44  double _E = 1000., double _nu = 0., double _k = 0., double _beta = 0.);
45 
46 #ifndef SWIG
47  virtual void write(std::ostream &out) const override;
48 #endif
49 };
50 
51 } // namespace mirrors
52 
53 #endif //WMEDIUM_H
mirrors
this namespace avoids conflicts with similar names in 'waves'
Definition: mirrors.h:37
mirrors::Problem
a class containing the problem parameters
Definition: wProblem.h:36
mirrors::Medium::E
double E
Young's modulus.
Definition: wMedium.h:37
mirrors::Medium::beta
double beta
Definition: wMedium.h:40
mirrors::Medium::nu
double nu
Poisson coefficient.
Definition: wMedium.h:38
mirrors.h
mirrors::Medium::medium_name
std::string medium_name
Definition: wMedium.h:36
mirrors::Medium
a thermomechanical medium
Definition: wMedium.h:33
mirrors::Medium::k
double k
Conductivity.
Definition: wMedium.h:39
MIRRORS_API
#define MIRRORS_API
Definition: mirrors.h:29