Open
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
When attempting to run the following command:
workflow.TaskObject['Describe Geometry'].UpdateChildTasks(SetupTypeChanged=False)
a RuntimeError occurs stating that the Object path for workflow cannot be found:
RuntimeError: Object with path '/TaskObject:Describe Geometry/UpdateChildTasks:UpdateChildTasks1/SetupTypeChanged' not found for 'workflow'.
📝 Steps to reproduce
Geometry file can be provided on request
Run the following code:
import os
if not os.getenv('FLUENT_PROD_DIR'):
import ansys.fluent.core as pyfluent
flglobals = pyfluent.setup_for_fluent(product_version="26.1.0", mode="meshing", dimension=3, precision="double", processor_count=4, ui_mode="no_gui", graphics_driver="null", gpu=False)
globals().update(flglobals)
meshing.tui.file.set_tui_version('"22.1"')
workflow.InitializeWorkflow(WorkflowType=r'Watertight Geometry')
workflow.TaskObject['Import Geometry'].Arguments.setState({r'FileName': r'can_combustor.pmdb',r'ImportCadPreferences': {r'CIRefaceting': True,r'CISeparation': r'region',r'CITolerence': 0.1,r'ShowImportCadPreferences': True,},})
workflow.TaskObject['Import Geometry'].Execute()
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',r'BOIFaceLabelList': [r'fuelinlet', r'inletair1', r'inletair2'],r'BOISize': 1,})
workflow.TaskObject['Add Local Sizing'].AddChildToTask()
workflow.TaskObject['Add Local Sizing'].InsertCompoundChildTask()
workflow.TaskObject['facesize_1'].Arguments.setState({r'AddChild': r'yes',r'BOIControlName': r'facesize_1',r'BOIFaceLabelList': [r'fuelinlet', r'inletair1', r'inletair2'],r'BOISize': 1,})
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',})
workflow.TaskObject['facesize_1'].Execute()
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',r'BOICellsPerGap': 16,r'BOIExecution': r'Proximity',r'BOIFaceLabelList': [r'fuelinlet'],r'BOIMaxSize': 2,r'BOIMinSize': 0.5,})
workflow.TaskObject['Add Local Sizing'].AddChildToTask()
workflow.TaskObject['Add Local Sizing'].InsertCompoundChildTask()
workflow.TaskObject['proximity_1'].Arguments.setState({r'AddChild': r'yes',r'BOICellsPerGap': 16,r'BOIControlName': r'proximity_1',r'BOIExecution': r'Proximity',r'BOIFaceLabelList': [r'fuelinlet'],r'BOIMaxSize': 2,r'BOIMinSize': 0.5,})
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',})
workflow.TaskObject['proximity_1'].Execute()
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',r'BOIExecution': r'Proximity',r'BOIFaceZoneList': [r'origin-solid:18', r'origin-solid:20', r'origin-solid:21', r'origin-solid:24', r'origin-solid:25'],r'BOIMaxSize': 2,r'BOIMinSize': 0.5,r'BOIZoneorLabel': r'zone',})
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',r'BOIExecution': r'Proximity',r'BOIFaceZoneList': [r'origin-solid:18', r'origin-solid:20', r'origin-solid:21', r'origin-solid:24', r'origin-solid:25'],r'BOIMaxSize': 2,r'BOIMinSize': 0.5,r'BOIZoneorLabel': r'zone',r'ZoneLocation': [r'5', r'-25', r'-25', r'-138.14', r'25', r'25', r'-33.139999', r'origin-solid:18', r'-25', r'-17.67767', r'-138.14', r'-12.874612', r'21.429987', r'-68.139999', r'origin-solid:20', r'-21.429987', r'-25', r'-138.14', r'17.67767', r'-12.874614', r'-68.139999', r'origin-solid:21', r'-25', r'0', r'-138.14', r'6.0495639', r'24.999992', r'-68.139999', r'origin-solid:24', r'-24.999992', r'-25', r'-138.14', r'0', r'6.0495625', r'-68.139999', r'origin-solid:25'],})
workflow.TaskObject['Add Local Sizing'].AddChildToTask()
workflow.TaskObject['Add Local Sizing'].InsertCompoundChildTask()
workflow.TaskObject['proximity_2'].Arguments.setState({r'AddChild': r'yes',r'BOIControlName': r'proximity_2',r'BOIExecution': r'Proximity',r'BOIFaceZoneList': [r'origin-solid:18', r'origin-solid:20', r'origin-solid:21', r'origin-solid:24', r'origin-solid:25'],r'BOIMaxSize': 2,r'BOIMinSize': 0.5,r'BOIZoneorLabel': r'zone',r'ZoneLocation': [r'5', r'-25', r'-25', r'-138.14', r'25', r'25', r'-33.139999', r'origin-solid:18', r'-25', r'-17.67767', r'-138.14', r'-12.874612', r'21.429987', r'-68.139999', r'origin-solid:20', r'-21.429987', r'-25', r'-138.14', r'17.67767', r'-12.874614', r'-68.139999', r'origin-solid:21', r'-25', r'0', r'-138.14', r'6.0495639', r'24.999992', r'-68.139999', r'origin-solid:24', r'-24.999992', r'-25', r'-138.14', r'0', r'6.0495625', r'-68.139999', r'origin-solid:25'],})
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',})
workflow.TaskObject['proximity_2'].Execute()
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',r'BOIFaceZoneList': [r'origin-solid:18', r'origin-solid:20', r'origin-solid:21', r'origin-solid:24', r'origin-solid:25'],r'BOISize': 1,r'BOIZoneorLabel': r'zone',})
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',r'BOIFaceZoneList': [r'origin-solid:18', r'origin-solid:20', r'origin-solid:21', r'origin-solid:24', r'origin-solid:25'],r'BOISize': 1,r'BOIZoneorLabel': r'zone',r'ZoneLocation': [r'5', r'-25', r'-25', r'-138.14', r'25', r'25', r'-33.139999', r'origin-solid:18', r'-25', r'-17.67767', r'-138.14', r'-12.874612', r'21.429987', r'-68.139999', r'origin-solid:20', r'-21.429987', r'-25', r'-138.14', r'17.67767', r'-12.874614', r'-68.139999', r'origin-solid:21', r'-25', r'0', r'-138.14', r'6.0495639', r'24.999992', r'-68.139999', r'origin-solid:24', r'-24.999992', r'-25', r'-138.14', r'0', r'6.0495625', r'-68.139999', r'origin-solid:25'],})
workflow.TaskObject['Add Local Sizing'].AddChildToTask()
workflow.TaskObject['Add Local Sizing'].InsertCompoundChildTask()
workflow.TaskObject['facesize_2'].Arguments.setState({r'AddChild': r'yes',r'BOIControlName': r'facesize_2',r'BOIFaceZoneList': [r'origin-solid:18', r'origin-solid:20', r'origin-solid:21', r'origin-solid:24', r'origin-solid:25'],r'BOISize': 1,r'BOIZoneorLabel': r'zone',r'ZoneLocation': [r'5', r'-25', r'-25', r'-138.14', r'25', r'25', r'-33.139999', r'origin-solid:18', r'-25', r'-17.67767', r'-138.14', r'-12.874612', r'21.429987', r'-68.139999', r'origin-solid:20', r'-21.429987', r'-25', r'-138.14', r'17.67767', r'-12.874614', r'-68.139999', r'origin-solid:21', r'-25', r'0', r'-138.14', r'6.0495639', r'24.999992', r'-68.139999', r'origin-solid:24', r'-24.999992', r'-25', r'-138.14', r'0', r'6.0495625', r'-68.139999', r'origin-solid:25'],})
workflow.TaskObject['Add Local Sizing'].Arguments.setState({r'AddChild': r'yes',})
workflow.TaskObject['facesize_2'].Execute()
workflow.TaskObject['Generate the Surface Mesh'].Arguments.setState({r'CFDSurfaceMeshControls': {r'CellsPerGap': 4,r'MaxSize': 15,r'MinSize': 1,},})
workflow.TaskObject['Generate the Surface Mesh'].Execute()
workflow.TaskObject['Describe Geometry'].UpdateChildTasks(SetupTypeChanged=False)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
v261
Fluent Core: 0.33.0
🐍 Which Python version are you using?
3.12
📦 Installed packages
about-time==4.2.1
absl-py==2.1.0
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
alive-progress==3.1.5
ansys-api-fluent==0.3.35
ansys-api-mechanical==0.1.2
ansys-api-platform-instancemanagement==1.1.0
ansys-api-tools-filetransfer==0.1.0
ansys-fluent-core==0.33.0
ansys-fluent-visualization==0.20.0
ansys-mechanical-core==0.11.14
ansys-mechanical-env==0.1.9
ansys-mechanical-stubs==0.1.6
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc6
ansys-tools-filetransfer==0.1.0
ansys-tools-path==0.7.1
ansys-units==0.6.0
anyio==4.8.0
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
artifactory==0.1.17
asttokens==3.0.0
astunparse==1.6.3
attrs==24.3.0
beartype==0.18.5
beautifulsoup4==4.12.3
bleach==6.2.0
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.3.2
click==8.1.7
clr_loader==0.2.7.post0
colorama==0.4.6
comm==0.2.2
contourpy==1.3.0
cycler==0.12.1
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.18
docker==7.1.0
executing==2.1.0
fastjsonschema==2.21.1
flatbuffers==24.3.25
fonttools==4.53.1
fqdn==1.5.1
frozenlist==1.5.0
gast==0.6.0
google-pasta==0.2.0
googleapis-common-protos==1.66.0
grapheme==0.6.0
grpcio==1.66.1
grpcio-health-checking==1.62.3
grpcio-status==1.63.0rc1
h5py==3.11.0
idna==3.10
imageio==2.36.1
importlib_metadata==8.5.0
ipython==8.31.0
ipywidgets==8.1.5
isoduration==20.11.0
jedi==0.19.2
Jinja2==3.1.5
joblib==1.4.2
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter-events==0.11.0
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_server==2.15.0
jupyter_server_proxy==4.4.0
jupyter_server_terminals==0.5.3
jupyterlab_pygments==0.3.0
jupyterlab_widgets==3.0.13
keras==3.5.0
kiwisolver==1.4.7
libclang==18.1.1
lxml==5.3.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.2
matplotlib-inline==0.1.7
mdurl==0.1.2
mistune==3.1.0
ml-dtypes==0.4.1
more-itertools==10.6.0
msgpack==1.1.0
multidict==6.1.0
namex==0.0.8
nbclient==0.10.2
nbconvert==7.16.5
nbformat==5.10.4
nest-asyncio==1.6.0
nltk==3.9.1
numpy==2.2.1
opt-einsum==3.3.0
optree==0.12.1
overrides==7.7.0
packaging==24.1
pandas==2.2.2
pandocfilters==1.5.1
parso==0.8.4
pathlib==1.0.1
pdf2image==1.17.0
pillow==10.4.0
platformdirs==4.3.3
plotly==5.24.1
pooch==1.8.2
prometheus_client==0.21.1
prompt_toolkit==3.0.48
propcache==0.2.1
protobuf==4.25.4
psutil==6.0.0
pure_eval==0.2.3
pyansys-tools-report==0.8.1
pycparser==2.22
Pygments==2.18.0
pyparsing==3.1.4
PySide6==6.8.1.1
PySide6_Addons==6.8.1.1
PySide6_Essentials==6.8.1.1
python-dateutil==2.9.0.post0
python-json-logger==3.2.1
pytz==2024.2
pyvista==0.44.1
pyvistaqt==0.11.1
pywin32==306
pywinpty==2.0.14
PyYAML==6.0.2
pyzmq==26.2.0
QtPy==2.4.1
referencing==0.36.1
regex==2024.9.11
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==13.8.1
rpds-py==0.22.3
scikit-learn==1.5.2
scipy==1.14.1
scooby==0.10.0
seaborn==0.13.2
Send2Trash==1.8.3
setuptools==75.1.0
shiboken6==6.8.1.1
simpervisor==1.0.0
six==1.16.0
sniffio==1.3.1
soupsieve==2.6
stack-data==0.6.3
tenacity==9.0.0
tensorboard==2.17.1
tensorboard-data-server==0.7.2
tensorflow==2.17.0
tensorflow-intel==2.17.0
termcolor==2.4.0
terminado==0.18.1
threadpoolctl==3.5.0
tinycss2==1.4.0
tornado==6.4.2
tqdm==4.66.5
traitlets==5.14.3
trame==3.7.6
trame-client==3.5.1
trame-server==3.3.0
trame-vtk==2.8.14
trame-vuetify==2.8.0
types-python-dateutil==2.9.0.20241206
typing_extensions==4.12.2
tzdata==2024.1
uri-template==1.3.0
urllib3==2.2.3
vtk==9.3.1
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
Werkzeug==3.0.4
wheel==0.44.0
widgetsnbextension==4.0.13
wrapt==1.16.0
wslink==2.2.2
xgboost==2.1.1
yarl==1.18.3
zipp==3.20.2