ansys / pyaedt

AEDT Python Client Package
https://aedt.docs.pyansys.com
MIT License
201 stars 120 forks source link

Primary and Secondary boundary condition #3567

Closed pvinod13 closed 1 year ago

pvinod13 commented 1 year ago

Before submitting the issue

Description of the bug

I could able to assign the primary boundary condition. However, the secondary boundary condition U-direction is not allowing to inline with the primary boundary.

Steps To Reproduce

box = hfss.modeler.primitives.create_box([-5,-5,-20], [10,10,40])

Case-1

primary = hfss.assign_primary(box.bottom_face_x, [-5, -5, -20], [-5, 5, -20], coord_name='Global', primary_name='P1') secondary = hfss.assign_secondary(box.top_face_x, "P1", [5, -5, -20], [5, primary_secondary_boundary 5, -20], coord_name='Global', secondary_name='S1')

Case -2

secondary = hfss.assign_secondary(box.top_face_x, "P1", [5, 5, -20], [5, -5, -20], coord_name='Global', secondary_name='S1')

Which Operating System are you using?

Windows

Which Python version are you using?

3.9

Installed packages

accessible-pygments==0.0.4 alabaster==0.7.13 ansys-api-mapdl==0.5.1 ansys-api-mechanical==0.1.0 ansys-api-meshing-prime==0.1.1 ansys-api-platform-instancemanagement==1.0.0b3 ansys-dyna-core==0.2.1 ansys-mapdl-core @ git+https://github.com/ansys/pymapdl@a8652360405d8c4c70470a22bcc3bc9e24ab1882 ansys-mapdl-reader==0.52.18 ansys-math-core==0.1.2 ansys-mechanical-core==0.9.3 ansys-meshing-prime==0.4.0 ansys-motorcad-core==0.1.3 ansys-optislang-core==0.3.0 ansys-platform-instancemanagement==1.1.1 ansys-pythonnet==3.1.0rc1 ansys-sphinx-theme==0.9.9 ansys-tools-path==0.3.1 anyio==3.7.1 appdirs==1.4.4 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 asttokens==2.2.1 async-lru==2.0.3 attrs==23.1.0 Babel==2.12.1 backcall==0.2.0 beautifulsoup4==4.12.2 black==23.7.0 bleach==6.0.0 bokeh==3.2.0 cachetools==5.3.1 certifi==2023.5.7 cffi==1.15.1 charset-normalizer==3.2.0 click==8.1.4 clr-loader==0.2.5 colorama==0.4.6 comm==0.1.3 contourpy==1.1.0 cycler==0.11.0 debugpy==1.6.7 decorator==5.1.1 defusedxml==0.7.1 docutils==0.20.1 exceptiongroup==1.1.2 executing==1.2.0 fastjsonschema==2.17.1 fonttools==4.40.0 fqdn==1.5.1 geomdl==5.3.1 google-api-core==2.11.1 google-api-python-client==2.97.0 google-auth==2.22.0 google-auth-httplib2==0.1.0 googleapis-common-protos==1.59.1 grpcio==1.56.0 grpcio-tools==1.48.2 httplib2==0.22.0 idna==3.4 imagesize==1.4.1 importlib-metadata==6.8.0 ipycanvas==0.13.1 ipydatawidgets==4.3.5 ipyevents==2.0.1 ipykernel==6.24.0 ipython==8.14.0 ipython-genutils==0.2.0 ipyvtklink==0.2.3 ipywidgets==7.7.5 isoduration==20.11.0 jedi==0.18.2 Jinja2==3.1.2 json5==0.9.14 jsonpointer==2.4 jsonschema==4.18.1 jsonschema-specifications==2023.6.1 jupyter-events==0.6.3 jupyter-lsp==2.2.0 jupyter-sphinx==0.4.0 jupyter_client==8.3.0 jupyter_core==5.3.1 jupyter_server==2.7.0 jupyter_server_terminals==0.4.4 jupyterlab==4.0.2 jupyterlab-pygments==0.2.2 jupyterlab-widgets==1.1.4 jupyterlab_server==2.23.0 kiwisolver==1.4.4 linkify-it-py==2.0.2 livereload==2.6.3 Markdown==3.4.3 markdown-it-py==3.0.0 MarkupSafe==2.1.3 matplotlib==3.7.2 matplotlib-inline==0.1.6 mdit-py-plugins==0.4.0 mdurl==0.1.2 mistune==3.0.1 mypy-extensions==1.0.0 nbclassic==1.0.0 nbclient==0.8.0 nbconvert==7.6.0 nbformat==5.9.1 nest-asyncio==1.5.6 notebook==6.5.4 notebook_shim==0.2.3 numpy==1.25.1 numpydoc==1.5.0 overrides==7.3.1 packaging==23.1 pandas==2.0.3 pandocfilters==1.5.0 panel==1.2.0 param==1.13.0 parso==0.8.3 pathspec==0.11.2 patsy==0.5.3 pickleshare==0.7.5 Pillow==10.0.0 platformdirs==3.8.1 plotly==5.15.0 plumbum==1.8.2 pooch==1.7.0 prometheus-client==0.17.1 prompt-toolkit==3.0.39 protobuf==3.20.3 protoc-gen-swagger==0.1.0 psutil==5.9.5 pure-eval==0.2.2 pyaedt==0.6.82 pyansys-tools-versioning==0.4.0 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycparser==2.21 pydata-sphinx-theme==0.13.3 Pygments==2.15.1 pyiges==0.3.1 pypandoc==1.11 pyparsing==3.0.9 python-dateutil==2.8.2 python-json-logger==2.0.7 pythonnet==3.0.1 pythreejs==2.4.2 pytwin==0.4.0 pytz==2023.3 pyvista==0.39.1 pyviz-comms==2.3.2 pywin32==306 pywinpty==2.0.10 PyYAML==6.0 pyzmq==25.1.0 referencing==0.29.1 requests==2.31.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rpds-py==0.8.10 rpyc==5.3.1 rsa==4.9 scipy==1.11.1 scooby==0.7.2 Send2Trash==1.8.2 six==1.16.0 sniffio==1.3.0 snowballstemmer==2.2.0 soupsieve==2.4.1 Sphinx==7.0.1 sphinx-autobuild==2021.3.14 sphinx-autodoc-typehints==1.23.3 sphinx-copybutton==0.5.2 sphinx-gallery==0.13.0 sphinx-notfound-page==0.8.3 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphinxemoji==0.2.0 stack-data==0.6.2 statsmodels==0.14.0 tenacity==8.2.2 terminado==0.17.1 tinycss2==1.2.1 tomli==2.0.1 tornado==6.3.2 tqdm==4.65.0 traitlets==5.9.0 traittypes==0.2.1 typing_extensions==4.7.1 tzdata==2023.3 uc-micro-py==1.0.2 uri-template==1.3.0 uritemplate==4.1.1 urllib3==1.26.16 vtk==9.2.6 wcwidth==0.2.6 webcolors==1.13 webencodings==0.5.1 websocket-client==1.6.1 widgetsnbextension==3.6.4 xyzservices==2023.5.0 zipp==3.16.0

pvinod13 commented 1 year ago

Try reversing the direction by setting

" reverse_v= True, "