-
Notifications
You must be signed in to change notification settings - Fork 2
Add risk to dd #32
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
Open
adrianaghiozzi
wants to merge
31
commits into
master
Choose a base branch
from
risk
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add risk to dd #32
Changes from 19 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
8595656
fix @show typeof(dd)
adrianaghiozzi ffceb5d
fix working with dd{Real}
adrianaghiozzi 28d93f0
cache precompiled dd
adrianaghiozzi 643cd9c
dd{Real}
adrianaghiozzi c5b76fa
dd._ddR and uncertain(dd)
adrianaghiozzi 33fcbe9
Merge branch 'master' of github.com:ProjectTorreyPines/IMASDD.jl
adrianaghiozzi 84c531b
Merge branch 'master' of github.com:ProjectTorreyPines/IMASDD.jl into…
adrianaghiozzi f783bd0
Add risk.json
adrianaghiozzi 7817996
Add costing.model for use in risk
adrianaghiozzi dc30e1c
Add units in dd.risk
adrianaghiozzi 61c6400
Remove lazycopy
adrianaghiozzi c4c5c42
Update dd.jl file
9ac0f75
Merge branch 'master' of github.com:ProjectTorreyPines/IMASDD.jl into…
adrianaghiozzi cb997fa
Merge branch 'risk' of github.com:ProjectTorreyPines/IMASDD.jl into risk
adrianaghiozzi d0542ba
Merge branch 'master' of github.com:ProjectTorreyPines/IMASDD.jl into…
adrianaghiozzi 4f88485
Add edge collisionality stability limit to identifiers
adrianaghiozzi 51cbcb5
oops
adrianaghiozzi 9432f8c
Merge branch 'master' of github.com:ProjectTorreyPines/IMASDD.jl into…
adrianaghiozzi 1f24b82
bug fix
adrianaghiozzi 0af05cc
Merge branch 'master' of github.com:ProjectTorreyPines/IMASDD.jl into…
adrianaghiozzi 57390b9
Remove dd.costing.model
adrianaghiozzi d1d2179
Update dd.jl file
a045ab1
Remove dd.costing.model
adrianaghiozzi 8f3655b
Merge branch 'risk' of github.com:ProjectTorreyPines/IMASDD.jl into risk
adrianaghiozzi 67fe9d3
Update dd.jl file
08c7f6a
Add field failure_mode to risk
adrianaghiozzi 48c2513
Merge branch 'risk' of github.com:ProjectTorreyPines/IMASDD.jl into risk
adrianaghiozzi a830eca
Update dd.jl file
69dab4a
Merge branch 'master' of https://github.com/ProjectTorreyPines/IMASdd…
adrianaghiozzi a3ba88b
Merge branch 'master' of https://github.com/ProjectTorreyPines/IMASdd…
adrianaghiozzi 30f66ef
FilledFields__risk in dd.jl
adrianaghiozzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| { | ||
| "risk": { | ||
| "documentation": "Risk quantification of plasma and engineering components" | ||
| }, | ||
| "risk.engineering.loss": { | ||
| "coordinates": [ | ||
| "1...N" | ||
| ], | ||
| "data_type": "STRUCT_ARRAY", | ||
| "documentation": "List of engineering-related losses", | ||
| "type": "static" | ||
| }, | ||
| "risk.engineering.loss[:].description": { | ||
| "data_type": "STR_0D", | ||
| "documentation": "Description of loss channel", | ||
| "type": "static" | ||
| }, | ||
| "risk.engineering.loss[:].probability": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Probability of failure", | ||
| "type": "static" | ||
| }, | ||
| "risk.engineering.loss[:].risk": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Product of loss probability and severity", | ||
| "type": "static" | ||
| }, | ||
| "risk.engineering.loss[:].severity": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Severity of failure", | ||
| "type": "static", | ||
| "units": "M$" | ||
| }, | ||
| "risk.engineering.risk": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Total engineering risk", | ||
| "type": "static", | ||
| "units": "M$" | ||
| }, | ||
| "risk.plasma.loss": { | ||
| "coordinates": [ | ||
| "1...N" | ||
| ], | ||
| "data_type": "STRUCT_ARRAY", | ||
| "documentation": "List of plasma-related losses", | ||
| "type": "static" | ||
| }, | ||
| "risk.plasma.loss[:].description": { | ||
| "data_type": "STR_0D", | ||
| "documentation": "Description of loss channel", | ||
| "type": "static" | ||
| }, | ||
| "risk.plasma.loss[:].probability": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Probability of failure", | ||
| "type": "static" | ||
| }, | ||
| "risk.plasma.loss[:].risk": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Product of loss probability and severity", | ||
| "type": "static", | ||
| "units": "$/kWh" | ||
| }, | ||
| "risk.plasma.risk": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Total plasma risk", | ||
| "type": "static", | ||
| "units": "$/kWh" | ||
| }, | ||
| "risk.plasma.severity.average_severity": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Average severity of disruption-induced events", | ||
| "type": "static" | ||
| }, | ||
| "risk.plasma.severity.current_quench": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Severity of disruption-induced current quench", | ||
| "type": "static" | ||
| }, | ||
| "risk.plasma.severity.thermal_quench": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Severity of disruption-induced thermal quench", | ||
| "type": "static" | ||
| }, | ||
| "risk.plasma.severity.vertical_forces": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Severity of disruption-induced vertical forces", | ||
| "type": "static" | ||
| }, | ||
| "risk.time": { | ||
| "units": "s", | ||
| "coordinates": [ | ||
| "1...N" | ||
| ], | ||
| "lifecycle_status": "active", | ||
| "data_type": "FLT_1D_TYPE", | ||
| "full_path": "risk/time(:)", | ||
| "timebasepath": "time", | ||
| "documentation": "Generic time", | ||
| "type": "dynamic" | ||
| }, | ||
| "risk.total_risk": { | ||
| "data_type": "FLT_0D", | ||
| "documentation": "Sum of risks", | ||
| "type": "static" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianaghiozzi if you want to add the model name, we should try to conform to what IMAS generally does for all of its IDSs. I'll add some logic to
generate_ddto copy the.codetree under the IDSs that we have added. This should allow you to usecosting.code.name.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orso82 Thanks, that would be great - this is just needed for the risk actor because the costs are grouped differently depending on whether it's ARIES or Sheffield (costing each coil system separately vs. all together) so the model determines how many fields are needed in dd.risk.engineering.loss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm... I have not taken a look at the code, but it sounds like you are hardcoding the number of fields based on the model, which is definitely not a robust thing to do. Perhaps it would be best to just pick a model (say ARIES), and use the TF costs from that model for the evaluation of risk.