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 "waves.h"
21 #include "wGroup.h"
22 #include <vector>
23 #include <string>
24 
25 using namespace tbox;
26 
27 namespace waves
28 {
29 
34 class WAVES_API Source : public Group
35 {
36 public:
37  std::vector<Node *> nodes;
38 
39  Source(std::shared_ptr<MshData> _msh, int no);
40  Source(std::shared_ptr<MshData> _msh, std::string const &name);
41  virtual ~Source() { std::cout << "~Source()\n"; }
42  virtual void apply(double t, std::vector<double> &u) {}
43 
44 #ifndef SWIG
45  virtual void write(std::ostream &out) const override;
46 #endif
47 };
48 } // namespace waves
49 
50 #endif //WSOURCE_H
waves::Source::apply
virtual void apply(double t, std::vector< double > &u)
Definition: wSource.h:42
waves::Source::~Source
virtual ~Source()
Definition: wSource.h:41
WAVES_API
#define WAVES_API
Definition: waves.h:29
waves::Source::nodes
std::vector< Node * > nodes
Definition: wSource.h:37
waves
Definition: waves.h:34
waves.h
waves::Source
manage the sources
Definition: wSource.h:34