Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 3 fields realted to bop #30

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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