suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Amplitude.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2017-2026 Theodore Chang
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
******************************************************************************/
52
#ifndef AMPLITUDE_H
53
#define AMPLITUDE_H
54
55
#include <
Domain/Tag.h
>
56
57
class
DomainBase
;
58
59
class
Amplitude
:
public
CopyableTag
{
60
bool
initialized =
false
;
61
62
protected
:
63
double
start_time
= 0.;
// T0
64
65
public
:
66
using
CopyableTag::CopyableTag
;
67
68
virtual
void
initialize
(
const
shared_ptr<DomainBase>&);
69
70
virtual
unique_ptr<Amplitude>
unique_copy
() = 0;
71
72
virtual
double
get_amplitude
(
double
);
73
74
void
set_initialized
(
bool
);
75
[[nodiscard]]
bool
is_initialized
()
const
;
76
77
void
set_start_time
(
double
);
78
};
79
80
#endif
81
Tag.h
Amplitude
An Amplitude class that can generate Amplitude pattern.
Definition
Amplitude.h:59
Amplitude::initialize
virtual void initialize(const shared_ptr< DomainBase > &)
Definition
Amplitude.cpp:20
Amplitude::unique_copy
virtual unique_ptr< Amplitude > unique_copy()=0
Amplitude::set_start_time
void set_start_time(double)
Definition
Amplitude.cpp:28
Amplitude::set_initialized
void set_initialized(bool)
Definition
Amplitude.cpp:24
Amplitude::is_initialized
bool is_initialized() const
Definition
Amplitude.cpp:26
Amplitude::start_time
double start_time
Definition
Amplitude.h:63
Amplitude::get_amplitude
virtual double get_amplitude(double)
Definition
Amplitude.cpp:22
CopyableTag
Label objects that can be copied.
Definition
Tag.h:73
CopyableTag::CopyableTag
CopyableTag(const CopyableTag &)=default
DomainBase
The DomainBase class is a template.
Definition
DomainBase.h:94
Load
Amplitude
Amplitude.h
Generated by
1.9.8