waves
Basic FE playground
wSource.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 WSOURCE_H
18
#define WSOURCE_H
19
20
#include "
heat.h
"
21
#include "wGroup.h"
22
#include "wFct0.h"
23
#include <vector>
24
#include <string>
25
26
using namespace
tbox;
27
28
namespace
heat
29
{
30
35
class
HEAT_API
Source
:
public
Group
36
{
37
public
:
38
#ifndef SWIG
39
std::shared_ptr<Fct0>
f
;
40
#endif
41
Source
(std::shared_ptr<MshData> _msh,
int
no, std::shared_ptr<Fct0> _f);
42
Source
(std::shared_ptr<MshData> _msh, std::string
const
&name, std::shared_ptr<Fct0> _f);
43
virtual
~Source
() { std::cout <<
"~Source()\n"
; }
44
45
#ifndef SWIG
46
virtual
void
write(std::ostream &out)
const override
;
47
#endif
48
};
49
50
}
// namespace heat
51
52
#endif //WSOURCE_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::Source::~Source
virtual ~Source()
Definition:
wSource.h:43
heat::Source::f
std::shared_ptr< Fct0 > f
Definition:
wSource.h:39
heat.h
heat::Source
manage (volumic) heat sources
Definition:
wSource.h:35
heat
src
wSource.h
Generated on Fri Oct 28 2022 10:21:59 for waves by
1.8.17