Skip to content

Commit f3ea88d

Browse files
fix: filename argument handling in single battery cell workflow (#4441)
Resolved an issue where the filename argument was not being passed correctly. Updated the workflow script to ensure proper argument parsing and usage. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent d43d413 commit f3ea88d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/changelog.d/4441.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Filename argument handling in single battery cell workflow

examples/00-fluent/single_battery_cell_workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
# Save case file for ROM simulation
333333
solver.settings.file.write_case(file_name="unit_battery.cas.h5")
334334
# Save case and data for short circuit simulation
335-
solver.settings.file.write_case_data(file_name=" ntgk") # Save case data
335+
solver.settings.file.write_case_data(file_name="ntgk") # Save case data
336336

337337
# %%
338338
# .. image:: ../../_static/Single_Battery_Cell_1.png
@@ -532,7 +532,7 @@
532532
# :alt: Negative Current Vector Plot
533533
# Negative current vector plot after short circuit.
534534

535-
vector_positive = vectors.create("vector_positive_current")
535+
vector_positive = vector.create("vector_positive_current")
536536
vector_positive.vector_field = "current-density-jp"
537537
vector_positive.field = "current-magnitude"
538538
vector_positive.surfaces_list = [

0 commit comments

Comments
 (0)