FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaProjects/src/Circuito7.java at master · AndreUTF/JavaProjects · GitHub
AndreUTF
/
JavaProjects
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaProjects
/
src
/
Circuito7.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
69 lines (69 loc) · 2.45 KB
Breadcrumbs
JavaProjects
/
src
/
Circuito7.java
Copy path
File metadata and controls
69 lines (69 loc) · 2.45 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
java
.
util
.
ArrayList
;
public
class
Circuito7
{
private
ArrayList
<
Indutor
>
indutores
;
private
ArrayList
<
Fonte
>
fontes
;
private
ArrayList
<
Resistor
>
resistores
;
public
ArrayList
<
Indutor
>
getIndutores
() {
return
indutores
;
}
public
void
setIndutores
(
ArrayList
<
Indutor
>
indutores
) {
this
.
indutores
=
indutores
;
}
public
ArrayList
<
Fonte
>
getFontes
() {
return
fontes
;
}
public
void
setFontes
(
ArrayList
<
Fonte
>
fontes
) {
this
.
fontes
=
fontes
;
}
public
ArrayList
<
Resistor
>
getResistores
() {
return
resistores
;
}
public
void
setResistores
(
ArrayList
<
Resistor
>
resistores
) {
this
.
resistores
=
resistores
;
}
public
Circuito7
(){
this
.
indutores
=
new
ArrayList
();
this
.
fontes
=
new
ArrayList
();
this
.
resistores
=
new
ArrayList
();
}
public
double
calculoInpedanciaindutor
(){
return
(
2
*
3.14
*
getIndutores
().
get
(
0
).
getValor
()*
getFontes
().
get
(
0
).
getFrequencia
());
}
public
double
correntePrincipalmodulo
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
double
modulo
;
modulo
= (
getFontes
().
get
(
0
).
getValor
()/(
c6
.
Somapolar2mod
()));
return
(
modulo
);
}
public
double
calculoCorrenteangulo
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
double
angulo
= (
0
-
c6
.
Somapolar2angulo
());
if
(
angulo
<
0.0
){
return
(-
Math
.
toDegrees
(
angulo
));
}
else
{
return
(
Math
.
toDegrees
(
angulo
));
}
}
public
double
tensaoresmod
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
return
(
correntePrincipalmodulo
()*
getResistores
().
get
(
0
).
getValor
());
}
public
double
tensaoresangulo
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
return
(
correntePrincipalmodulo
()+
0.0
);
}
public
double
tensaoindmod
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
return
(
correntePrincipalmodulo
()*
calculoInpedanciaindutor
());
}
public
double
tensaoindangulo
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
return
(
calculoCorrenteangulo
()+
90
);
}
public
double
calculofp
(){
Complexosr
c6
=
new
Complexosr
(
getResistores
().
get
(
0
).
getValor
(),
0.0
,
0.0
,
calculoInpedanciaindutor
());
double
angulo
=
Math
.
cos
(
c6
.
Somapolar2angulo
());
return
(
angulo
);
}
}
Back
|
FazBrowse Home
|
New Git URL