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 "
heat.h
"
21
#include "wGroup.h"
22
#include "wFct0.h"
23
24
using namespace
tbox;
25
26
namespace
heat
27
{
28
33
class
HEAT_API
Medium
:
public
Group
34
{
35
public
:
36
#ifndef SWIG
37
std::shared_ptr<Fct2>
k
;
38
double
rhoc
;
39
#endif
40
Medium
(std::shared_ptr<MshData> _msh,
int
no, std::shared_ptr<Fct2> _k,
double
_rhoc = 1.0);
41
Medium
(std::shared_ptr<MshData> _msh, std::string
const
&name, std::shared_ptr<Fct2> _k,
double
_rhoc = 1.0);
42
virtual
~Medium
() { std::cout <<
"~Medium()\n"
; }
43
44
#ifndef SWIG
45
virtual
void
write(std::ostream &out)
const override
;
46
#endif
47
};
48
49
}
// namespace heat
50
51
#endif //WMEDIUM_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::Medium
a thermal medium (with k, rhoc)
Definition:
wMedium.h:33
heat.h
heat::Medium::rhoc
double rhoc
Definition:
wMedium.h:38
heat::Medium::~Medium
virtual ~Medium()
Definition:
wMedium.h:42
heat::Medium::k
std::shared_ptr< Fct2 > k
Definition:
wMedium.h:37
heat
src
wMedium.h
Generated on Fri Apr 1 2022 06:20:50 for waves by
1.8.17