Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansys_workbench_ten_bar_truss contains not running wbpz #349

Open
2 tasks done
ansDArnold opened this issue Oct 21, 2024 · 1 comment
Open
2 tasks done

ansys_workbench_ten_bar_truss contains not running wbpz #349

ansDArnold opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ansDArnold
Copy link

🔍 Before submitting the issue

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

🐞 Description of the bug

when using examples/00_run_script/ten_bar_truss/files/ten_bar_truss_apdl.wbpz file (included in examples.get_files("ansys_workbench_ten_bar_truss")[1][0]), Workbench is not able to run the project

📝 Steps to reproduce

import logging
logging.basicConfig(level=logging.DEBUG)

from ansys.optislang.core import Optislang
from ansys.optislang.core.nodes import IntegrationNode, DesignFlow
import ansys.optislang.core.node_types as node_types
import pathlib
import tempfile

import ansys.optislang.core.examples as examples

script_dir = pathlib.Path(__file__).parent.absolute()
projects_topdir = script_dir / 'projects'
project_dir = pathlib.Path(tempfile.mkdtemp(dir=projects_topdir))
osl_project = project_dir / 'osl_project.opf'


osl = Optislang(ini_timeout=240)
osl.application.save_as(file_path=osl_project)
logging.debug(f'writing to {osl_project}')

# Create the algorithm system of your choice.
root_system = osl.application.project.root_system
wb_node: IntegrationNode = root_system.create_node(
    name='WB',
    type_=node_types.awb2_plugin,
    design_flow=DesignFlow.RECEIVE_SEND
)

# print(wb_node.get_properties().keys())

wb_node.set_property(
    name="WorkbenchProjectFile",
    value={
        "path": {
            "base_path_mode": {"value": "ABSOLUTE_PATH"},
            "split_path": {"head": "", "tail": str(examples.get_files("ansys_workbench_ten_bar_truss")[1][0])},
        }
    },
)
wb_node.load()
wb_node.register_locations_as_parameter()
wb_node.register_locations_as_response()


osl.application.project.start(wait_for_finished=True)

osl.application.save()

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

use Ansys 2024R2 and 2025R1 products

🐍 Which Python version are you using?

3.9

📦 Installed packages

pip freeze
about-time==4.2.1
alive-progress==3.1.5
ansys-api-fluent==0.3.27
ansys-api-mapdl==0.5.2
ansys-api-platform-instancemanagement==1.1.0
ansys-api-tools-filetransfer==0.1.0
ansys-fluent-core==0.22.0
ansys-mapdl-core==0.68.4
ansys-mapdl-reader==0.53.0
ansys-math-core==0.1.5
ansys-optislang-core==0.8.0
ansys-platform-instancemanagement==1.1.2
ansys-tools-filetransfer==0.1.0
ansys-tools-path==0.6.0
ansys-units==0.3.2
anyio==4.4.0
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens==2.4.1
async-lru==2.0.4
attrs==23.2.0
Babel==2.15.0
beartype==0.18.5
beautifulsoup4==4.12.3
bleach==6.1.0
certifi==2024.7.4
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
comm==0.2.2
contourpy==1.2.1
cycler==0.12.1
debugpy==1.8.2
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.14
docker==7.1.0
executing==2.0.1
fastjsonschema==2.20.0
fonttools==4.53.1
fqdn==1.5.1
geomdl==5.3.1
grapheme==0.6.0
grpcio==1.65.1
grpcio-health-checking==1.62.2
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
idna==3.7
importlib_metadata==8.2.0
ipykernel==6.29.5
ipython==8.26.0
ipywidgets==8.1.3
isoduration==20.11.0
jedi==0.19.1
Jinja2==3.1.4
joblib==1.4.2
json5==0.9.25
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter==1.0.0
jupyter-console==6.6.3
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter_client==8.6.2
jupyter_core==5.7.2
jupyter_server==2.14.2
jupyter_server_terminals==0.5.3
jupyterlab==4.2.4
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==3.0.11
kiwisolver==1.4.5
lxml==5.2.2
MarkupSafe==2.1.5
matplotlib==3.9.1
matplotlib-inline==0.1.7
mistune==3.0.2
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
nest-asyncio==1.6.0
nltk==3.8.1
notebook==7.2.1
notebook_shim==0.2.4
numpy==1.26.4
overrides==7.7.0
packaging==24.1
pandas==2.2.2
pandocfilters==1.5.1
parso==0.8.4
pillow==10.4.0
platformdirs==4.2.2
pooch==1.8.2
prometheus_client==0.20.0
prompt_toolkit==3.0.47
protobuf==4.25.4
psutil==6.0.0
pure_eval==0.2.3
pyansys-tools-versioning==0.5.0
pycparser==2.22
Pygments==2.18.0
pyiges==0.3.1
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-json-logger==2.0.7
pytz==2024.1
pyvista==0.44.1
pywin32==306
pywinpty==2.0.13
PyYAML==6.0.1
pyzmq==26.0.3
qtconsole==5.5.2
QtPy==2.4.1
referencing==0.35.1
regex==2024.7.24
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.19.1
scipy==1.14.0
scooby==0.10.0
Send2Trash==1.8.3
six==1.16.0
sniffio==1.3.1
soupsieve==2.5
stack-data==0.6.3
tabulate==0.9.0
terminado==0.18.1
tinycss2==1.3.0
tornado==6.4.1
tqdm==4.66.4
traitlets==5.14.3
types-python-dateutil==2.9.0.20240316
typing_extensions==4.12.2
tzdata==2024.1
uri-template==1.3.0
urllib3==2.2.2
vtk==9.3.1
wcwidth==0.2.13
webcolors==24.6.0
webencodings==0.5.1
websocket-client==1.8.0
widgetsnbextension==4.0.11
wrapt==1.16.0
zipp==3.19.2
@ansDArnold ansDArnold added the bug Something isn't working label Oct 21, 2024
@optislangdeveloper
Copy link
Collaborator

optislangdeveloper commented Oct 21, 2024

please see here: https://ansyshelp.ansys.com/Views/Secured/Doc_Assets/v242/optiSLang/coupled_function_workbench.zip for a running example. It is sufficient to exchange the Workbench archive.
In case there are other APDL based Workbench projects in the examples, they might have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants