eisgenerator 1.0.x
finitetr.h
1//SPDX-License-Identifier: LGPL-3.0-or-later
2/* * eisgenerator - a shared libary and application to generate EIS spectra
3 * Copyright (C) 2022-2024 Carl Philipp Klemm <carl@uvos.xyz>
4 *
5 * This file is part of eisgenerator.
6 *
7 * eisgenerator is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * eisgenerator is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with eisgenerator. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22#include "componant.h"
23
24namespace eis
25{
26
28{
29 fvalue _C;
30 fvalue _R;
31 unsigned int _n;
32
33 Componant* subComponant = nullptr;
34
35 static Componant* createTransmitionLine(fvalue c, fvalue r, unsigned int n);
36 void updateValues();
37 void setDefaultParam(size_t count, bool defaultToRange);
38
39public:
40 FiniteTransmitionline(fvalue c, fvalue r, unsigned int n);
41 FiniteTransmitionline(std::string paramStr, size_t count = 10, bool defaultToRange = false);
43 virtual std::complex<fvalue> execute(fvalue omega) override;
44 virtual size_t paramCount() const override;
45 virtual std::vector<eis::Range> getDefaultParameters(bool range = true) const override;
46 virtual ~FiniteTransmitionline();
47 virtual char getComponantChar() const override;
48 virtual std::string componantName() const override {return "FiniteTransmitionline";}
49 static constexpr char staticGetComponantChar(){return 't';}
50};
51
52}
Definition componant.h:33
Definition finitetr.h:28
eisgenerator Copyright (C) 2021 Carl Klemm
Definition basicmath.h:26