Skip to content

Commit 0ee8d29

Browse files
committed
Removed dependency on NBodySimulator
1 parent 7c64359 commit 0ee8d29

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

Project.toml

+4-18
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,13 @@ author = ["Axel Larsson"]
44
version = "0.2.0"
55

66
[deps]
7+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
8+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
9+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
10+
StaticGraphs = "4c8beaf5-199b-59a0-a7f2-21d17de635b6"
711
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
812
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
9-
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
10-
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1113
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
12-
GraphRecipes = "bd48cda9-67a9-57be-86fa-5b3c104eda73"
13-
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
14-
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
15-
NBodySimulator = "0e6f8da7-a7fc-5c8b-a220-74e902c310f9"
16-
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
17-
OptimizationNLopt = "4e6fcdb7-1186-4e1f-a706-475e75c168bb"
18-
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
19-
OptimizationOptimisers = "42dfb2eb-d2b4-4451-abcd-913932933ac1"
20-
OptimizationPolyalgorithms = "500b13db-7e66-49ce-bda4-eed966be6282"
21-
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
22-
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
23-
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
24-
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
25-
StaticGraphs = "4c8beaf5-199b-59a0-a7f2-21d17de635b6"
26-
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
27-
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2814

2915
[extras]
3016
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/DynamicRelaxation.jl

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ using StaticGraphs
1111
# Differential equation solving
1212
using DiffEqBase
1313
using DiffEqCallbacks
14-
using NBodySimulator
15-
using SteadyStateDiffEq
1614
using ForwardDiff
1715

1816
include("elem.jl")
@@ -30,18 +28,18 @@ include("optimization/load_finding.jl")
3028

3129
# Elements and nodes
3230
export ElementProperties, CoordinateSystem, Node3DOF, Node6DOF
33-
31+
export Bar, Beam, AbstractElement
3432
# Callbacks
3533
export velocitydecay!, velocityreset!, ke_condition, ke_termination_cond
3634

3735
# Constraints
38-
export clamped, free, pinned, roller
36+
export BigonTorqueCondition, clamped, free, pinned, roller
3937

4038
# Loads
4139
export Px, Py, Pz, Mx, My, Mz, uniform_load, point_loads
4240

4341
# System
44-
export StructuralGraphSystem, default_system
42+
export StructuralGraphSystem, default_system, get_cs
4543

4644
# Simulation
4745
export LoadScaleRodSimulation, RodSimulation, BigonRodSimulation, get_u0, get_vel_ids, get_state

src/node.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Struct for storing nodal properties
2-
struct Node3DOF <: NBodySimulator.Body
2+
3+
abstract type AbstractNode end
4+
struct Node3DOF <: AbstractNode
35
# Initial conditions
46
r::SVector{3,Float64}
57
v::SVector{3,Float64}
@@ -13,7 +15,7 @@ function Node3DOF(pos, constrained, constraints)
1315
Node3DOF(pos, @SVector(zeros(Float64, 3)), constrained, constraints)
1416
end
1517

16-
struct Node6DOF <: NBodySimulator.Body
18+
struct Node6DOF <: AbstractNode
1719
# Initial conditions
1820
r::SVector{3,Float64}
1921
q::SVector{4,Float64}

0 commit comments

Comments
 (0)