Skip to content

Commit

Permalink
Consolidate simulation types and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lxmota committed Feb 6, 2025
1 parent bda72a5 commit 32c4fcd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 32 deletions.
28 changes: 27 additions & 1 deletion src/simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,33 @@
# top-level Norma.jl directory.
using YAML

include("simulation_def.jl")
abstract type Simulation end

include("constitutive_def.jl")
include("ics_bcs_def.jl")
include("model_def.jl")
include("time_integrator_def.jl")
include("solver_def.jl")
include("schwarz_def.jl")

mutable struct SingleDomainSimulation <: Simulation
name::String
params::Dict{String,Any}
integrator::TimeIntegrator
solver::Solver
model::Model
failed::Bool
end

mutable struct MultiDomainSimulation <: Simulation
name::String
params::Dict{String,Any}
schwarz_controller::SchwarzController
subsims::Vector{SingleDomainSimulation}
subsim_name_index_map::Dict{String,Int64}
failed::Bool
end

include("model.jl")
include("time_integrator.jl")
include("solver.jl")
Expand Down
31 changes: 0 additions & 31 deletions src/simulation_def.jl

This file was deleted.

0 comments on commit 32c4fcd

Please sign in to comment.