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 cf input to tidal turbine design page #1872

Merged
merged 6 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions deploy/runtime/defaults/MEtidal_LCOE Calculator.json
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@
"tidal_resource_filename": "COD0911.csv",
"tidal_resource_model_choice": 0.0,
"tidal_resource_shear": 0.0,
"tidal_turbine_cf": 30.0,
"tidal_turbine_cut_out": 3.3,
"tidal_turbine_cutin": 0.0,
"tidal_turbine_hub_ht": 0.0,
Expand Down
1 change: 1 addition & 0 deletions deploy/runtime/defaults/MEtidal_None.json
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@
"tidal_resource_filename": "COD0911.csv",
"tidal_resource_model_choice": 0.0,
"tidal_resource_shear": 0.0,
"tidal_turbine_cf": 30.0,
"tidal_turbine_cut_out": 3.3,
"tidal_turbine_cutin": 0.0,
"tidal_turbine_hub_ht": 0.0,
Expand Down
110 changes: 103 additions & 7 deletions deploy/runtime/ui/Marine Tidal Turbine Design.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,89 @@
}
}
},
"Numeric": {
"Visible": 1.0,
"ObjectProperties": {
"Name": {
"Type": 5.0,
"String": "tidal_turbine_cf"
},
"X": {
"Type": 3.0,
"Integer": 198.0
},
"Y": {
"Type": 3.0,
"Integer": 114.0
},
"Width": {
"Type": 3.0,
"Integer": 118.0
},
"Height": {
"Type": 3.0,
"Integer": 24.0
},
"Tool Tip": {
"Type": 5.0,
"String": ""
},
"Value": {
"Type": 1.0,
"Double": 0.0
},
"Mode": {
"Type": 3.0,
"Integer": 1.0
},
"Format": {
"Type": 3.0,
"Integer": 0.0
},
"Decimals": {
"Type": 3.0,
"Integer": 3.0
},
"Prefix": {
"Type": 5.0,
"String": ""
},
"Suffix": {
"Type": 5.0,
"String": ""
},
"ThousandsSep": {
"Type": 2.0,
"Boolean": 1.0
},
"Editable": {
"Type": 2.0,
"Boolean": 1.0
},
"ForeColour": {
"Type": 4.0,
"Color": {
"Red": 0.0,
"Green": 0.0,
"Blue": 0.0,
"Alpha": 255.0
}
},
"BackColour": {
"Type": 4.0,
"Color": {
"Red": 255.0,
"Green": 255.0,
"Blue": 255.0,
"Alpha": 255.0
}
},
"TabOrder": {
"Type": 3.0,
"Integer": -1.0
}
}
},
"Numeric": {
"Visible": 1.0,
"ObjectProperties": {
Expand All @@ -53,7 +136,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 264.0
"Integer": 294.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -136,7 +219,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 234.0
"Integer": 264.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -385,7 +468,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 207.0
"Integer": 237.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -438,7 +521,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 144.0
"Integer": 174.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -550,7 +633,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 177.0
"Integer": 207.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -603,7 +686,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 114.0
"Integer": 144.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -727,6 +810,19 @@
"sscVariableName": "",
"sscVariableValue": ""
},
"tidal_turbine_cf": {
"Version": 4.0,
"Type": 1.0,
"Label": "Capacity factor",
"Units": "%",
"Group": "ME Tidal Turbine Design",
"IndexLabels": "",
"Flags": 2.0,
"DefaultValue": 0.0,
"UIObject": "Default",
"sscVariableName": "",
"sscVariableValue": ""
},
"tidal_turbine_cut_out": {
"Version": 4.0,
"Type": 1.0,
Expand Down Expand Up @@ -946,7 +1042,7 @@
"\tdata.tidal_resource = ${tidal_resource};\r",
"\t//data.generator_rated_capacity = ${tidal_turbine_kw_rating_input};\r",
"\tdata.pto_efficiency = ${tidal_turbine_pto_eff};\r",
"\t\r",
"\tdata.capacity_factor = ${tidal_turbine_cf};\r",
"\t\r",
"\tsuccess = ssc_eqn(\"tidal_turbine_calculate_powercurve\", data);\r",
"\t/*\r",
Expand Down
Loading