From fd1d4b0724e021802a93b3c5c902c11cb7b6c96a Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Tue, 2 May 2023 08:16:37 +0200 Subject: [PATCH] Do not require positive gear ratio Gear ratios are frequently negative --- src/Mechanical/Rotational/components.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Mechanical/Rotational/components.jl b/src/Mechanical/Rotational/components.jl index ab6b353fc..bf8bd2154 100644 --- a/src/Mechanical/Rotational/components.jl +++ b/src/Mechanical/Rotational/components.jl @@ -181,7 +181,6 @@ This element characterizes any type of gear box which is fixed in the ground and @component function IdealGear(; name, ratio, use_support = false) @named partial_element = PartialElementaryTwoFlangesAndSupport2(use_support = use_support) @unpack phi_support, flange_a, flange_b = partial_element - @symcheck ratio > 0 || throw(ArgumentError("Expected `ratio` to be positive")) @parameters ratio=ratio [description = "Transmission ratio of $name"] sts = @variables phi_a(t)=0.0 [ description = "Relative angle between shaft a and the support of $name",