-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmotorinduccion.h
More file actions
executable file
·95 lines (71 loc) · 2.21 KB
/
Copy pathmotorinduccion.h
File metadata and controls
executable file
·95 lines (71 loc) · 2.21 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef MOTORINDUCCION_H
#define MOTORINDUCCION_H
#include <cmath>
class MotorInduccion
{
public:
MotorInduccion();
// Se alimenta y luego inmediatamente se actualiza:
void alimentar(double voltage, double frequency);
// El motor tampoco se encarga del transcurso del tiempo
void actualizar(double sampleTime,int counter);
// El deslizamiento como parámetro externo
void actualizar(double sampleTime,int counter, double glide);
double respuestaTorqueCorriente(double current);
double respuestaTorqueDeslizamiento(double glide);
double respuestaTorqueDeslizamiento(double glide,double frequency);
void setResistenciaEstator(double Rs);
double getResistenciaEstator();
void setResistenciaRotor(double Rr);
double getResistenciaRotor();
void setReactanciaEstator(double Xs);
double getReactanciaEstator();
void setReactanciaRotor(double Xr);
double getReactanciaRotor();
void setReactanciaMotor(double Xm);
double getReactanciaMotor();
double getTorqueMaximo();
double getDeslizamientoMaximo();
double getVelocidadMaxima();
double getFrecuenciaTrabajo();
double getFrecuenciaNominal();
double getBeta();
// Salidas
double getSalida();
double voltajeNominal;
double potenciaNominal;
double velocidadNominal;
double frecuenciaNominal;
int numeroPolos;
private:
// CARACTERÍSTICAS CONSTRUCTIVAS
double resistenciaRotor;
double resistenciaEstator;
double reactanciaRotor;
double reactanciaEstator;
double reactanciaMotor;
// PARÁMETROS DE PLACA
// OTROS PARÁMETROS
double temperatura;
// ENTRADAS ACTUALES
double tensionFase;
double corriente;
double frecuencia;
int tipoConexion; // 0 -> Estrella (defecto); 1 -> Triangulo
// SALIDAS ACTUALES
double velocidad;
double torque;
// OTROS PARÁMETROS ELÉCTRICOS
double impedanciaEntrada;
double deslizamiento;
double beta;
double relacionVF;
// CARACTERÍSTICAS DE RENDIMIENTO
double potenciaEntrada;
double perdidasCobreEstator;
double perdidasCobreRotor;
double perdidasCobreNucleo;
// MÉTODOS PRIVADOS
double calcularImpedanciaEntrada();
};
#endif // MOTORINDUCCION_H