Skip to content
Snippets Groups Projects
Commit 1beccaaa authored by imcovangent's avatar imcovangent
Browse files

RCE scripting - update - testing of current possible architectures for wing design case

Former-commit-id: ebee4ab99da573f4b0ef21d0c30a4d4612be0e3a
parent 94fb1c0e
No related branches found
No related tags found
No related merge requests found
Showing
with 12059 additions and 25132 deletions
......@@ -9197,7 +9197,7 @@ class RceGraph(KadmosGraph):
for k, entry in enumerate(rce_wf["nodes"][target_node['diagonal_position']][input_key]):
if entry["name"] == \
rce_wf["nodes"][source_node['diagonal_position']][output_key][j]["name"]:
inp_idx.append(j)
inp_idx.append(k) # TODO: figure this out / fix it!
input_id = [rce_wf["nodes"][target_node['diagonal_position']][input_key][i]["identifier"] for i in
inp_idx]
elif target_node['rce_role'] not in possible_rce_roles:
......
......@@ -12049,3 +12049,43 @@ java.io.FileNotFoundException: Z:\Users\imcovangent\Documents\PhD\Software\KADMO
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SESSION 2017-03-25 17:35:36.206 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en
Command-line arguments: -os win32 -ws win32 -arch x86 -clean
!ENTRY org.eclipse.core.resources 4 568 2017-03-25 17:43:26.738
!MESSAGE Could not write metadata for '/AGILE_DC1_MDA'.
!STACK 0
java.io.FileNotFoundException: Z:\Users\imcovangent\Documents\PhD\Software\KADMOS\pyKADMOS\scripts\RCE_workingdirectory\.metadata\.plugins\org.eclipse.core.resources\.projects\AGILE_DC1_MDA\.markers.snap (The system cannot find the path specified)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:45)
at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:41)
at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1685)
at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1768)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1167)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY org.eclipse.core.resources 4 568 2017-03-25 18:08:46.631
!MESSAGE Could not write metadata for '/AGILE_DC1_MDA'.
!STACK 0
java.io.FileNotFoundException: Z:\Users\imcovangent\Documents\PhD\Software\KADMOS\pyKADMOS\scripts\RCE_workingdirectory\.metadata\.plugins\org.eclipse.core.resources\.projects\AGILE_DC1_MDA\.markers.snap (The system cannot find the path specified)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:45)
at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:41)
at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1685)
at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1768)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1167)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
<?xml version="1.0" encoding="UTF-8"?>
<workbench progressCount="16" version="2.0">
<workbench progressCount="15" version="2.0">
<workbenchAdvisor/>
<window height="772" maximized="true" width="982" x="949" y="0">
<fastViewData fastViewLocation="1024"/>
......@@ -37,7 +37,7 @@
</folder>
</info>
</editorArea>
<editor focus="true" id="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" name="test_all_tools.wf" partName="test_all_tools.wf" path="Z:/Users/imcovangent/Documents/PhD/Software/KADMOS/pyKADMOS/scripts/RCE_workingdirectory/TUD_case_study/test_all_tools.wf" title="test_all_tools.wf" tooltip="TUD_case_study/test_all_tools.wf" workbook="DefaultEditorWorkbook">
<editor activePart="true" focus="true" id="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" name="test_all_tools.wf" partName="test_all_tools.wf" path="Z:/Users/imcovangent/Documents/PhD/Software/KADMOS/pyKADMOS/scripts/RCE_workingdirectory/TUD_case_study/test_all_tools.wf" title="test_all_tools.wf" tooltip="TUD_case_study/test_all_tools.wf" workbook="DefaultEditorWorkbook">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TUD_case_study/test_all_tools.wf"/>
</editor>
<editor id="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" name="converge_MTOM.wf" partName="converge_MTOM.wf" path="Z:/Users/imcovangent/Documents/PhD/Software/KADMOS/pyKADMOS/scripts/RCE_workingdirectory/TUD_case_study/converge_MTOM.wf" title="converge_MTOM.wf" tooltip="TUD_case_study/converge_MTOM.wf" workbook="DefaultEditorWorkbook">
......@@ -64,7 +64,7 @@
<viewState CommonNavigator.LINKING_ENABLED="0" org.eclipse.ui.navigator.resources.workingSets.showTopLevelWorkingSets="1"/>
</view>
</views>
<perspectives activePerspective="de.rcenvironment.core">
<perspectives activePart="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" activePerspective="de.rcenvironment.core">
<perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016">
<descriptor class="de.rcenvironment.core.start.gui.Perspective" id="de.rcenvironment.core" label="RCE"/>
<alwaysOnActionSet id="org.eclipse.ui.cheatsheets.actionSet"/>
......@@ -142,6 +142,7 @@
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.core.gui.workflow.editor.WorkflowRunEditor" path="/External Files/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490367839569/2/dc2df4f4-a88b-4f28-b6e6-70c76f4ca967.wfr"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" path="/scriptedTUDwingDesign/TUDwingDesign_unconverged-DOE-GS.wf"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.core.gui.workflow.editor.WorkflowRunEditor" path="/External Files/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490372828880/2/31a7c007-975a-436c-bb98-ed02769f0bde.wfr"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" path="/scriptedTUDwingDesign/TUDwingDesign_unconverged-DOE-GS.wf"/>
</editors>
<item historyLabel="test_all_tools.wf" index="0"/>
<item historyLabel="TUDwingDesign_unconverged-DOE-GS.wf" index="1"/>
......@@ -188,6 +189,8 @@
<item historyLabel="TUDwingDesign_unconverged-DOE-GS.wf" index="12"/>
<item historyLabel="Workflow Viewer" index="13"/>
<item historyLabel="TUDwingDesign_unconverged-DOE-GS.wf" index="12"/>
<item historyLabel="test_all_tools.wf" index="7"/>
<item historyLabel="TUDwingDesign_unconverged-DOE-GS.wf" index="14"/>
<item active="true" historyLabel="test_all_tools.wf" index="7"/>
</navigationHistory>
</page>
......@@ -205,12 +208,12 @@
</trimLayout>
</window>
<mruList>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.core.gui.workflow.editor.WorkflowRunEditor" name="31a7c007-975a-436c-bb98-ed02769f0bde.wfr" tooltip="External Files/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490372828880/2/31a7c007-975a-436c-bb98-ed02769f0bde.wfr">
<persistable path="/External Files/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490372828880/2/31a7c007-975a-436c-bb98-ed02769f0bde.wfr"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.rce.gui.workflow.editor.WorkflowEditor" name="TUDwingDesign_unconverged-DOE-GS.wf" tooltip="scriptedTUDwingDesign/TUDwingDesign_unconverged-DOE-GS.wf">
<persistable path="/scriptedTUDwingDesign/TUDwingDesign_unconverged-DOE-GS.wf"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="de.rcenvironment.core.gui.workflow.editor.WorkflowRunEditor" name="31a7c007-975a-436c-bb98-ed02769f0bde.wfr" tooltip="External Files/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490372828880/2/31a7c007-975a-436c-bb98-ed02769f0bde.wfr">
<persistable path="/External Files/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490372828880/2/31a7c007-975a-436c-bb98-ed02769f0bde.wfr"/>
</file>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" name="Merger-output.xml" tooltip="C:\Users\IMCOVA~1\AppData\Local\Temp\rce-temp\default-1490367839569\34\6aee67ef-c2ac-4c64-9d92-faf4ece493e7\Merger-output.xml">
<persistable uri="file:/C:/Users/IMCOVA~1/AppData/Local/Temp/rce-temp/default-1490367839569/34/6aee67ef-c2ac-4c64-9d92-faf4ece493e7/Merger-output.xml"/>
</file>
......
......@@ -30,7 +30,7 @@ pp = PrettyPrinter(indent=4)
# Settings
KB_dir_path = '/Users/imcovangent/Documents/PhD/Software/KADMOS/pyKADMOS/KNOWLEDGE_BASE'
loop_all = False # Loop through all mdao_definition
mdao_definition_id = 4 # If not loop_all = False, select the required MDAO architecture from mdao_definitions
mdao_definition_id = 5 # If not loop_all = False, select the required MDAO architecture from mdao_definitions
subfolder = 'WP6_TUD_WingDesign_'# Subfolder suffix to export different exports (pickles, PDFs, visualization packages)
reload_kb = False # Reload KB or used pickled file, set to False after first execution
create_rcg_vis = False # Create RCG visualizations, set to False after first execution to save time
......@@ -227,6 +227,10 @@ for idx, item in enumerate(mdao_definitions):
'/cpacs/mdodata/constraints/wingLoading/latestValue',
'/cpacs/mdodata/constraints/fuelTankVolume/latestValue']
qoi_nodes = ['/cpacs/vehicles[AGILE_DC1_vehicleID]/aircraft/model[agile_v13_modelID]/analyses/massBreakdown/mOEM/mEM/mStructure/mWingsStructure/mWingStructure/massDescription/mass',
'/cpacs/vehicles[AGILE_DC1_vehicleID]/aircraft/model[agile_v13_modelID]/analyses/massBreakdown/fuel/massDescription/mass',
'/cpacs/vehicles[AGILE_DC1_vehicleID]/aircraft/model[agile_v13_modelID]/analyses/massBreakdown/designMasses/mTOM/mass']
# Function to check the graph for collisions and holes. Collisions are solved based on the function order and holes
# will simply be removed.
FPG.make_all_variables_valid(print_in_log=True)
......@@ -248,7 +252,12 @@ for idx, item in enumerate(mdao_definitions):
FPG.mark_as_objective(special_output_nodes[0])
FPG.mark_as_constraint(special_output_nodes[1:])
elif mdao_architecture in ['unconverged-MDA', 'converged-MDA', 'unconverged-DOE', 'converged-DOE']:
FPG.mark_as_qoi(special_output_nodes)
# TODO: fix this to work for all options
if mdao_architecture == 'unconverged-DOE':
qoi_nodes = qoi_nodes + special_output_nodes
else:
qoi_nodes = special_output_nodes
FPG.mark_as_qoi(qoi_nodes)
# For the unconverged-MDA-Jacobi remove the Q3D[FLC]-EMWET--seq function
if mdao_definition == 'unconverged-MDA-J':
......
File added
File added
No preview for this file type
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment