Skip to content

Commit

Permalink
refactor: add DynamicQuantities
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Feb 22, 2024
1 parent 07c65c8 commit 51b9bf5
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version = "2.3.5"
[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
DynamicQuantities = "06fc5a27-2a28-4c7c-a15d-362465fb6821"
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
Expand Down
1 change: 1 addition & 0 deletions src/Blocks/Blocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Blocks
using ModelingToolkit, Symbolics
import IfElse: ifelse
import ..@symcheck
using DynamicQuantities
using ModelingToolkit: getdefault, t, D

export RealInput, RealOutput, SISO
Expand Down
1 change: 1 addition & 0 deletions src/Electrical/Electrical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Electrical

using ModelingToolkit, Symbolics, IfElse
using ModelingToolkit: t, D
using DynamicQuantities
using ..Thermal: HeatPort
using ..Mechanical.Rotational: Flange, Support
using ..Blocks: RealInput, RealOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Library to model iso-thermal compressible liquid fluid flow
module IsothermalCompressible

using ModelingToolkit, Symbolics
using ModelingToolkit: t, D
using ModelingToolkit: t_nounits as t, D_nounits as D

using ...Blocks: RealInput, RealOutput
using ...Mechanical.Translational: MechanicalPort, Mass
Expand Down
1 change: 1 addition & 0 deletions src/Mechanical/MultiBody2D/MultiBody2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module MultiBody2D

using ModelingToolkit, Symbolics, IfElse
using ModelingToolkit: t, D
using DynamicQuantities

using ..TranslationalPosition

Expand Down
1 change: 1 addition & 0 deletions src/Mechanical/Rotational/Rotational.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Rotational

using ModelingToolkit, Symbolics, IfElse
using ModelingToolkit: t, D
using DynamicQuantities

using ...Blocks: RealInput, RealOutput
import ...@symcheck
Expand Down
1 change: 1 addition & 0 deletions src/Mechanical/Translational/Translational.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Translational

using ModelingToolkit, Symbolics
using ModelingToolkit: getdefault, t, D
using DynamicQuantities

using ModelingToolkitStandardLibrary.Blocks: RealInput, RealOutput
using IfElse: ifelse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module TranslationalModelica

using ModelingToolkit, Symbolics, IfElse
using ModelingToolkit: t, D
using DynamicQuantities

using ...Blocks: RealInput, RealOutput

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module TranslationalPosition

using ModelingToolkit, Symbolics, IfElse
using ModelingToolkit: t, D
using DynamicQuantities

using ...Blocks: RealInput, RealOutput

Expand Down
1 change: 1 addition & 0 deletions src/Thermal/Thermal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Library of thermal system components to model heat transfer.
module Thermal
using ModelingToolkit, Symbolics, IfElse
using ModelingToolkit: t, D
using DynamicQuantities

using ...Blocks: RealInput, RealOutput

Expand Down

0 comments on commit 51b9bf5

Please sign in to comment.