Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Jul 25, 2024
1 parent 4b8fba5 commit 99f79eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/async_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The inertia of drum and motor are combined into one value (stiff coupling). =#
Model of a winch with an async generator and a gearbox.
"""
@with_kw mutable struct AsyncMachine <: AbstractWinchModel @deftype Float64
set::Union{Settings, Nothing} = nothing
set::Settings
"nominal motor voltage"
u_nom = 400.0/sqrt(3)
"rated synchronous motor speed [rad/s]"
Expand All @@ -51,9 +51,7 @@ Model of a winch with an async generator and a gearbox.
end

function AsyncMachine(set::Settings)
wm = AsyncMachine()
wm.set = set
wm
AsyncMachine(set=set)
end

# calculated the motor reactance X [Ohm]
Expand Down
4 changes: 0 additions & 4 deletions src/torque_controlled_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ Model of a winch with an torqrue controlled generator and a gearbox.
"""
struct TorqueControlledMachine <: AbstractWinchModel
set::Settings
# "inertia of the motor, as seen from the motor [kgm²]"
# inertia_motor = 0.082
# " Inertia of the motor, gearbox and drum, as seen from the motor [kgm²]"
# inertia_total = 0.204
end

# calculated the motor reactance X [Ohm]
Expand Down

0 comments on commit 99f79eb

Please sign in to comment.