File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ jobs:
127
127
ANSYS_WORKBENCH_LOGGING : 0
128
128
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL : 2
129
129
run : |
130
+ . /env/bin/activate
130
131
xvfb-run mechanical-env python geometry-mechanical-dpf/02_mechanical.py
131
132
132
133
- name : Store the outputs
Original file line number Diff line number Diff line change 30
30
# -- Start PyMechanical app --
31
31
#
32
32
app = mech .App ()
33
- app . update_globals ( globals ( ))
33
+ globals (). update ( mech . global_variables ( app , True ))
34
34
print (app )
35
35
36
36
# -- Parameters --
@@ -63,7 +63,7 @@ def display_image(image_name):
63
63
# -- Import geometry --
64
64
#
65
65
# Reads geometry file and displa
66
- geometry_path = modeling_file = Path (OUTPUT_DIR , "pcb.mechdb" )
66
+ geometry_path = Path (OUTPUT_DIR , "pcb.mechdb" )
67
67
geometry_import_group = Model .GeometryImportGroup
68
68
geometry_import = geometry_import_group .AddGeometryImport ()
69
69
geometry_import_format = Ansys .Mechanical .DataModel .Enums .GeometryImportPreference .Format .Automatic
You can’t perform that action at this time.
0 commit comments