Skip to content
Snippets Groups Projects
Commit 50dbb231 authored by imcovangent's avatar imcovangent
Browse files

Optimus workshop files (Python interface)

parent 34c8d156
No related branches found
No related tags found
No related merge requests found
Showing
with 1622 additions and 46 deletions
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="d3e74292-1e1a-4cba-81b3-9c9d67f586ca" name="Default" comment="" /> <list default="true" id="d3e74292-1e1a-4cba-81b3-9c9d67f586ca" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list>
<ignored path="KADMOS.iws" /> <ignored path="KADMOS.iws" />
<ignored path=".idea/workspace.xml" /> <ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.local.xml" /> <ignored path=".idea/dataSources.local.xml" />
...@@ -24,8 +26,8 @@ ...@@ -24,8 +26,8 @@
<favorites_list name="KADMOS" /> <favorites_list name="KADMOS" />
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="__init__.py" pinned="false" current-in-tab="false"> <file leaf-file-name="__init__.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/pyKADMOS/__init__.py"> <entry file="file://$PROJECT_DIR$/pyKADMOS/__init__.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0"> <state vertical-scroll-proportion="0.0">
...@@ -35,26 +37,6 @@ ...@@ -35,26 +37,6 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="testPyGraphML.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/pyKADMOS/testPyGraphML.py">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.18045112">
<caret line="8" column="22" selection-start-line="8" selection-start-column="22" selection-end-line="8" selection-end-column="22" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="myGraph.graphml" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/pyKADMOS/myGraph.graphml">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="130" column="11" selection-start-line="130" selection-start-column="11" selection-end-line="130" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf> </leaf>
</component> </component>
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
...@@ -108,7 +90,6 @@ ...@@ -108,7 +90,6 @@
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="Scratches" /> <pane id="Scratches" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
...@@ -148,6 +129,7 @@ ...@@ -148,6 +129,7 @@
</PATH> </PATH>
</subPane> </subPane>
</pane> </pane>
<pane id="Scope" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
...@@ -244,6 +226,11 @@ ...@@ -244,6 +226,11 @@
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
<node-options />
<gulpfile />
<tasks />
<arguments />
<envs />
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="js.build_tools.npm" factoryName="npm"> <configuration default="true" type="js.build_tools.npm" factoryName="npm">
...@@ -372,6 +359,9 @@ ...@@ -372,6 +359,9 @@
</recent_temporary> </recent_temporary>
</component> </component>
<component name="ShelveChangesManager" show_recycled="false" /> <component name="ShelveChangesManager" show_recycled="false" />
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager"> <component name="TaskManager">
<task active="true" id="Default" summary="Default task"> <task active="true" id="Default" summary="Default task">
<changelist id="d3e74292-1e1a-4cba-81b3-9c9d67f586ca" name="Default" comment="" /> <changelist id="d3e74292-1e1a-4cba-81b3-9c9d67f586ca" name="Default" comment="" />
...@@ -383,28 +373,36 @@ ...@@ -383,28 +373,36 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="0" width="1920" height="1080" extended-state="0" /> <frame x="0" y="0" width="1920" height="1080" extended-state="0" />
<editor active="true" /> <editor active="false" />
<layout> <layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15104167" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15104167" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32913843" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32913843" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32913843" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32913843" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout> </layout>
</component> </component>
<component name="Vcs.Log.UiProperties">
<option name="RECENTLY_FILTERED_USER_GROUPS">
<collection />
</option>
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
<collection />
</option>
</component>
<component name="VcsContentAnnotationSettings"> <component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" /> <option name="myLimit" value="2678400000" />
</component> </component>
...@@ -421,18 +419,10 @@ ...@@ -421,18 +419,10 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/pyKADMOS/myGraph.graphml"> <entry file="file://$PROJECT_DIR$/pyKADMOS/__init__.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0"> <state vertical-scroll-proportion="0.0">
<caret line="130" column="11" selection-start-line="130" selection-start-column="11" selection-end-line="130" selection-end-column="11" /> <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pyKADMOS/testPyGraphML.py">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.18045112">
<caret line="8" column="22" selection-start-line="8" selection-start-column="22" selection-end-line="8" selection-end-column="22" />
<folding /> <folding />
</state> </state>
</provider> </provider>
......
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.11 (C:\Python27\python.exe)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/PyOptimus.iml" filepath="$PROJECT_DIR$/.idea/PyOptimus.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
"OPTIMUS project file"
20 1 3
0 1 "User" "-"
1 1 "Creation date" 1 16 2 2016
0 1 "Description" "-"
2 0
2 0
2
25 "Graph1" 0 0 1.0000000000000e+000 1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
ANNOT22488
0
0
0
0
0
0
0
ANNOT22488
0
0
0
1 0 0 100 1.0000000000000e-002
1 0 0 100 1.0000000000000e-002
1 1
0 60 2
"OPS" "normal" "" 1 1024
"LocalParallel" "normal" "4" 1 1024
1 0
1 0
25 "Graph_parent" 0 0 1.0000000000000e+000 1
0
1
2 "InputArray1" "" 100 100
1 1
2 "myVar" "" 100 100
6 1 1 0 0 0 0.0000000000000e+000 "-1.0" "1.0" 0 1.0000000000000e-006 "AUTO" 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
ANNOT13409
0
0
0
0
0
0
0
ANNOT13409
0
0
0
1 0 0 100 1.0000000000000e-002
1 0 0 100 1.0000000000000e-002
1 1
0 60 2
"OPS" "normal" "" 1 1024
"LocalParallel" "normal" "4" 1 1024
1 1 "myVar"
1 0
0
0
1
REP6742
"ReportContainer"
0
REP6742
import optimus
import os
optProject = optimus.createProject("")
optGraphName = "Graph_parent"
if type(optProject.getGraph(optGraphName)) == optimus.Graph:
optGraph = optProject.getGraph(optGraphName)
else:
optGraph = optProject.createGraph(optGraphName)
inputArray1 = optimus.InputVarArray("InputArray1", optimus.Position(100, 100))
inputvar1 = optimus.InputVar("myVar", optimus.Position(100, 100))
optGraph.addInputVarArray(inputArray1)
inputArray1.deleteInputVar(0)
inputArray1.appendInputVar(inputvar1)
optimus.saveProject("Project_test.opt", True)
optimus.closeProject(optProject)
\ No newline at end of file
File added
File added
+--------------+
| DynTruss 2.0 |
+--------------+
Results of this program can be used for demo purposes only
There is no guarantee of correctness of results
Results for problem in file pennsylvania.inp
Eigenfrequencies
f_1 = 18.2186
f_2 = 29.728
f_3 = 43.2295
f_4 = 64.8767
f_5 = 79.9844
f_6 = 85.3522
f_7 = 94.2301
f_8 = 102.396
f_9 = 119.143
f_10 = 119.752
Eigenmodes
Eigenmode no. 1 = 0.0000000000000e+000 0.0000000000000e+000 3.2111144116039e-002 -9.1431486548585e-002 5.5978928575492e-002 -1.3563418190350e-001 4.5947895697205e-002 -1.6385448063888e-001 7.9715554172815e-002 -2.1096040652810e-001 7.4766901058335e-002 -2.2271810779255e-001 1.0254064038618e-001 -2.5966442330327e-001 9.8366862835470e-002 -2.4752027789846e-001 1.2316141368850e-001 -2.6375072243294e-001 1.2388393017093e-001 -2.3529586486278e-001 1.4053289560034e-001 -2.4155925731063e-001 1.4285537330795e-001 -1.9148998321671e-001 1.5638091809849e-001 -1.8183233626771e-001 1.5980236142999e-001 -1.2469481361169e-001 1.6611804476891e-001 -1.0796310104470e-001 1.6585092821562e-001 -5.2066993163214e-002 1.4957059769108e-001 0.0000000000000e+000 8.2806426927539e-002 -4.4899914184627e-002 5.8996612941213e-002 -6.6740441075279e-002 6.5356184218129e-002 -9.4624395379028e-002 5.2479950221408e-002 -1.1671232539433e-001 4.6232640289487e-002 -1.1236144318394e-001 2.9789580150245e-002 -8.7683860387906e-002 4.0538259056901e-002 -5.9014595499518e-002 2.2768308411123e-002 -4.2431304031937e-002 1.0115829630732e-001 -8.1055552110394e-002 9.4134776598057e-002 -1.2768183843243e-001 8.1111368462498e-002 -1.3757113889906e-001 6.7708677966804e-002 -1.4855822835682e-001 4.6474820585077e-002 -1.2587241451468e-001 4.3406580780322e-002 -1.0187072540851e-001 3.1399864716796e-002 -3.9373312680990e-002
Eigenmode no. 2 = 0.0000000000000e+000 0.0000000000000e+000 4.5544239645745e-002 -1.1939843988178e-002 8.4777431745245e-002 -1.7641206571488e-002 9.4498269170717e-002 -2.2568904368597e-002 1.3496770541660e-001 2.5061495111748e-002 1.3669106643356e-001 4.1646453630567e-002 1.7381016614361e-001 1.0667303492042e-001 1.7066540640676e-001 1.2290878801054e-001 2.0704490183366e-001 1.8383449741969e-001 1.9536308947719e-001 1.9183383424526e-001 2.2737192823273e-001 2.1006986112758e-001 2.0796136843283e-001 1.7970717554277e-001 2.3460692407939e-001 1.7668246258160e-001 2.0193628471421e-001 1.2585887365050e-001 2.3459302254014e-001 1.1508819107303e-001 1.9705110002750e-001 5.9675357394542e-002 1.8964561685692e-001 0.0000000000000e+000 5.4019610124746e-002 -6.2592163716138e-003 4.3641625094765e-002 -2.0558413005397e-002 2.7170156939308e-002 6.7371956205030e-003 4.1717896423132e-002 4.7367481257086e-002 8.6036057040728e-002 8.8583249169734e-002 1.2350409552095e-001 8.1460936029151e-002 1.2382663172606e-001 5.8328953441153e-002 1.4961475993254e-001 4.7357521884128e-002 1.0180305885276e-001 -4.8341199159268e-003 9.8290348389636e-002 4.4076285855614e-002 1.0407978414517e-001 7.8100209157412e-002 1.2866726116727e-001 1.0363269711769e-001 1.4196567232987e-001 1.0066271397329e-001 1.6636296392250e-001 1.0011119396759e-001 1.2979768471561e-001 4.0553722032063e-002
Eigenmode no. 3 = 0.0000000000000e+000 0.0000000000000e+000 1.8919356534734e-002 -1.6690623713572e-001 1.3031430339288e-002 -2.2731823074456e-001 -1.0170478684012e-002 -2.4237094111860e-001 -4.6774081257073e-003 -2.9266219064659e-001 -1.4375254356926e-002 -2.7692372789886e-001 -2.7683334221194e-002 -2.4825724146588e-001 -4.2441277826319e-002 -1.6328521837778e-001 -4.8018474452657e-002 -3.0510438306034e-002 -6.7700752790660e-002 1.3929889283005e-001 -7.3325435612650e-002 1.9368476934692e-001 -8.0319312068390e-002 2.6422162913332e-001 -9.2048356102683e-002 2.6850745585697e-001 -1.0884532683091e-001 2.4319173970273e-001 -1.0582379518406e-001 2.1911232696584e-001 -1.1826255888365e-001 1.1502850281397e-001 -1.0310806389260e-001 0.0000000000000e+000 1.0044247116259e-001 -8.0964013112326e-002 2.0364675172067e-002 -9.9983381577298e-002 -2.6386277044924e-004 -1.3002001127912e-001 -1.2512803455502e-001 -1.0083908368378e-001 -1.5893367216860e-001 5.9249394640541e-002 -6.0112060988977e-002 1.1976846816398e-001 -3.0807791256692e-002 1.1393219868398e-001 5.2160807649366e-002 8.9286832078512e-002 4.5302150510860e-002 -1.1472706199921e-001 2.6199090753424e-002 -1.5056460393738e-001 -5.5289816150576e-003 -6.4289804781513e-002 -4.0816929633387e-002 -7.6395372225705e-003 -1.0121053489061e-002 5.7938052344412e-002 8.1025182363088e-003 1.3347611152819e-001 1.3059304051174e-002 7.4589726097516e-002
Eigenmode no. 4 = 0.0000000000000e+000 0.0000000000000e+000 4.7870241728491e-002 -2.4666155842064e-001 3.1949678807972e-002 -3.0848392173791e-001 3.3568437927005e-003 -2.7491122514349e-001 6.8583016773393e-003 -1.8181328545422e-001 -8.5285222751503e-003 -9.3936191229217e-002 -1.5614201415319e-002 9.1715085518941e-002 -3.2021393354356e-002 1.8214402496335e-001 -1.2433425350776e-002 2.9298700783714e-001 6.8208736289071e-003 1.5362638825449e-001 -1.3030330102376e-002 7.8635805535553e-002 -1.1728409555384e-002 -1.3336294665002e-001 -2.4404390004712e-002 -1.8756271031369e-001 -1.5202021628221e-002 -2.9668840112168e-001 -4.0628184761661e-002 -2.9334539942101e-001 -3.1646824851230e-002 -1.7294964782176e-001 -3.5127815470439e-002 0.0000000000000e+000 1.6778907278024e-001 -1.1672984188996e-001 -4.4029349682266e-002 -1.3901849563171e-001 -1.1664045925989e-001 -7.5651006440603e-002 -1.5326833808872e-001 6.3176053938307e-002 1.1991132764709e-001 7.9401734536293e-002 1.1150825908311e-001 -5.5017211479860e-002 4.4657411438030e-002 -1.3444870993981e-001 -1.6060017937080e-001 -1.2519916332780e-001 4.5045566393118e-002 -1.0086414871793e-001 1.5673218360283e-002 -4.7585545633316e-003 -1.3336441405905e-002 1.4480812186523e-001 -9.8857731627661e-003 1.9264575563265e-001 -1.0026959834222e-002 9.5337599250002e-002 -4.7960939124436e-002 -5.2059905419496e-002 -5.2525281897560e-002 -8.4349673560822e-002
Eigenmode no. 5 = 0.0000000000000e+000 0.0000000000000e+000 -7.1412228007661e-002 2.6893650827427e-001 -3.7952800951823e-002 2.8457389571779e-001 -3.5376267815269e-002 1.7864328943430e-001 -4.0992965094152e-002 -3.3855198727666e-002 -6.8953699193841e-002 -1.4401461676312e-001 -8.2400063685899e-002 -2.3257639737639e-001 -1.2879270623587e-001 -1.8803651933584e-001 -7.1200532792149e-002 2.8882724976236e-002 -1.0219526034882e-001 2.2545519031773e-001 -3.2076173222162e-002 2.1688865352198e-001 -5.2881200700484e-003 8.8252187726239e-002 2.8093334872856e-002 -9.2514933160691e-003 2.9779513206593e-002 -2.4182360523052e-001 2.8907375840280e-002 -2.7934672849719e-001 -6.3118379272046e-004 -1.9194807107653e-001 7.6036518775612e-003 0.0000000000000e+000 -1.6907736580278e-001 1.2735295866800e-001 1.5151829625428e-001 1.1716527665997e-001 1.2383099715301e-001 -4.1913090444459e-002 -1.9924091390467e-001 -1.1580545899296e-001 -1.7765364638736e-001 9.9534772288692e-002 1.5101656555580e-001 4.7969396765240e-002 1.8901683916672e-001 -1.0383271241741e-001 -1.1845155186487e-001 -1.2941020038070e-001 5.0162356854168e-002 4.6503202925231e-002 8.3067888004172e-002 -7.3516084016396e-002 1.1119359553933e-001 -2.7823272806212e-002 8.3239030564892e-002 1.4551648426351e-002 1.2262668986761e-001 4.4235645812330e-002 9.5484158332163e-002 4.2608221139616e-002 5.3375376637288e-002 -5.6316611194861e-002
Eigenmode no. 6 = 0.0000000000000e+000 0.0000000000000e+000 8.4833541102811e-002 2.5677859789657e-002 1.7211122159780e-001 2.6951232425445e-002 1.7400104006471e-001 7.1789469698867e-003 2.3687873169363e-001 5.4033928486855e-002 1.8982576858202e-001 6.5471702476485e-002 2.1734236585595e-001 5.6446923531786e-002 1.3619982294853e-001 2.3626764068461e-002 8.5742533888034e-002 -6.4453174730710e-002 -5.7648147138228e-002 3.1499277904650e-002 -8.3969110388126e-002 9.7119425786770e-003 -1.9060013011675e-001 8.4883302203975e-002 -2.0432771187902e-001 2.0086850502238e-002 -2.5627134199076e-001 -2.0762638575214e-002 -2.8533625147000e-001 -1.0769749282123e-001 -3.0793250995241e-001 -1.1347806851195e-001 -2.7325791672388e-001 0.0000000000000e+000 9.0865076665867e-002 9.4765306280014e-003 1.4945507129850e-001 -8.8240640488388e-003 1.5881122735519e-001 2.9175673707125e-002 2.3945016371984e-001 2.8496138783552e-002 -5.0232899881750e-002 1.9150385842215e-002 -1.0652898956972e-001 4.3578047419215e-002 -2.8984308869054e-002 5.0878684931937e-003 -1.6474839841417e-001 -7.2379268552813e-002 2.1389592124121e-001 -5.2995714383602e-003 1.8724281064494e-001 3.9893872742778e-002 1.6307120418657e-001 2.6741021124166e-003 1.5336310451670e-001 -3.3446014420263e-002 1.0036262471071e-001 -2.9089230821225e-002 4.6941418165554e-002 -3.2021837752988e-002 1.4219309750160e-002 -7.3136770802958e-003
Eigenmode no. 7 = 0.0000000000000e+000 0.0000000000000e+000 3.2387416436361e-002 -2.0902060577584e-001 -3.3921469317056e-002 -2.0638214465797e-001 -3.8837471456264e-002 -8.5213089760188e-002 -3.6177965611698e-002 1.2888485541201e-001 8.5442941229022e-003 1.8520940501935e-001 3.1375314902235e-002 1.1534579449053e-001 9.5249623206099e-002 -8.0728448858434e-003 -2.7721211320438e-002 -2.5781934832309e-001 -1.0678020835513e-001 9.0616898399369e-002 -3.3874447567238e-002 1.6411591914363e-001 3.4569054211634e-002 1.6669756998563e-001 5.4342875740603e-002 8.6126785534292e-002 8.1403786066081e-002 -1.7701853259672e-001 6.7851577941854e-002 -2.0152541149462e-001 3.6061954508598e-002 -1.3332715174348e-001 3.4878509202498e-002 0.0000000000000e+000 1.1260465666640e-001 -9.4090531288916e-002 -2.3246054259765e-001 -7.3613698925597e-002 -8.5554420782176e-002 8.6683096808305e-002 3.3859998706741e-001 3.5942377579770e-002 -3.8347809728410e-001 3.5961281327985e-002 9.0808491462885e-002 8.3139674018595e-002 2.1419646289484e-001 -7.6156256112506e-002 -9.1149333573008e-002 -8.4557806498099e-002 -1.2108849409939e-001 8.2445999296001e-003 -1.2175262071046e-001 6.5278002107861e-002 -1.0285975702899e-001 -1.3278380584486e-001 -4.2150855814016e-002 -2.1421289076244e-001 3.1888634584173e-002 -2.9088003883291e-002 5.2267022378563e-002 1.0514655947285e-001 3.2352053606454e-002 -2.1608797055297e-002
Eigenmode no. 8 = 0.0000000000000e+000 0.0000000000000e+000 4.5019067530685e-002 -1.2650734482709e-002 6.3282895519666e-002 7.4968732888631e-002 1.5222482349160e-001 1.2130501958371e-001 1.6232648055486e-001 4.0808316663918e-002 2.6708275155843e-001 3.6237808086639e-002 1.7884528126239e-001 -1.3672870987136e-001 2.2930850569004e-001 -4.1062302043190e-002 1.4545989330600e-001 2.3745490119759e-002 1.9896865351130e-001 8.3296293220555e-002 1.0464420028158e-001 1.1378268636143e-001 1.6043772446507e-001 -7.1919000794619e-002 3.0348534564738e-002 -5.2234396609761e-002 3.6181816294861e-002 -9.3140301208366e-002 -3.5897269619290e-002 -1.5585856805284e-002 4.9345529528378e-003 4.5523236263997e-002 -3.0548834355383e-002 0.0000000000000e+000 -7.5684525821682e-002 -2.0626873857230e-002 -9.3172386546941e-003 6.1782983109111e-002 2.3596948819347e-001 3.2551250913120e-002 2.7927694982338e-002 -4.1450699139059e-002 1.8658062043921e-002 4.7050573752261e-002 1.3504540335779e-001 -2.6099332899285e-002 -1.1176275426515e-001 -5.1677119926132e-002 -9.5084881177602e-002 2.6187796360282e-002 -1.7293532042879e-001 -2.0113072471094e-002 -2.0526286440050e-001 -1.7033344797512e-001 -2.4610110018997e-001 -1.2428708923267e-001 -2.9933126831713e-001 6.2441732343434e-002 -2.6297879491756e-001 1.7019419327806e-001 -2.6132307222513e-001 1.0937703890382e-001 -1.9466224850853e-001 -2.3062582748917e-002
Eigenmode no. 9 = 0.0000000000000e+000 0.0000000000000e+000 1.3227681476080e-002 3.3192571173647e-002 5.0306026040027e-002 1.7632821470996e-002 3.2753719779428e-002 -2.0297041230910e-002 2.3133337147472e-002 -3.8555494791249e-002 -3.0655412918515e-002 -1.6168579889711e-002 1.7009670919696e-003 6.3624974447917e-002 -2.4675694460226e-002 2.8209999409771e-002 -9.2249968955878e-002 -3.9160340019335e-002 -1.8426384926706e-001 2.1459788044976e-001 -6.1853647275480e-002 1.2610645459098e-001 8.9190261719460e-002 -3.1624362666378e-001 1.8772150796868e-002 -2.6221979969156e-001 -5.0716752729721e-002 8.7031139694910e-002 2.2619525863538e-002 1.9728247096601e-001 1.1048252617175e-001 1.5842581118818e-001 1.0146061563186e-001 0.0000000000000e+000 2.1942267756064e-002 1.4057826478852e-002 1.1953263591747e-001 -6.5633495291519e-003 -6.3030860803691e-002 -1.5795686265282e-002 1.1819924213426e-001 2.7065129790703e-002 -3.9377758099088e-001 9.9967329781563e-002 4.0161418823804e-001 -1.3805054404018e-001 -3.6029394504359e-001 2.0830925186719e-002 1.8761038114122e-001 8.2864617164145e-002 1.0643193446977e-001 -1.4366141044570e-002 8.9689388632602e-002 4.7877268460419e-002 5.3229364713021e-002 1.4580202177157e-002 4.3530095699774e-002 -3.8535555222327e-002 5.3177257332191e-002 -1.7810196183897e-002 -8.8708840224157e-002 -1.6939698578274e-002 -6.8225795589519e-002 -7.6035996433185e-002
Eigenmode no. 10 = 0.0000000000000e+000 0.0000000000000e+000 -7.6267211596327e-002 1.9637103332726e-001 -9.9875722077909e-003 1.8139248975445e-001 2.7979881245992e-002 4.3645645213187e-004 -9.0331022818825e-002 -3.2157263604989e-001 -1.1552181931814e-001 -2.5163376510220e-001 4.6596897312913e-002 1.7778253906119e-001 1.6998479749663e-001 1.6978262336635e-001 8.5556632986709e-002 -5.8127438813572e-002 7.2372953187521e-002 -3.7807520871614e-002 4.2589670517352e-002 8.8248331995353e-003 3.4829894643722e-002 6.4041739565440e-002 8.9053319424787e-003 5.3002387862911e-002 1.9014601806210e-002 -4.4069668039945e-002 -2.0107550274169e-002 -4.8559293437380e-002 -3.0548881359723e-002 -2.3088461334545e-002 -3.8573532382523e-002 0.0000000000000e+000 -2.2057463921668e-001 7.6184940752801e-002 3.3715527740894e-001 5.3062378410982e-002 -4.8865543978289e-001 -1.6135924216798e-001 3.3171164728113e-001 9.4442004381369e-002 1.4850581495198e-002 -1.3904730460514e-002 -2.7598928498363e-002 3.1153699490889e-002 5.0223345870903e-002 -1.7939945724779e-002 -7.4792597721941e-002 -1.1183632986967e-002 1.6061768032894e-002 -7.8909754629609e-002 1.4842429479871e-002 7.5119235361947e-004 -1.1452031209128e-001 -2.8767611847098e-002 -7.2261236602651e-002 -4.0231689702117e-002 -7.6364995315407e-002 2.8139289593046e-002 -5.0611418266478e-002 5.3391209883378e-002 -3.9386704373346e-002 1.0873825390163e-002
node 1 -9.6 0
node 2 -8.4 0
node 3 -7.2 0
node 4 -6 0
node 5 -4.8 0
node 6 -3.6 0
node 7 -2.4 0
node 8 -1.2 0
node 9 0 0
node 10 1.2 0
node 11 2.4 0
node 12 3.6 0
node 13 4.8 0
node 14 6 0
node 15 7.2 0
node 16 8.4 0
node 17 9.6 0
node 18 -8.4 2
node 19 -6 2.25
node 20 -3.6 2.5
node 21 -1.2 2.5
node 22 1.2 2.5
node 23 3.6 2.5
node 24 6 2.25
node 25 8.4 2
node 26 -7.2 4
node 27 -4.8 4.5
node 28 -2.4 5
node 29 0 5.2
node 30 2.4 5
node 31 4.8 4.5
node 32 7.2 4
material 1 7800 $Section1$ 2.1e11
material 2 7800 $Section2$ 2.1e11
material 3 7800 $Section3$ 2.1e11
beam 1 1 2 1
beam 2 2 3 1
beam 3 3 4 1
beam 4 4 5 1
beam 5 5 6 1
beam 6 6 7 1
beam 7 7 8 1
beam 8 8 9 1
beam 9 9 10 1
beam 10 10 11 1
beam 11 11 12 1
beam 12 12 13 1
beam 13 13 14 1
beam 14 14 15 1
beam 15 15 16 1
beam 16 16 17 1
beam 17 18 1 3
beam 18 18 2 3
beam 19 18 3 3
beam 20 19 3 3
beam 21 19 4 3
beam 22 19 5 3
beam 23 20 5 3
beam 24 20 6 3
beam 25 20 7 3
beam 26 21 7 3
beam 27 21 8 3
beam 28 21 9 3
beam 29 22 9 3
beam 30 22 10 3
beam 31 22 11 3
beam 32 23 11 3
beam 33 23 12 3
beam 34 23 13 3
beam 35 24 13 3
beam 36 24 14 3
beam 37 24 15 3
beam 38 25 15 3
beam 39 25 16 3
beam 40 25 17 3
beam 41 26 18 3
beam 42 26 19 3
beam 43 27 20 3
beam 44 28 21 3
beam 45 30 22 3
beam 46 31 23 3
beam 47 32 24 3
beam 48 32 25 3
beam 49 3 26 3
beam 50 5 27 3
beam 51 7 28 3
beam 52 9 29 3
beam 53 11 30 3
beam 54 13 31 3
beam 55 15 32 3
beam 56 26 27 2
beam 57 27 28 2
beam 58 28 29 2
beam 59 29 30 2
beam 60 30 31 2
beam 61 31 32 2
fixx 1
fixy 1
fixy 17
forcey 9 -500000
nummodes 10
zoomfactor 15
end
+---------------+
| StatTruss 2.0 |
+---------------+
Results of this program can be used for demo purposes only
There is no guarantee of correctness of results
Results for problem in file pennsylvania.inp
Mass = 4535.12
Nodal displacements
Node 1: DX = 0 DY = 0
Node 2: DX = 0.000211459 DY = -0.00285464
Node 3: DX = 0.000425175 DY = -0.00450769
Node 4: DX = 0.000657583 DY = -0.00590886
Node 5: DX = 0.000889435 DY = -0.00772455
Node 6: DX = 0.0012832 DY = -0.00933992
Node 7: DX = 0.0016766 DY = -0.0112068
Node 8: DX = 0.00219061 DY = -0.0126869
Node 9: DX = 0.00270412 DY = -0.0145284
Node 10: DX = 0.00321764 DY = -0.0126869
Node 11: DX = 0.00373165 DY = -0.0112068
Node 12: DX = 0.00412505 DY = -0.00933992
Node 13: DX = 0.00451881 DY = -0.00772455
Node 14: DX = 0.00475066 DY = -0.00590886
Node 15: DX = 0.00498307 DY = -0.00450769
Node 16: DX = 0.00519679 DY = -0.00285464
Node 17: DX = 0.00540825 DY = 0
Node 18: DX = 0.00318177 DY = -0.0028572
Node 19: DX = 0.00287264 DY = -0.0059098
Node 20: DX = 0.00408618 DY = -0.00934132
Node 21: DX = 0.00475414 DY = -0.0126879
Node 22: DX = 0.00065411 DY = -0.0126879
Node 23: DX = 0.00132207 DY = -0.00934132
Node 24: DX = 0.0025356 DY = -0.0059098
Node 25: DX = 0.00222647 DY = -0.0028572
Node 26: DX = 0.00416505 DY = -0.0043924
Node 27: DX = 0.00423883 DY = -0.00866271
Node 28: DX = 0.00388658 DY = -0.0122471
Node 29: DX = 0.00270412 DY = -0.0140562
Node 30: DX = 0.00152166 DY = -0.0122471
Node 31: DX = 0.00116942 DY = -0.00866271
Node 32: DX = 0.0012432 DY = -0.0043924
Stresses
Beam 1: Sigma = 3.75995e+007
Beam 2: Sigma = 3.75994e+007
Beam 3: Sigma = 4.08145e+007
Beam 4: Sigma = 4.08145e+007
Beam 5: Sigma = 6.9099e+007
Beam 6: Sigma = 6.9099e+007
Beam 7: Sigma = 9.01118e+007
Beam 8: Sigma = 9.01118e+007
Beam 9: Sigma = 9.01118e+007
Beam 10: Sigma = 9.01118e+007
Beam 11: Sigma = 6.9099e+007
Beam 12: Sigma = 6.9099e+007
Beam 13: Sigma = 4.08145e+007
Beam 14: Sigma = 4.08145e+007
Beam 15: Sigma = 3.75994e+007
Beam 16: Sigma = 3.75995e+007
Beam 17: Sigma = -7.28614e+007
Beam 18: Sigma = -37642.5
Beam 19: Sigma = -68960.8
Beam 20: Sigma = -6.90521e+006
Beam 21: Sigma = 14095.8
Beam 22: Sigma = 5.5119e+007
Beam 23: Sigma = -5.44639e+006
Beam 24: Sigma = 14479.7
Beam 25: Sigma = 4.85199e+007
Beam 26: Sigma = -102541
Beam 27: Sigma = 27131.3
Beam 28: Sigma = 5.85706e+007
Beam 29: Sigma = 5.85706e+007
Beam 30: Sigma = 27131.3
Beam 31: Sigma = -102541
Beam 32: Sigma = 4.85199e+007
Beam 33: Sigma = 14479.7
Beam 34: Sigma = -5.44639e+006
Beam 35: Sigma = 5.5119e+007
Beam 36: Sigma = 14095.8
Beam 37: Sigma = -6.90521e+006
Beam 38: Sigma = -68960.8
Beam 39: Sigma = -37642.5
Beam 40: Sigma = -7.28614e+007
Beam 41: Sigma = -7.29262e+007
Beam 42: Sigma = 5.1604e+007
Beam 43: Sigma = 4.53263e+007
Beam 44: Sigma = 5.85309e+007
Beam 45: Sigma = 5.85309e+007
Beam 46: Sigma = 4.53263e+007
Beam 47: Sigma = 5.1604e+007
Beam 48: Sigma = -7.29262e+007
Beam 49: Sigma = 6.14428e+006
Beam 50: Sigma = -4.37226e+007
Beam 51: Sigma = -4.36683e+007
Beam 52: Sigma = 1.90698e+007
Beam 53: Sigma = -4.36683e+007
Beam 54: Sigma = -4.37226e+007
Beam 55: Sigma = 6.14428e+006
Beam 56: Sigma = -6.81112e+007
Beam 57: Sigma = -9.19546e+007
Beam 58: Sigma = -1.158e+008
Beam 59: Sigma = -1.158e+008
Beam 60: Sigma = -9.19546e+007
Beam 61: Sigma = -6.81112e+007
Reaction forces
Node 1: FX = -2.60981e-010
Node 1: FY = 250000
Node 17: FY = 250000
import shutil
import os
import optimus
# Create new project
project = optimus.createProject(".")
project = optimus.getProject(0)
graph = project.getActiveGraph()
# Create an input array
inputArray = optimus.InputVarArray("InputArray1", optimus.Position(130, 200))
graph.addInputVarArray(inputArray)
section1 = optimus.InputVar("Section1", optimus.Position(0,0))
section1.setDoubleNominal(0.004)
section1.setDoubleLow(0.0015)
section1.setDoubleHigh(0.0065)
inputArray.appendInputVar(section1);
section2 = optimus.InputVar("Section2", optimus.Position(0,0))
section2.setDoubleNominal(0.004)
section2.setDoubleLow(0.0015)
section2.setDoubleHigh(0.0065)
inputArray.appendInputVar(section2);
section3 = optimus.InputVar("Section3", optimus.Position(0,0))
section3.setDoubleNominal(0.004)
section3.setDoubleLow(0.0015)
section3.setDoubleHigh(0.0065)
inputArray.appendInputVar(section3);
inputArray.deleteInputVar(0)
# Create input file
inputFile = optimus.File("Inputfile",optimus.Position(230,200))
inputFile.setExperimentNumbering(1)
graph.addFile(inputFile)
# Connect input array and input file
inputArray.newConnection(inputFile)
projectFileName = "bridge_tutorial.opt"
optimus.saveProject(projectFileName, True)
inputFileName = os.path.join(os.getcwd(), "pennsylvania.inp")
# do the input substitution
inputFileSource = open(inputFileName, "r")
inputFileLines = inputFileSource.readlines()
inputFileSource.close()
sectionCpt = 0
projectDir = projectFileName + "dir"
graphName = graph.getName()
inputFileTemplateName = inputFile.getName()+".tpl"
inputFileName = os.path.join(projectDir,graphName,inputFileTemplateName)
inputFileWrite = open(inputFileName, "w")
for line in inputFileLines:
if line.find("material")==0:
inputName = inputArray.getInputVar(sectionCpt).getName()
substitutedLine = line.replace("0.004","$"+inputName+"$")
inputFileWrite.write(substitutedLine)
sectionCpt += 1
else:
inputFileWrite.write(line)
inputFileWrite.close()
# Create Action "Static_Simulation"
staticAction = optimus.Action("Static_Simulation",optimus.Position(330,130))
staticAction.setCommand("echo truss_stat.exe $Inputfile$ $Static_Outputfile$\ntruss_stat.exe $Inputfile$ $Static_Outputfile$")
graph.addAnalysis(staticAction)
# Connect input file and the action
inputFile.newConnection(staticAction)
# Create Static_Outputfile
staticOutputfile = optimus.File("Static_Outputfile",optimus.Position(430,130))
staticOutputfile.setExperimentNumbering(1)
graph.addFile(staticOutputfile)
staticOutputFileName = os.path.join(os.getcwd(), "pennsylvania_stat.out")
shutil.copyfile(staticOutputFileName,os.path.join(projectFileName+"dir",graph.getName(),staticOutputfile.getName()+".tpl"))
# Connect action and Static_Outputfile
staticAction.newConnection(staticOutputfile)
mass = optimus.OutputVar("Mass", optimus.Position(530, 80))
graph.addOutputVar(mass)
staticOutputfile.newConnection(mass)
extrRule = staticOutputfile.getExtrRule(staticOutputfile.numberExtrRules()-1)
extrRule.setPage("Mass")
extrRule.setSortRule(0)
extrRule.setWordNr(3)
stresses = optimus.OutputVector("Stresses", optimus.Position(530, 130))
graph.addOutputVector(stresses)
staticOutputfile.newConnection(stresses)
vectorExtrRule = staticOutputfile.getVectorExtrRule(staticOutputfile.numberVectorExtrRules()-1)
vectorExtrRule.setPage("Stresses")
vectorExtrRule.setOffsetYr("1")
vectorExtrRule.setColNrYr("5")
abs_stresses = optimus.OutputVector("Abs_Stresses", optimus.Position(630, 130))
abs_stresses.setFormula("abs($Stresses$)")
graph.addOutputVector(abs_stresses)
stresses.newConnection(abs_stresses)
max_stress = optimus.OutputVar("Max_Stress", optimus.Position(730, 130))
max_stress.setFormula("YMax($Abs_Stresses$)")
graph.addOutputVar(max_stress)
abs_stresses.newConnection(max_stress)
displacement = optimus.OutputVector("Displacement", optimus.Position(530, 180))
graph.addOutputVector(displacement)
staticOutputfile.newConnection(displacement)
vectorExtrRule = staticOutputfile.getVectorExtrRule(staticOutputfile.numberVectorExtrRules()-1)
vectorExtrRule.setPage("Nodal displacements")
vectorExtrRule.setComplex(1)
vectorExtrRule.setOffsetYr("1")
vectorExtrRule.setColNrYr("5")
vectorExtrRule.setOffsetYi("1")
vectorExtrRule.setColNrYi("8")
max_disp = optimus.OutputVar("Max_Displacement", optimus.Position(630, 180))
max_disp.setFormula("YMax($Displacement$)")
graph.addOutputVar(max_disp)
displacement.newConnection(max_disp)
# Create Action "Dynamic_Simulation"
dynamicAction = optimus.Action("Dynamic_Simulation",optimus.Position(330,270))
graph.addAnalysis(dynamicAction)
dynamicAction.setCommand("echo truss_dyn.exe $Inputfile$ $Dynamic_Outputfile$\ntruss_dyn.exe $Inputfile$ $Dynamic_Outputfile$")
# Connect input file and the action
inputFile.newConnection(dynamicAction)
# Create Dynamic_Outputfile
dynamicOutputfile = optimus.File("Dynamic_Outputfile",optimus.Position(430,270))
dynamicOutputfile.setExperimentNumbering(1)
graph.addFile(dynamicOutputfile)
dynamicOutputFileName = os.path.join(os.getcwd(), "pennsylvania_dyn.out")
shutil.copyfile(dynamicOutputFileName,os.path.join(projectFileName+"dir",graph.getName(),dynamicOutputfile.getName()+".tpl"))
# Connect action and Dynamic_Outputfile
dynamicAction.newConnection(dynamicOutputfile)
first_mode = optimus.OutputVar("First_Mode", optimus.Position(530, 270))
graph.addOutputVar(first_mode)
dynamicOutputfile.newConnection(first_mode)
extrRule = dynamicOutputfile.getExtrRule(staticOutputfile.numberExtrRules()-1)
extrRule.setPage("f_1")
extrRule.setSortRule(0)
extrRule.setWordNr(3)
optimus.saveProject(projectFileName, True)
node 1 -9.6 0
node 2 -8.4 0
node 3 -7.2 0
node 4 -6 0
node 5 -4.8 0
node 6 -3.6 0
node 7 -2.4 0
node 8 -1.2 0
node 9 0 0
node 10 1.2 0
node 11 2.4 0
node 12 3.6 0
node 13 4.8 0
node 14 6 0
node 15 7.2 0
node 16 8.4 0
node 17 9.6 0
node 18 -8.4 2
node 19 -6 2.25
node 20 -3.6 2.5
node 21 -1.2 2.5
node 22 1.2 2.5
node 23 3.6 2.5
node 24 6 2.25
node 25 8.4 2
node 26 -7.2 4
node 27 -4.8 4.5
node 28 -2.4 5
node 29 0 5.2
node 30 2.4 5
node 31 4.8 4.5
node 32 7.2 4
material 1 7800 0.004 2.1e11
material 2 7800 0.004 2.1e11
material 3 7800 0.004 2.1e11
beam 1 1 2 1
beam 2 2 3 1
beam 3 3 4 1
beam 4 4 5 1
beam 5 5 6 1
beam 6 6 7 1
beam 7 7 8 1
beam 8 8 9 1
beam 9 9 10 1
beam 10 10 11 1
beam 11 11 12 1
beam 12 12 13 1
beam 13 13 14 1
beam 14 14 15 1
beam 15 15 16 1
beam 16 16 17 1
beam 17 18 1 3
beam 18 18 2 3
beam 19 18 3 3
beam 20 19 3 3
beam 21 19 4 3
beam 22 19 5 3
beam 23 20 5 3
beam 24 20 6 3
beam 25 20 7 3
beam 26 21 7 3
beam 27 21 8 3
beam 28 21 9 3
beam 29 22 9 3
beam 30 22 10 3
beam 31 22 11 3
beam 32 23 11 3
beam 33 23 12 3
beam 34 23 13 3
beam 35 24 13 3
beam 36 24 14 3
beam 37 24 15 3
beam 38 25 15 3
beam 39 25 16 3
beam 40 25 17 3
beam 41 26 18 3
beam 42 26 19 3
beam 43 27 20 3
beam 44 28 21 3
beam 45 30 22 3
beam 46 31 23 3
beam 47 32 24 3
beam 48 32 25 3
beam 49 3 26 3
beam 50 5 27 3
beam 51 7 28 3
beam 52 9 29 3
beam 53 11 30 3
beam 54 13 31 3
beam 55 15 32 3
beam 56 26 27 2
beam 57 27 28 2
beam 58 28 29 2
beam 59 29 30 2
beam 60 30 31 2
beam 61 31 32 2
fixx 1
fixy 1
fixy 17
forcey 9 -500000
nummodes 10
zoomfactor 15
end
+--------------+
| DynTruss 2.0 |
+--------------+
Results of this program can be used for demo purposes only
There is no guarantee of correctness of results
Results for problem in file pennsylvania.inp
Eigenfrequencies
f_1 = 18.2186
f_2 = 29.728
f_3 = 43.2295
f_4 = 64.8767
f_5 = 79.9844
f_6 = 85.3522
f_7 = 94.2301
f_8 = 102.396
f_9 = 119.143
f_10 = 119.752
Eigenmodes
Eigenmode no. 1 = 0.0000000000000e+000 0.0000000000000e+000 3.2111144116039e-002 -9.1431486548585e-002 5.5978928575492e-002 -1.3563418190350e-001 4.5947895697205e-002 -1.6385448063888e-001 7.9715554172815e-002 -2.1096040652810e-001 7.4766901058335e-002 -2.2271810779255e-001 1.0254064038618e-001 -2.5966442330327e-001 9.8366862835470e-002 -2.4752027789846e-001 1.2316141368850e-001 -2.6375072243294e-001 1.2388393017093e-001 -2.3529586486278e-001 1.4053289560034e-001 -2.4155925731063e-001 1.4285537330795e-001 -1.9148998321671e-001 1.5638091809849e-001 -1.8183233626771e-001 1.5980236142999e-001 -1.2469481361169e-001 1.6611804476891e-001 -1.0796310104470e-001 1.6585092821562e-001 -5.2066993163214e-002 1.4957059769108e-001 0.0000000000000e+000 8.2806426927539e-002 -4.4899914184627e-002 5.8996612941213e-002 -6.6740441075279e-002 6.5356184218129e-002 -9.4624395379028e-002 5.2479950221408e-002 -1.1671232539433e-001 4.6232640289487e-002 -1.1236144318394e-001 2.9789580150245e-002 -8.7683860387906e-002 4.0538259056901e-002 -5.9014595499518e-002 2.2768308411123e-002 -4.2431304031937e-002 1.0115829630732e-001 -8.1055552110394e-002 9.4134776598057e-002 -1.2768183843243e-001 8.1111368462498e-002 -1.3757113889906e-001 6.7708677966804e-002 -1.4855822835682e-001 4.6474820585077e-002 -1.2587241451468e-001 4.3406580780322e-002 -1.0187072540851e-001 3.1399864716796e-002 -3.9373312680990e-002
Eigenmode no. 2 = 0.0000000000000e+000 0.0000000000000e+000 4.5544239645745e-002 -1.1939843988178e-002 8.4777431745245e-002 -1.7641206571488e-002 9.4498269170717e-002 -2.2568904368597e-002 1.3496770541660e-001 2.5061495111748e-002 1.3669106643356e-001 4.1646453630567e-002 1.7381016614361e-001 1.0667303492042e-001 1.7066540640676e-001 1.2290878801054e-001 2.0704490183366e-001 1.8383449741969e-001 1.9536308947719e-001 1.9183383424526e-001 2.2737192823273e-001 2.1006986112758e-001 2.0796136843283e-001 1.7970717554277e-001 2.3460692407939e-001 1.7668246258160e-001 2.0193628471421e-001 1.2585887365050e-001 2.3459302254014e-001 1.1508819107303e-001 1.9705110002750e-001 5.9675357394542e-002 1.8964561685692e-001 0.0000000000000e+000 5.4019610124746e-002 -6.2592163716138e-003 4.3641625094765e-002 -2.0558413005397e-002 2.7170156939308e-002 6.7371956205030e-003 4.1717896423132e-002 4.7367481257086e-002 8.6036057040728e-002 8.8583249169734e-002 1.2350409552095e-001 8.1460936029151e-002 1.2382663172606e-001 5.8328953441153e-002 1.4961475993254e-001 4.7357521884128e-002 1.0180305885276e-001 -4.8341199159268e-003 9.8290348389636e-002 4.4076285855614e-002 1.0407978414517e-001 7.8100209157412e-002 1.2866726116727e-001 1.0363269711769e-001 1.4196567232987e-001 1.0066271397329e-001 1.6636296392250e-001 1.0011119396759e-001 1.2979768471561e-001 4.0553722032063e-002
Eigenmode no. 3 = 0.0000000000000e+000 0.0000000000000e+000 1.8919356534734e-002 -1.6690623713572e-001 1.3031430339288e-002 -2.2731823074456e-001 -1.0170478684012e-002 -2.4237094111860e-001 -4.6774081257073e-003 -2.9266219064659e-001 -1.4375254356926e-002 -2.7692372789886e-001 -2.7683334221194e-002 -2.4825724146588e-001 -4.2441277826319e-002 -1.6328521837778e-001 -4.8018474452657e-002 -3.0510438306034e-002 -6.7700752790660e-002 1.3929889283005e-001 -7.3325435612650e-002 1.9368476934692e-001 -8.0319312068390e-002 2.6422162913332e-001 -9.2048356102683e-002 2.6850745585697e-001 -1.0884532683091e-001 2.4319173970273e-001 -1.0582379518406e-001 2.1911232696584e-001 -1.1826255888365e-001 1.1502850281397e-001 -1.0310806389260e-001 0.0000000000000e+000 1.0044247116259e-001 -8.0964013112326e-002 2.0364675172067e-002 -9.9983381577298e-002 -2.6386277044924e-004 -1.3002001127912e-001 -1.2512803455502e-001 -1.0083908368378e-001 -1.5893367216860e-001 5.9249394640541e-002 -6.0112060988977e-002 1.1976846816398e-001 -3.0807791256692e-002 1.1393219868398e-001 5.2160807649366e-002 8.9286832078512e-002 4.5302150510860e-002 -1.1472706199921e-001 2.6199090753424e-002 -1.5056460393738e-001 -5.5289816150576e-003 -6.4289804781513e-002 -4.0816929633387e-002 -7.6395372225705e-003 -1.0121053489061e-002 5.7938052344412e-002 8.1025182363088e-003 1.3347611152819e-001 1.3059304051174e-002 7.4589726097516e-002
Eigenmode no. 4 = 0.0000000000000e+000 0.0000000000000e+000 4.7870241728491e-002 -2.4666155842064e-001 3.1949678807972e-002 -3.0848392173791e-001 3.3568437927005e-003 -2.7491122514349e-001 6.8583016773393e-003 -1.8181328545422e-001 -8.5285222751503e-003 -9.3936191229217e-002 -1.5614201415319e-002 9.1715085518941e-002 -3.2021393354356e-002 1.8214402496335e-001 -1.2433425350776e-002 2.9298700783714e-001 6.8208736289071e-003 1.5362638825449e-001 -1.3030330102376e-002 7.8635805535553e-002 -1.1728409555384e-002 -1.3336294665002e-001 -2.4404390004712e-002 -1.8756271031369e-001 -1.5202021628221e-002 -2.9668840112168e-001 -4.0628184761661e-002 -2.9334539942101e-001 -3.1646824851230e-002 -1.7294964782176e-001 -3.5127815470439e-002 0.0000000000000e+000 1.6778907278024e-001 -1.1672984188996e-001 -4.4029349682266e-002 -1.3901849563171e-001 -1.1664045925989e-001 -7.5651006440603e-002 -1.5326833808872e-001 6.3176053938307e-002 1.1991132764709e-001 7.9401734536293e-002 1.1150825908311e-001 -5.5017211479860e-002 4.4657411438030e-002 -1.3444870993981e-001 -1.6060017937080e-001 -1.2519916332780e-001 4.5045566393118e-002 -1.0086414871793e-001 1.5673218360283e-002 -4.7585545633316e-003 -1.3336441405905e-002 1.4480812186523e-001 -9.8857731627661e-003 1.9264575563265e-001 -1.0026959834222e-002 9.5337599250002e-002 -4.7960939124436e-002 -5.2059905419496e-002 -5.2525281897560e-002 -8.4349673560822e-002
Eigenmode no. 5 = 0.0000000000000e+000 0.0000000000000e+000 -7.1412228007661e-002 2.6893650827427e-001 -3.7952800951823e-002 2.8457389571779e-001 -3.5376267815269e-002 1.7864328943430e-001 -4.0992965094152e-002 -3.3855198727666e-002 -6.8953699193841e-002 -1.4401461676312e-001 -8.2400063685899e-002 -2.3257639737639e-001 -1.2879270623587e-001 -1.8803651933584e-001 -7.1200532792149e-002 2.8882724976236e-002 -1.0219526034882e-001 2.2545519031773e-001 -3.2076173222162e-002 2.1688865352198e-001 -5.2881200700484e-003 8.8252187726239e-002 2.8093334872856e-002 -9.2514933160691e-003 2.9779513206593e-002 -2.4182360523052e-001 2.8907375840280e-002 -2.7934672849719e-001 -6.3118379272046e-004 -1.9194807107653e-001 7.6036518775612e-003 0.0000000000000e+000 -1.6907736580278e-001 1.2735295866800e-001 1.5151829625428e-001 1.1716527665997e-001 1.2383099715301e-001 -4.1913090444459e-002 -1.9924091390467e-001 -1.1580545899296e-001 -1.7765364638736e-001 9.9534772288692e-002 1.5101656555580e-001 4.7969396765240e-002 1.8901683916672e-001 -1.0383271241741e-001 -1.1845155186487e-001 -1.2941020038070e-001 5.0162356854168e-002 4.6503202925231e-002 8.3067888004172e-002 -7.3516084016396e-002 1.1119359553933e-001 -2.7823272806212e-002 8.3239030564892e-002 1.4551648426351e-002 1.2262668986761e-001 4.4235645812330e-002 9.5484158332163e-002 4.2608221139616e-002 5.3375376637288e-002 -5.6316611194861e-002
Eigenmode no. 6 = 0.0000000000000e+000 0.0000000000000e+000 8.4833541102811e-002 2.5677859789657e-002 1.7211122159780e-001 2.6951232425445e-002 1.7400104006471e-001 7.1789469698867e-003 2.3687873169363e-001 5.4033928486855e-002 1.8982576858202e-001 6.5471702476485e-002 2.1734236585595e-001 5.6446923531786e-002 1.3619982294853e-001 2.3626764068461e-002 8.5742533888034e-002 -6.4453174730710e-002 -5.7648147138228e-002 3.1499277904650e-002 -8.3969110388126e-002 9.7119425786770e-003 -1.9060013011675e-001 8.4883302203975e-002 -2.0432771187902e-001 2.0086850502238e-002 -2.5627134199076e-001 -2.0762638575214e-002 -2.8533625147000e-001 -1.0769749282123e-001 -3.0793250995241e-001 -1.1347806851195e-001 -2.7325791672388e-001 0.0000000000000e+000 9.0865076665867e-002 9.4765306280014e-003 1.4945507129850e-001 -8.8240640488388e-003 1.5881122735519e-001 2.9175673707125e-002 2.3945016371984e-001 2.8496138783552e-002 -5.0232899881750e-002 1.9150385842215e-002 -1.0652898956972e-001 4.3578047419215e-002 -2.8984308869054e-002 5.0878684931937e-003 -1.6474839841417e-001 -7.2379268552813e-002 2.1389592124121e-001 -5.2995714383602e-003 1.8724281064494e-001 3.9893872742778e-002 1.6307120418657e-001 2.6741021124166e-003 1.5336310451670e-001 -3.3446014420263e-002 1.0036262471071e-001 -2.9089230821225e-002 4.6941418165554e-002 -3.2021837752988e-002 1.4219309750160e-002 -7.3136770802958e-003
Eigenmode no. 7 = 0.0000000000000e+000 0.0000000000000e+000 3.2387416436361e-002 -2.0902060577584e-001 -3.3921469317056e-002 -2.0638214465797e-001 -3.8837471456264e-002 -8.5213089760188e-002 -3.6177965611698e-002 1.2888485541201e-001 8.5442941229022e-003 1.8520940501935e-001 3.1375314902235e-002 1.1534579449053e-001 9.5249623206099e-002 -8.0728448858434e-003 -2.7721211320438e-002 -2.5781934832309e-001 -1.0678020835513e-001 9.0616898399369e-002 -3.3874447567238e-002 1.6411591914363e-001 3.4569054211634e-002 1.6669756998563e-001 5.4342875740603e-002 8.6126785534292e-002 8.1403786066081e-002 -1.7701853259672e-001 6.7851577941854e-002 -2.0152541149462e-001 3.6061954508598e-002 -1.3332715174348e-001 3.4878509202498e-002 0.0000000000000e+000 1.1260465666640e-001 -9.4090531288916e-002 -2.3246054259765e-001 -7.3613698925597e-002 -8.5554420782176e-002 8.6683096808305e-002 3.3859998706741e-001 3.5942377579770e-002 -3.8347809728410e-001 3.5961281327985e-002 9.0808491462885e-002 8.3139674018595e-002 2.1419646289484e-001 -7.6156256112506e-002 -9.1149333573008e-002 -8.4557806498099e-002 -1.2108849409939e-001 8.2445999296001e-003 -1.2175262071046e-001 6.5278002107861e-002 -1.0285975702899e-001 -1.3278380584486e-001 -4.2150855814016e-002 -2.1421289076244e-001 3.1888634584173e-002 -2.9088003883291e-002 5.2267022378563e-002 1.0514655947285e-001 3.2352053606454e-002 -2.1608797055297e-002
Eigenmode no. 8 = 0.0000000000000e+000 0.0000000000000e+000 4.5019067530685e-002 -1.2650734482709e-002 6.3282895519666e-002 7.4968732888631e-002 1.5222482349160e-001 1.2130501958371e-001 1.6232648055486e-001 4.0808316663918e-002 2.6708275155843e-001 3.6237808086639e-002 1.7884528126239e-001 -1.3672870987136e-001 2.2930850569004e-001 -4.1062302043190e-002 1.4545989330600e-001 2.3745490119759e-002 1.9896865351130e-001 8.3296293220555e-002 1.0464420028158e-001 1.1378268636143e-001 1.6043772446507e-001 -7.1919000794619e-002 3.0348534564738e-002 -5.2234396609761e-002 3.6181816294861e-002 -9.3140301208366e-002 -3.5897269619290e-002 -1.5585856805284e-002 4.9345529528378e-003 4.5523236263997e-002 -3.0548834355383e-002 0.0000000000000e+000 -7.5684525821682e-002 -2.0626873857230e-002 -9.3172386546941e-003 6.1782983109111e-002 2.3596948819347e-001 3.2551250913120e-002 2.7927694982338e-002 -4.1450699139059e-002 1.8658062043921e-002 4.7050573752261e-002 1.3504540335779e-001 -2.6099332899285e-002 -1.1176275426515e-001 -5.1677119926132e-002 -9.5084881177602e-002 2.6187796360282e-002 -1.7293532042879e-001 -2.0113072471094e-002 -2.0526286440050e-001 -1.7033344797512e-001 -2.4610110018997e-001 -1.2428708923267e-001 -2.9933126831713e-001 6.2441732343434e-002 -2.6297879491756e-001 1.7019419327806e-001 -2.6132307222513e-001 1.0937703890382e-001 -1.9466224850853e-001 -2.3062582748917e-002
Eigenmode no. 9 = 0.0000000000000e+000 0.0000000000000e+000 1.3227681476080e-002 3.3192571173647e-002 5.0306026040027e-002 1.7632821470996e-002 3.2753719779428e-002 -2.0297041230910e-002 2.3133337147472e-002 -3.8555494791249e-002 -3.0655412918515e-002 -1.6168579889711e-002 1.7009670919696e-003 6.3624974447917e-002 -2.4675694460226e-002 2.8209999409771e-002 -9.2249968955878e-002 -3.9160340019335e-002 -1.8426384926706e-001 2.1459788044976e-001 -6.1853647275480e-002 1.2610645459098e-001 8.9190261719460e-002 -3.1624362666378e-001 1.8772150796868e-002 -2.6221979969156e-001 -5.0716752729721e-002 8.7031139694910e-002 2.2619525863538e-002 1.9728247096601e-001 1.1048252617175e-001 1.5842581118818e-001 1.0146061563186e-001 0.0000000000000e+000 2.1942267756064e-002 1.4057826478852e-002 1.1953263591747e-001 -6.5633495291519e-003 -6.3030860803691e-002 -1.5795686265282e-002 1.1819924213426e-001 2.7065129790703e-002 -3.9377758099088e-001 9.9967329781563e-002 4.0161418823804e-001 -1.3805054404018e-001 -3.6029394504359e-001 2.0830925186719e-002 1.8761038114122e-001 8.2864617164145e-002 1.0643193446977e-001 -1.4366141044570e-002 8.9689388632602e-002 4.7877268460419e-002 5.3229364713021e-002 1.4580202177157e-002 4.3530095699774e-002 -3.8535555222327e-002 5.3177257332191e-002 -1.7810196183897e-002 -8.8708840224157e-002 -1.6939698578274e-002 -6.8225795589519e-002 -7.6035996433185e-002
Eigenmode no. 10 = 0.0000000000000e+000 0.0000000000000e+000 -7.6267211596327e-002 1.9637103332726e-001 -9.9875722077909e-003 1.8139248975445e-001 2.7979881245992e-002 4.3645645213187e-004 -9.0331022818825e-002 -3.2157263604989e-001 -1.1552181931814e-001 -2.5163376510220e-001 4.6596897312913e-002 1.7778253906119e-001 1.6998479749663e-001 1.6978262336635e-001 8.5556632986709e-002 -5.8127438813572e-002 7.2372953187521e-002 -3.7807520871614e-002 4.2589670517352e-002 8.8248331995353e-003 3.4829894643722e-002 6.4041739565440e-002 8.9053319424787e-003 5.3002387862911e-002 1.9014601806210e-002 -4.4069668039945e-002 -2.0107550274169e-002 -4.8559293437380e-002 -3.0548881359723e-002 -2.3088461334545e-002 -3.8573532382523e-002 0.0000000000000e+000 -2.2057463921668e-001 7.6184940752801e-002 3.3715527740894e-001 5.3062378410982e-002 -4.8865543978289e-001 -1.6135924216798e-001 3.3171164728113e-001 9.4442004381369e-002 1.4850581495198e-002 -1.3904730460514e-002 -2.7598928498363e-002 3.1153699490889e-002 5.0223345870903e-002 -1.7939945724779e-002 -7.4792597721941e-002 -1.1183632986967e-002 1.6061768032894e-002 -7.8909754629609e-002 1.4842429479871e-002 7.5119235361947e-004 -1.1452031209128e-001 -2.8767611847098e-002 -7.2261236602651e-002 -4.0231689702117e-002 -7.6364995315407e-002 2.8139289593046e-002 -5.0611418266478e-002 5.3391209883378e-002 -3.9386704373346e-002 1.0873825390163e-002
+---------------+
| StatTruss 2.0 |
+---------------+
Results of this program can be used for demo purposes only
There is no guarantee of correctness of results
Results for problem in file pennsylvania.inp
Mass = 4535.12
Nodal displacements
Node 1: DX = 0 DY = 0
Node 2: DX = 0.000211459 DY = -0.00285464
Node 3: DX = 0.000425175 DY = -0.00450769
Node 4: DX = 0.000657583 DY = -0.00590886
Node 5: DX = 0.000889435 DY = -0.00772455
Node 6: DX = 0.0012832 DY = -0.00933992
Node 7: DX = 0.0016766 DY = -0.0112068
Node 8: DX = 0.00219061 DY = -0.0126869
Node 9: DX = 0.00270412 DY = -0.0145284
Node 10: DX = 0.00321764 DY = -0.0126869
Node 11: DX = 0.00373165 DY = -0.0112068
Node 12: DX = 0.00412505 DY = -0.00933992
Node 13: DX = 0.00451881 DY = -0.00772455
Node 14: DX = 0.00475066 DY = -0.00590886
Node 15: DX = 0.00498307 DY = -0.00450769
Node 16: DX = 0.00519679 DY = -0.00285464
Node 17: DX = 0.00540825 DY = 0
Node 18: DX = 0.00318177 DY = -0.0028572
Node 19: DX = 0.00287264 DY = -0.0059098
Node 20: DX = 0.00408618 DY = -0.00934132
Node 21: DX = 0.00475414 DY = -0.0126879
Node 22: DX = 0.00065411 DY = -0.0126879
Node 23: DX = 0.00132207 DY = -0.00934132
Node 24: DX = 0.0025356 DY = -0.0059098
Node 25: DX = 0.00222647 DY = -0.0028572
Node 26: DX = 0.00416505 DY = -0.0043924
Node 27: DX = 0.00423883 DY = -0.00866271
Node 28: DX = 0.00388658 DY = -0.0122471
Node 29: DX = 0.00270412 DY = -0.0140562
Node 30: DX = 0.00152166 DY = -0.0122471
Node 31: DX = 0.00116942 DY = -0.00866271
Node 32: DX = 0.0012432 DY = -0.0043924
Stresses
Beam 1: Sigma = 3.75995e+007
Beam 2: Sigma = 3.75994e+007
Beam 3: Sigma = 4.08145e+007
Beam 4: Sigma = 4.08145e+007
Beam 5: Sigma = 6.9099e+007
Beam 6: Sigma = 6.9099e+007
Beam 7: Sigma = 9.01118e+007
Beam 8: Sigma = 9.01118e+007
Beam 9: Sigma = 9.01118e+007
Beam 10: Sigma = 9.01118e+007
Beam 11: Sigma = 6.9099e+007
Beam 12: Sigma = 6.9099e+007
Beam 13: Sigma = 4.08145e+007
Beam 14: Sigma = 4.08145e+007
Beam 15: Sigma = 3.75994e+007
Beam 16: Sigma = 3.75995e+007
Beam 17: Sigma = -7.28614e+007
Beam 18: Sigma = -37642.5
Beam 19: Sigma = -68960.8
Beam 20: Sigma = -6.90521e+006
Beam 21: Sigma = 14095.8
Beam 22: Sigma = 5.5119e+007
Beam 23: Sigma = -5.44639e+006
Beam 24: Sigma = 14479.7
Beam 25: Sigma = 4.85199e+007
Beam 26: Sigma = -102541
Beam 27: Sigma = 27131.3
Beam 28: Sigma = 5.85706e+007
Beam 29: Sigma = 5.85706e+007
Beam 30: Sigma = 27131.3
Beam 31: Sigma = -102541
Beam 32: Sigma = 4.85199e+007
Beam 33: Sigma = 14479.7
Beam 34: Sigma = -5.44639e+006
Beam 35: Sigma = 5.5119e+007
Beam 36: Sigma = 14095.8
Beam 37: Sigma = -6.90521e+006
Beam 38: Sigma = -68960.8
Beam 39: Sigma = -37642.5
Beam 40: Sigma = -7.28614e+007
Beam 41: Sigma = -7.29262e+007
Beam 42: Sigma = 5.1604e+007
Beam 43: Sigma = 4.53263e+007
Beam 44: Sigma = 5.85309e+007
Beam 45: Sigma = 5.85309e+007
Beam 46: Sigma = 4.53263e+007
Beam 47: Sigma = 5.1604e+007
Beam 48: Sigma = -7.29262e+007
Beam 49: Sigma = 6.14428e+006
Beam 50: Sigma = -4.37226e+007
Beam 51: Sigma = -4.36683e+007
Beam 52: Sigma = 1.90698e+007
Beam 53: Sigma = -4.36683e+007
Beam 54: Sigma = -4.37226e+007
Beam 55: Sigma = 6.14428e+006
Beam 56: Sigma = -6.81112e+007
Beam 57: Sigma = -9.19546e+007
Beam 58: Sigma = -1.158e+008
Beam 59: Sigma = -1.158e+008
Beam 60: Sigma = -9.19546e+007
Beam 61: Sigma = -6.81112e+007
Reaction forces
Node 1: FX = -2.60981e-010
Node 1: FY = 250000
Node 17: FY = 250000
import shutil
import os
import optimus
# Create new project
projectFileName = "bridge_tutorial.opt"
project = optimus.loadProject(projectFileName)
graph = project.getActiveGraph()
# Create nominal method, run it and load results
nom = optimus.createMethod(graph, optimus.MethodType().TYPE_NOMINAL)
nom.setName("Nominal")
nom.calculate()
nom.blockTillDone()
nom.loadResults()
# Create DOE method, run it and load results
lh = optimus.createMethod(graph, optimus.MethodType().TYPE_DOE)
lh.setType(optimus.DOEMethodType().MAT_LATINHYPERCUBE)
lh.setName("LH_DOE")
lho=lh.getOptions()
lho.setNumberOfExperiments(15)
lho.setRandomSeed(85)
lh.calculate()
lh.blockTillDone()
lh.loadResults()
# create surrogate model
modelOrder = 2
rsm = lh.newModel("Least_squares_10")
rsm.setModelType(optimus.ModelType.MODEL_TYPE_LSQUARE)
rsm.setSubType(optimus.LSquareModelType.MODEL_TYPE_LSQUARE_TAYLOR)
rsm.setOrder(modelOrder)
rsm.calculate()
optimus.saveProject(projectFileName, True)
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