diff options
Diffstat (limited to 'simulations_V8/structural steel_files/session_files')
5 files changed, 395 insertions, 0 deletions
diff --git a/simulations_V8/structural steel_files/session_files/journal1.wbjn b/simulations_V8/structural steel_files/session_files/journal1.wbjn new file mode 100755 index 0000000..03687ef --- /dev/null +++ b/simulations_V8/structural steel_files/session_files/journal1.wbjn @@ -0,0 +1,51 @@ +# encoding: utf-8 +# 2024 R2 +SetScriptVersion(Version="24.2.133") +template1 = GetTemplate( + TemplateName="Static Structural", + Solver="ANSYS") +system1 = template1.CreateSystem() +favorites1 = EngData.LoadFavoriteItems() +library1 = EngData.OpenLibrary( + Name="ANSYS GRANTA Materials Data for Simulation (Sample)", + Source="Granta_Design_Typical_Materials.xml") +library2 = EngData.OpenLibrary( + Name="General Materials", + Source="General_Materials.xml") +library3 = EngData.OpenLibrary( + Name="Additive Manufacturing Materials", + Source="Additive_Manufacturing_Materials.xml") +library4 = EngData.OpenLibrary( + Name="Geomechanical Materials", + Source="GeoMechanical_Materials.xml") +engineeringData1 = system1.GetContainer(ComponentName="Engineering Data") +matl1 = engineeringData1.ImportMaterial( + Name="Stainless Steel", + Source="General_Materials.xml") +matl1.SetColor( + Red=175, + Green=158, + Blue=169) +material1 = engineeringData1.GetMaterial(Name="Structural Steel") +material1.Delete() +geometry1 = system1.GetContainer(ComponentName="Geometry") +geometry1.Edit(IsDiscoveryGeometry=True) +geometry1.Exit() +template2 = GetTemplate(TemplateName="Geometry") +system2 = template2.CreateSystem( + Position="Right", + RelativeTo=system1) +system3 = template2.CreateSystem( + Position="Left", + RelativeTo=system1) +geometryComponent1 = system1.GetComponent(Name="Geometry") +geometryComponent2 = system3.GetComponent(Name="Geometry") +geometryComponent1.ReplaceWithShare( + TargetSystem=system1, + ComponentToShare=geometryComponent2, + SourceSystem=system3) +system2.Delete() +geometry2 = system1.GetContainer(ComponentName="Geometry") +geometry2.SetFile(FilePath=GetAbsoluteUserPathName("pws/ontwerp/v3/op-neer_bew_plaat.scdoc")) +geometry2.Edit(IsSpaceClaimGeometry=True) +Save(Overwrite=True) diff --git a/simulations_V8/structural steel_files/session_files/journal2.wbjn b/simulations_V8/structural steel_files/session_files/journal2.wbjn new file mode 100755 index 0000000..ccabbda --- /dev/null +++ b/simulations_V8/structural steel_files/session_files/journal2.wbjn @@ -0,0 +1,168 @@ +# encoding: utf-8 +# 2024 R2 +SetScriptVersion(Version="24.2.133") +template1 = GetTemplate(TemplateName="Mesh") +system1 = GetSystem(Name="Geom 1") +system2 = template1.CreateSystem( + Position="Below", + RelativeTo=system1) +geometryComponent1 = system2.GetComponent(Name="Geometry") +geometryComponent2 = system1.GetComponent(Name="Geometry") +geometryComponent1.ReplaceWithShare( + TargetSystem=system2, + ComponentToShare=geometryComponent2, + SourceSystem=system1) +template2 = GetTemplate(TemplateName="Mechanical APDL") +system3 = template2.CreateSystem( + Position="Right", + RelativeTo=system2) +template3 = GetTemplate(TemplateName="EngData") +system4 = template3.CreateSystem( + Position="Below", + RelativeTo=system2) +template4 = GetTemplate(TemplateName="Mechanical Model") +system5 = template4.CreateSystem( + Position="Right", + RelativeTo=system4) +engineeringDataComponent1 = system5.GetComponent(Name="Engineering Data") +engineeringDataComponent2 = system4.GetComponent(Name="Engineering Data") +engineeringDataComponent1.ReplaceWithShare( + TargetSystem=system5, + ComponentToShare=engineeringDataComponent2, + SourceSystem=system4) +system4.Delete() +system2.Delete() +system6 = template4.CreateSystem( + Position="Below", + RelativeTo=system1) +system3.Delete() +system7 = GetSystem(Name="SYS") +system7.Delete() +system6.Delete() +system8 = template3.CreateSystem( + Position="Below", + RelativeTo=system1) +engineeringDataComponent3 = system8.GetComponent(Name="Engineering Data") +engineeringDataComponent1.ReplaceWithShare( + TargetSystem=system5, + ComponentToShare=engineeringDataComponent3, + SourceSystem=system8) +geometryComponent3 = system5.GetComponent(Name="Geometry") +geometryComponent3.ReplaceWithShare( + TargetSystem=system5, + ComponentToShare=geometryComponent2, + SourceSystem=system1) +template5 = GetTemplate(TemplateName="External Model") +system9 = template5.CreateSystem( + Position="Below", + RelativeTo=system8) +system9.Delete() +template6 = GetTemplate( + TemplateName="Static Structural", + Solver="ANSYS") +system10 = template6.CreateSystem( + Position="Right", + RelativeTo=system5) +modelComponent1 = system5.GetComponent(Name="Model") +modelComponent2 = system10.GetComponent(Name="Model") +modelComponent1.TransferData(TargetComponent=modelComponent2) +modelComponent1.Refresh() +model1 = system5.GetContainer(ComponentName="Model") +model1.Edit() +system5.Delete() +system10.Delete() +system11 = template6.CreateSystem( + Position="Right", + RelativeTo=system1) +geometryComponent4 = system11.GetComponent(Name="Geometry") +geometryComponent4.ReplaceWithShare( + TargetSystem=system11, + ComponentToShare=geometryComponent2, + SourceSystem=system1) +engineeringDataComponent4 = system11.GetComponent(Name="Engineering Data") +engineeringDataComponent4.ReplaceWithShare( + TargetSystem=system11, + ComponentToShare=engineeringDataComponent3, + SourceSystem=system8) +system12 = template2.CreateSystem( + Position="Right", + RelativeTo=system8) +system12.Delete() +system13 = template2.CreateSystem( + Position="Right", + RelativeTo=system11) +system13.Delete() +template7 = GetTemplate(TemplateName="Material Designer") +system14 = template7.CreateSystem( + Position="Below", + RelativeTo=system8) +system14.Delete() +projectTemplate1 = GetProjectTemplate(Name="AM LPBF Thermal-Structural") +projectTemplate1.CreateProject() +system15 = GetSystem(Name="Transient Thermal (ANSYS)") +engineeringDataComponent5 = system15.GetComponent(Name="Engineering Data") +engineeringDataComponent5.ReplaceWithShare( + TargetSystem=system15, + ComponentToShare=engineeringDataComponent3, + SourceSystem=system8) +geometryComponent5 = system15.GetComponent(Name="Geometry") +geometryComponent5.ReplaceWithShare( + TargetSystem=system15, + ComponentToShare=geometryComponent2, + SourceSystem=system1) +projectTemplate2 = GetProjectTemplate(Name="Random Vibration") +projectTemplate2.CreateProject() +system16 = GetSystem(Name="Modal (ANSYS)") +engineeringDataComponent6 = system16.GetComponent(Name="Engineering Data") +engineeringDataComponent6.ReplaceWithShare( + TargetSystem=system16, + ComponentToShare=engineeringDataComponent3, + SourceSystem=system8) +geometryComponent6 = system16.GetComponent(Name="Geometry") +geometryComponent6.ReplaceWithShare( + TargetSystem=system16, + ComponentToShare=geometryComponent2, + SourceSystem=system1) +Save(Overwrite=True) +template8 = GetTemplate( + TemplateName="ACP", + Solver="Pre") +system17 = GetSystem(Name="Random Vibration (ANSYS)") +system18 = template8.CreateSystem( + Position="Right", + RelativeTo=system17) +system18.Delete() +template9 = GetTemplate( + TemplateName="ACP", + Solver="Post") +system19 = template9.CreateSystem( + Position="Right", + RelativeTo=system17) +system19.Delete() +template10 = GetTemplate( + TemplateName="Thermal-Electric", + Solver="ANSYS") +system20 = template10.CreateSystem( + Position="Right", + RelativeTo=system17) +system20.Delete() +template11 = GetTemplate(TemplateName="System Coupling") +system21 = template11.CreateSystem( + Position="Below", + RelativeTo=system16) +system21.Delete() +template12 = GetTemplate(TemplateName="LSDYNA") +system22 = template12.CreateSystem( + Position="Below", + RelativeTo=system16) +engineeringDataComponent7 = system22.GetComponent(Name="Engineering Data") +engineeringDataComponent7.ReplaceWithShare( + TargetSystem=system22, + ComponentToShare=engineeringDataComponent3, + SourceSystem=system8) +geometryComponent7 = system22.GetComponent(Name="Geometry") +geometryComponent7.ReplaceWithShare( + TargetSystem=system22, + ComponentToShare=geometryComponent2, + SourceSystem=system1) +Save(Overwrite=True) diff --git a/simulations_V8/structural steel_files/session_files/journal3.wbjn b/simulations_V8/structural steel_files/session_files/journal3.wbjn new file mode 100755 index 0000000..0961678 --- /dev/null +++ b/simulations_V8/structural steel_files/session_files/journal3.wbjn @@ -0,0 +1,48 @@ +# encoding: utf-8 +# 2024 R2 +SetScriptVersion(Version="24.2.133") +system1 = GetSystem(Name="Geom 1") +geometry1 = system1.GetContainer(ComponentName="Geometry") +geometry1.Edit(IsSpaceClaimGeometry=True) +Save(Overwrite=True) +template1 = GetTemplate(TemplateName="Geometry") +system2 = template1.CreateSystem( + Position="Left", + RelativeTo=system1) +geometry2 = system2.GetContainer(ComponentName="Geometry") +geometry2.Edit(IsDiscoveryGeometry=True) +geometry1.Exit() +system1.Delete() +geometry2.Exit() +geometry2.Edit(IsDiscoveryGeometry=True) +system3 = GetSystem(Name="SYS") +geometryComponent1 = system3.GetComponent(Name="Geometry") +geometryComponent2 = system2.GetComponent(Name="Geometry") +geometryComponent1.ReplaceWithShare( + TargetSystem=system3, + ComponentToShare=geometryComponent2, + SourceSystem=system2) +system4 = GetSystem(Name="Modal (ANSYS)") +geometryComponent3 = system4.GetComponent(Name="Geometry") +geometryComponent3.ReplaceWithShare( + TargetSystem=system4, + ComponentToShare=geometryComponent2, + SourceSystem=system2) +system5 = GetSystem(Name="Transient Thermal (ANSYS)") +geometryComponent4 = system5.GetComponent(Name="Geometry") +geometryComponent4.ReplaceWithShare( + TargetSystem=system5, + ComponentToShare=geometryComponent2, + SourceSystem=system2) +system6 = GetSystem(Name="SYS 1") +geometryComponent5 = system6.GetComponent(Name="Geometry") +geometryComponent5.ReplaceWithShare( + TargetSystem=system6, + ComponentToShare=geometryComponent2, + SourceSystem=system2) +modelComponent1 = system3.GetComponent(Name="Model") +modelComponent1.Refresh() +model1 = system3.GetContainer(ComponentName="Model") +model1.Edit() +model1.Exit() +Save(Overwrite=True) diff --git a/simulations_V8/structural steel_files/session_files/journal4.wbjn b/simulations_V8/structural steel_files/session_files/journal4.wbjn new file mode 100755 index 0000000..56f0c2a --- /dev/null +++ b/simulations_V8/structural steel_files/session_files/journal4.wbjn @@ -0,0 +1,33 @@ +# encoding: utf-8 +# 2024 R2 +SetScriptVersion(Version="24.2.133") +system1 = GetSystem(Name="SYS") +geometry1 = system1.GetContainer(ComponentName="Geometry") +geometry1.Edit(IsSpaceClaimGeometry=True) +Save(Overwrite=True) +geometry1.Exit() +Save(Overwrite=True) +model1 = system1.GetContainer(ComponentName="Model") +model1.Edit() +modelComponent1 = system1.GetComponent(Name="Model") +modelComponent1.Update(AllDependencies=True) +modelComponent1.UpdateUpstreamComponents() +modelComponent1.Update(AllDependencies=True) +model1.Edit() +Save(Overwrite=True) +setup1 = system1.GetContainer(ComponentName="Setup") +setup1.Edit() +model1.Exit() +model1.Edit() +model1.Exit() +setup1.Edit() +model1.Exit() +model1.Edit() +Save(Overwrite=True) +Save(Overwrite=True) +Save(Overwrite=True) +model1.Exit() +results1 = system1.GetContainer(ComponentName="Results") +results1.Edit(StartAsReadOnly=True) +model1.Exit() +Save(Overwrite=True) diff --git a/simulations_V8/structural steel_files/session_files/journal5.wbjn b/simulations_V8/structural steel_files/session_files/journal5.wbjn new file mode 100755 index 0000000..1cca428 --- /dev/null +++ b/simulations_V8/structural steel_files/session_files/journal5.wbjn @@ -0,0 +1,95 @@ +# encoding: utf-8 +# 2024 R2 +SetScriptVersion(Version="24.2.133") +system1 = GetSystem(Name="SYS") +resultsComponent1 = system1.GetComponent(Name="Results") +resultsComponent1.Clean() +solutionComponent1 = system1.GetComponent(Name="Solution") +solutionComponent1.Clean() +solution1 = system1.GetContainer(ComponentName="Solution") +solution1.Edit() +model1 = system1.GetContainer(ComponentName="Model") +model1.Exit() +fieldVariable1 = GetDataEntity("/Engineering Data/FieldVariableDataObject:Temperature 3") +fieldVariable1.DataString = "20 [C]" +fieldVariable2 = GetDataEntity("/Engineering Data/FieldVariableDataObject:Mean Stress 3") +fieldVariable2.Unit = "MPa" +modelComponent1 = system1.GetComponent(Name="Model") +modelComponent1.Refresh() +model1.Edit() +model1.Exit() +fieldVariable2.Unit = "Pa" +system2 = GetSystem(Name="ENGD") +engineeringData1 = system2.GetContainer(ComponentName="Engineering Data") +material1 = engineeringData1.GetMaterial(Name="Structural Steel") +material1.Delete() +favorites1 = EngData.LoadFavoriteItems() +library1 = EngData.OpenLibrary( + Name="General Materials", + Source="General_Materials.xml") +matl1 = engineeringData1.ImportMaterial( + Name="Titanium Alloy", + Source="General_Materials.xml") +modelComponent1.Update(AllDependencies=True) +model1.Edit() +matl1.Delete() +matl2 = engineeringData1.ImportMaterial( + Name="Aluminum Alloy", + Source="General_Materials.xml") +library2 = EngData.OpenLibrary( + Name="Additive Manufacturing Materials", + Source="Additive_Manufacturing_Materials.xml") +library3 = EngData.OpenLibrary( + Name="Geomechanical Materials", + Source="GeoMechanical_Materials.xml") +library4 = EngData.OpenLibrary( + Name="Composite Materials", + Source="Composite_Materials.xml") +library5 = EngData.OpenLibrary( + Name="Explicit Materials", + Source="Explicit_Materials.xml") +library6 = EngData.OpenLibrary( + Name="General Non-linear Materials", + Source="General Materials Non-linear.xml") +library7 = EngData.OpenLibrary( + Name="Thermal Materials", + Source="Thermal_Materials.xml") +library8 = EngData.OpenLibrary( + Name="ANSYS GRANTA Materials Data for Simulation (Sample)", + Source="Granta_Design_Typical_Materials.xml") +matl3 = engineeringData1.ImportMaterial( + Name="Wood, Oak", + Source="Granta_Design_Typical_Materials.xml") +matl4 = engineeringData1.ImportMaterial( + Name="Aluminum Alloy", + Source="General_Materials.xml") +matl3.Delete() +matl4.Delete() +modelComponent1.Refresh() +model1.Edit() +model1.Exit() +material2 = engineeringData1.GetMaterial(Name="Aluminum Alloy 2") +material2.Delete() +matl2.Delete() +matl5 = engineeringData1.ImportMaterial( + Name="Stainless Steel", + Source="General_Materials.xml") +modelComponent1.Refresh() +model1.Edit() +model1.Exit() +material3 = engineeringData1.GetMaterial(Name="Stainless Steel NL") +material3.Delete() +matl5.Delete() +material4 = engineeringData1.GetMaterial(Name="Polyethylene") +material4.Delete() +matl6 = engineeringData1.ImportMaterial( + Name="Plastic, ABS (high-impact)", + Source="Granta_Design_Typical_Materials.xml") +matl7 = engineeringData1.ImportMaterial( + Name="Plastic, ABS (high-impact)", + Source="Granta_Design_Typical_Materials.xml") +matl7.Delete() +modelComponent1.Refresh() +model1.Edit() +model1.Exit() +Save(Overwrite=True) |
