Skip to content

Commit

Permalink
Merge pull request #30 from ProjectTorreyPines/bop_setup_from_dd
Browse files Browse the repository at this point in the history
add 3 fields realted to bop
  • Loading branch information
orso82 authored Sep 24, 2024
2 parents a196528 + ad671dc commit c0c574d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
30 changes: 30 additions & 0 deletions data_dictionary/data_structures_extra/balance_of_plant.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,26 @@
"type": "dynamic",
"units": "W"
},
"balance_of_plant.power_plant.heat_load.breeder": {
"coordinates": [
"balance_of_plant.time"
],
"data_type": "FLT_1D",
"documentation": "The heat flow towards the breeder.",
"timebasepath": "/time",
"type": "dynamic",
"units": "W"
},
"balance_of_plant.power_plant.heat_load.divertor": {
"coordinates": [
"balance_of_plant.time"
],
"data_type": "FLT_1D",
"documentation": "The heat flow towards the diverter",
"timebasepath": "/time",
"type": "dynamic",
"units": "W"
},
"balance_of_plant.power_plant.generator_conversion_efficiency": {
"coordinates": [
"balance_of_plant.time"
Expand Down Expand Up @@ -181,6 +201,16 @@
"type": "dynamic",
"units": "W"
},
"balance_of_plant.power_plant.heat_load.wall": {
"coordinates": [
"balance_of_plant.time"
],
"data_type": "FLT_1D",
"documentation": "The heat flow towards the wall.",
"timebasepath": "/time",
"type": "dynamic",
"units": "W"
},
"balance_of_plant.thermal_efficiency_cycle": {
"coordinates": [
"balance_of_plant.time"
Expand Down
26 changes: 25 additions & 1 deletion src/dd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94640,8 +94640,27 @@ end

balance_of_plant__power_plant__system() = balance_of_plant__power_plant__system{Float64}()

mutable struct balance_of_plant__power_plant__heat_load{T} <: IDS{T}
var"breeder" :: Vector{<:T}
var"divertor" :: Vector{<:T}
var"wall" :: Vector{<:T}
_filled::Set{Symbol}
_frozen::Bool
_in_expression::Vector{Symbol}
_ref :: Union{Nothing,balance_of_plant__power_plant__heat_load}
_parent :: WeakRef
end

function balance_of_plant__power_plant__heat_load{T}() where T
ids = balance_of_plant__power_plant__heat_load{T}(T[], T[], T[], Set{Symbol}(), false, Symbol[], nothing, WeakRef(nothing))
return ids
end

balance_of_plant__power_plant__heat_load() = balance_of_plant__power_plant__heat_load{Float64}()

mutable struct balance_of_plant__power_plant{T} <: IDS{T}
var"generator_conversion_efficiency" :: Vector{<:T}
var"heat_load" :: balance_of_plant__power_plant__heat_load{T}
var"power_cycle_type" :: String
var"power_electric_generated" :: Vector{<:T}
var"system" :: IDSvector{balance_of_plant__power_plant__system{T}}
Expand All @@ -94655,7 +94674,8 @@ mutable struct balance_of_plant__power_plant{T} <: IDS{T}
end

function balance_of_plant__power_plant{T}() where T
ids = balance_of_plant__power_plant{T}(T[], "", T[], IDSvector{balance_of_plant__power_plant__system{T}}(), T[], T[], Set{Symbol}(), false, Symbol[], nothing, WeakRef(nothing))
ids = balance_of_plant__power_plant{T}(T[], balance_of_plant__power_plant__heat_load{T}(), "", T[], IDSvector{balance_of_plant__power_plant__system{T}}(), T[], T[], Set{Symbol}(), false, Symbol[], nothing, WeakRef(nothing))
setfield!(ids.heat_load, :_parent, WeakRef(ids))
setfield!(ids.system, :_parent, WeakRef(ids))
return ids
end
Expand Down Expand Up @@ -96197,6 +96217,10 @@ const _all_info = Dict{String,Info}(
"balance_of_plant.power_electric_plant_operation.total_power" => Info{Tuple{String}}(("balance_of_plant.time",), "W", "FLT_1D", "Total ", true),
"balance_of_plant.power_plant" => Info{Tuple{}}((), "-", "STRUCTURE", "", true),
"balance_of_plant.power_plant.generator_conversion_efficiency" => Info{Tuple{String}}(("balance_of_plant.time",), "-", "FLT_1D", "Conversion efficiency of thermal to electric power of the steam cycle", true),
"balance_of_plant.power_plant.heat_load" => Info{Tuple{}}((), "-", "STRUCTURE", "", true),
"balance_of_plant.power_plant.heat_load.breeder" => Info{Tuple{String}}(("balance_of_plant.time",), "W", "FLT_1D", "The heat flow towards the breeder.", true),
"balance_of_plant.power_plant.heat_load.divertor" => Info{Tuple{String}}(("balance_of_plant.time",), "W", "FLT_1D", "The heat flow towards the diverter", true),
"balance_of_plant.power_plant.heat_load.wall" => Info{Tuple{String}}(("balance_of_plant.time",), "W", "FLT_1D", "The heat flow towards the wall.", true),
"balance_of_plant.power_plant.power_cycle_type" => Info{Tuple{}}((), "-", "STR_0D", "Type of primary power cycle, :brayton = gas, :rankine = steam", true),
"balance_of_plant.power_plant.power_electric_generated" => Info{Tuple{String}}(("balance_of_plant.time",), "W", "FLT_1D", "The net electric power produced by the thermal plant, equal tot the power produced by turbines LESS the power consumed by pumps and compressors", true),
"balance_of_plant.power_plant.system[:]" => Info{Tuple{}}((), "-", "STRUCT_ARRAY", "", true),
Expand Down

0 comments on commit c0c574d

Please sign in to comment.