Skip to content

Commit

Permalink
@variables t --> @independent_variables t
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Aug 3, 2024
1 parent 1849772 commit dbfa36d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ODE_Systems/01-Incompressible.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using ModelingToolkit, Plots, Symbolics, Logging
using Printf
using Plots
# NonlinearSolve, DifferentialEquations, #CoolProp,
@variables t
@independent_variables t
# Logging.disable_logging(Logging.Warn)
# include("03-MTK_UTILS.jl")
# data from [2]
Expand Down
2 changes: 1 addition & 1 deletion src/ODE_Systems/01-MultiPhase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using ModelingToolkit, Unitful, Symbolics, Logging, Printf, XSteam # Unitful
# using DifferentialEquations

@variables t
@independent_variables t
# Logging.disable_logging(Logging.Warn)
# include("03-MTK_UTILS.jl")
##
Expand Down
2 changes: 1 addition & 1 deletion src/ODE_Systems/01-ThermoGas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ using ModelingToolkit, Plots, Logging, Printf
# using NonlinearSolve, Printf, DifferentialEquations,
# Unitful, CoolProp,
# Logging.disable_logging(Logging.Warn)
@variables t
@independent_variables t
# include("03-MTK_UTILS.jl")
# begin
# hpt_he(x,y) = PropsSI("HMASS","P",x*u"bar","T",y*u"K","He").val;
Expand Down
6 changes: 3 additions & 3 deletions src/ODE_Systems/Dynamics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using OrdinaryDiffEq, NonlinearSolve, DifferentialEquations
using Symbolics
using LayeredLayouts, MetaGraphs, Graphs, Plots, Random
using Statistics, GeometryBasics
ModelingToolkit.@variables t
ModelingToolkit.@independent_variables t
# Logging.disable_logging(Logging.Warn) NonlinearSolve, DifferentialEquations,

include("03-MTK_UTILS.jl")
Expand Down Expand Up @@ -232,7 +232,7 @@ function Gen_HeatExchanger(; name, ϵ = 0.95, A, B, returnmode = :ode)
end
end

ModelingToolkit.@variables t
ModelingToolkit.@independent_variables t

"""
default_energy_sys()
Expand Down Expand Up @@ -623,7 +623,7 @@ end
# Pmid1 = 5
# Pmin = 0.1
# Tmax = 600 + 273.15
# @variables t
# @independent_variables t
# @named ElectricUtil = Steam.WorkPin()
# @named ElectricGen = Steam.WorkPin()
# @named ColdUtil = Steam.HeatTransferPin()
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ display("Running Tests")
#=========================================================#

##########################
ModelingToolkit.@variables t
ModelingToolkit.@independent_variables t

energy_sys, sts, edict = TSMD.default_energy_sys();
wall_sys, wall_connections, wparams, wdict =
Expand Down

0 comments on commit dbfa36d

Please sign in to comment.