-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPlainPort.h
More file actions
69 lines (58 loc) · 2.03 KB
/
Copy pathPlainPort.h
File metadata and controls
69 lines (58 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// This file is part of the arhFDTD package
// Copyright (C) <2022> <AliReza Hashemi>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#ifndef PLAINPORT_H
#define PLAINPORT_H
#include "Fields.h"
#include "Structure.h"
#include <string.h>
#include <iostream>
#include <fstream>
using namespace std;
struct Port_Points
{
int i, j, k;
double Ex, Ey, Ez;
double Hx, Hy, Hz;
unsigned short id;
};
class PlainPort
{
public:
PlainPort(Structure &sS, const char *fileName);
~PlainPort();
void Update_Fields_on_Port(Field &fF);
void Export_Port(const char *fileName);
void Export_E_onPort(const char *fileName);
void Export_E_onPort(ofstream OutFile);
void Export_Ex_onPort(const char *fileName);
void Export_Ex_onPort(ofstream OutFile);
void Export_Ey_onPort(const char *fileName);
void Export_Ey_onPort(ofstream OutFile);
void Export_Ez_onPort(const char *fileName);
void Export_Ez_onPort(ofstream OutFile);
void Export_EIntensity_onPort(const char *fileName);
void Export_EIntensity_onPort(ofstream OutFile);
void Export_ID_onPort(const char *fileName);
//std::string port_type;
char normal_direction;
double position, w1, w2, h1, h2;
double **port_out;
Port_Points *port_point;
int Num_of_Port_Points;
protected:
private:
int Nx, Ny, Nz;
int i1, i2, j1, j2, k1, k2, ii, il;
double dx, dy, dz;
};
#endif // PLAINPORT_H