Skip to content

Commit 22c9c9a

Browse files
refactor: format
1 parent c0b930a commit 22c9c9a

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

src/Electrical/Analog/transistors.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ Early voltage effect.
164164
end
165165
end
166166

167-
168167
"""
169168
PNP(;name, B_F, B_R, Is, V_T, V_A, phi_C, phi_E, Z_C, Z_E, Tau_f, Tau_r, C_jC0, C_jE0, C_CS, gamma_C, gamma_E, NF, NR)
170169
@@ -329,4 +328,4 @@ Early voltage effect.
329328
b.i ~ -IEC / B_R - ICC / B_F - (C_jC + C_DC) * D(V_CB) - (C_jE + C_DE) * D(V_EB)
330329
e.i ~ -c.i - b.i - I_sub
331330
end
332-
end
331+
end

src/Hydraulic/IsothermalCompressible/components.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ end
354354
vol(t)
355355
end
356356

357-
# let
357+
# let
358358
dm = port.dm
359359
p = port.p
360360

@@ -454,7 +454,6 @@ See also [`FixedVolume`](@ref), [`DynamicVolume`](@ref)
454454
direction = +1,
455455
x_int,
456456
name)
457-
458457
pars = @parameters begin
459458
area = area
460459
x_int = x_int
@@ -489,11 +488,11 @@ See also [`FixedVolume`](@ref), [`DynamicVolume`](@ref)
489488
end
490489

491490
eqs = [
492-
# connectors
493-
port.p ~ p
494-
port.dm ~ dm
495-
flange.v * direction ~ dx
496-
flange.f * direction ~ -f
491+
# connectors
492+
port.p ~ p
493+
port.dm ~ dm
494+
flange.v * direction ~ dx
495+
flange.f * direction ~ -f
497496
# differentials
498497
D(x) ~ dx
499498
D(m) ~ dm

test/Electrical/analog.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,7 @@ end
541541
# savefig(plt, "rc_circuit_test_variable_resistor")
542542
end
543543

544-
545544
@testset "NPN Tests" begin
546-
547545
@mtkmodel SimpleNPNCircuit begin
548546
@components begin
549547
Q1 = NPN()
@@ -624,10 +622,8 @@ end
624622
sol[sys.Q1.c.i][15] +
625623
sol[sys.Q1.s.i][15],
626624
0.0, atol = 1e-16)
627-
628625
end
629626

630-
631627
@testset "PNP Tests" begin
632628
@mtkmodel SimplePNPCircuit begin
633629
@components begin
@@ -710,4 +706,4 @@ end
710706
sol[sys.Q1.s.i][15],
711707
0.0,
712708
atol = 1e-16)
713-
end
709+
end

0 commit comments

Comments
 (0)