Skip to content

issue using state in add_local_sizing #5013

@millerj97

Description

@millerj97

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

using
watertight.add_local_sizing_wtm.add_child_and_update( state = {"boi_control_name": "wing-facesize", "boi_face_label_list": ["wing_bottom", "wing_top"], "boi_size": 10,}) is causing the below error;

Illegitimate input at /TaskObject/AddChildAndUpdate; State

📝 Steps to reproduce

meshing=pyfluent.launch_fluent(mode="meshing")
watertight = meshing.watertight()
import_geometry = watertight.import_geometry
import_geometry.file_name = "wing.pmdb"
import_geometry()
local_sizing = watertight.add_local_sizing_wtm

sizing_1 = local_sizing.add_child_and_update(
    state={
        "boi_control_name": "wing-facesize",
        "boi_face_label_list": ["wing_bottom", "wing_top"],
        "boi_size": 10,
    }
)

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.10

📦 Installed packages

ansys-api-fluent==0.3.38
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.2.0
ansys-fluent-core==0.38.0
ansys-fluent-visualization==0.25.1
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.4.5
ansys-tools-filetransfer==0.2.2
ansys-units==0.10.1
attrs==25.4.0
certifi==2026.2.25
charset-normalizer==3.4.5
click==8.3.1
contourpy==1.3.2
cycler==0.12.1
cyclopts==4.10.0
defusedxml==0.7.1
Deprecated==1.3.1
docker==7.1.0
docstring_parser==0.17.0
docutils==0.22.4
fonttools==4.62.1
googleapis-common-protos==1.73.0
grpcio==1.78.0
grpcio-health-checking==1.78.0
grpcio-status==1.78.0
idna==3.11
importlib_metadata==8.7.1
joblib==1.5.3
kiwisolver==1.5.0
markdown-it-py==4.0.0
matplotlib==3.10.8
mdurl==0.1.2
nltk==3.9.3
numpy==2.2.6
packaging==26.0
pandas==2.3.3
pillow==12.1.1
platformdirs==4.9.4
pooch==1.9.0
protobuf==6.33.5
Pygments==2.19.2
pyparsing==3.3.2
python-dateutil==2.9.0.post0
pytz==2026.1.post1
pyvista==0.47.1
pyvistaqt==0.11.3
PyYAML==6.0.3
QtPy==2.4.3
regex==2026.2.28
requests==2.32.5
rich==14.3.3
rich-rst==1.3.2
scooby==0.11.0
six==1.17.0
tomli==2.4.0
tqdm==4.67.3
typing_extensions==4.15.0
tzdata==2025.3
urllib3==2.6.3
vtk==9.6.0
wrapt==2.1.2
zipp==3.23.0

Metadata

Metadata

Assignees

Labels

bugIssue, problem or error in PyFluent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions