Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
doc-build: true

# TODO: enable when issues in PyMechanical are resolved
# geometry-mechanical-dpf:
# uses: ./.github/workflows/geometry-mechanical-dpf.yml
# secrets: inherit
# with:
# doc-build: true
geometry-mechanical-dpf:
uses: ./.github/workflows/geometry-mechanical-dpf.yml
secrets: inherit
with:
doc-build: true

fluent-mechanical:
uses: ./.github/workflows/fluent-mechanical.yml
Expand All @@ -44,8 +44,8 @@ jobs:
compile-docs:
runs-on: ubuntu-latest
# TODO: enable when issues in PyMechanical are resolved
# needs: [geometry-mesh, geometry-mesh-fluent, geometry-mechanical-dpf, fluent-mechanical, speos-optislang]
needs: [geometry-mesh, geometry-mesh-fluent, fluent-mechanical, speos-optislang]
needs: [geometry-mesh, geometry-mesh-fluent, geometry-mechanical-dpf, fluent-mechanical, speos-optislang]
# needs: [geometry-mesh, geometry-mesh-fluent, fluent-mechanical, speos-optislang]
steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down Expand Up @@ -76,11 +76,11 @@ jobs:
path: doc/

# TODO: enable when issues in PyMechanical are resolved
# - name: Download artifacts for geometry-mechanical-dpf
# uses: actions/download-artifact@v5
# with:
# name: geometry-mechanical-dpf-docs
# path: doc/
- name: Download artifacts for geometry-mechanical-dpf
uses: actions/download-artifact@v5
with:
name: geometry-mechanical-dpf-docs
path: doc/

- name: Download artifacts for fluent-mechanical
uses: actions/download-artifact@v5
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/geometry-mechanical-dpf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,21 @@ jobs:

- name: Run the PyMechanical script
env:
NUM_CORES: 1
ANSYS_WORKBENCH_LOGGING_CONSOLE: 0
ANSYS_WORKBENCH_LOGGING: 0
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 2
# ANSYS_WORKBENCH_LOGGING_CONSOLE: 0
# ANSYS_WORKBENCH_LOGGING: 0
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0
PYTHONUNBUFFERED: 1
run: |
. /.venv/bin/activate
xvfb-run mechanical-env python geometry-mechanical-dpf/wf_gmd_02_mechanical.py > pymechlogs${{ matrix.ansys-release }}.txt 2>&1 || true
cat pymechlogs${{ matrix.ansys-release }}.txt

- name: Run the PyDPF script
env:
ANSYS_DPF_ACCEPT_LA: 'Y'
run: |
. /.venv/bin/activate
xvfb-run python geometry-mechanical-dpf/wf_gmd_03_dpf.py > pydpflogs${{ matrix.ansys-release }}.txt 2>&1 || true
xvfb-run mechanical-env python geometry-mechanical-dpf/wf_gmd_03_dpf.py > pydpflogs${{ matrix.ansys-release }}.txt 2>&1 || true
cat pydpflogs${{ matrix.ansys-release }}.txt

- name: Store the outputs
Expand Down Expand Up @@ -238,6 +240,7 @@ jobs:
with:
name: geometry-mechanical-dpf-docs
path: |
outputs/
doc/_build/
doc/source/examples/geometry-mechanical-dpf/
overwrite: true
2 changes: 1 addition & 1 deletion geometry-mechanical-dpf/requirements_24.1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ansys-geometry-core[all]==0.7.6
ansys-mechanical-core==0.11.34
ansys-mechanical-core==0.11.7
ansys-dpf-core[plotting]==0.12.2
11 changes: 9 additions & 2 deletions geometry-mechanical-dpf/wf_gmd_02_mechanical.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,18 @@ def display_image(image_name):
#
transient_solution.Solve(True)

# TODO :Remove once completed
# Export mesh image
Tree.Activate([transient_temperature_result])
ExtAPI.Graphics.Camera.SetFit()
ExtAPI.Graphics.ExportImage(
os.path.join(OUTPUT_DIR, "temperature.png"), image_export_format, settings_720p
)

###############################################################################
# Save files and close Mechanical
# -------------------------------
# Mechanical file (mechdb) contains results for each analysis
#
app.save(os.path.join(OUTPUT_DIR, "pcb.mechdb"))
project_directory = ExtAPI.DataModel.Project.ProjectDirectory
app.exit()
app.close()