Skip to content

Commit

Permalink
Merge branch 'main' into fix_global_mesh_region_edit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovecchietti authored Jun 17, 2024
2 parents 5d2ef06 + da0f3f4 commit 8b645a2
Show file tree
Hide file tree
Showing 328 changed files with 121,584 additions and 111,944 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
target: ['all', 'installer']
exclude:
- python-version: '3.7'
target: 'installer'
steps:
- name: Build wheelhouse and perform smoke test
uses: ansys/actions/build-wheelhouse@v4
with:
library-name: ${{ env.PACKAGE_NAME }}
operating-system: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
target: 'all'
target: ${{ matrix.target }}

- name: Import python package
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,6 @@ model.index\+
# local environment settings used by e.g. Visual Studio Code
/.env
/doc/source/local_config.json

# test coverage output
/.cov/
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ repos:
hooks:
- id: check-pre-commit-ci-config

- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.3.1
hooks:
- id: add-license-headers
files: '(pyaedt|examples|_unittest|_unittest_ironpython|_unittest_solvers)/.*\.(py)'
args:
- --custom_template=mit_license.jinja2
- --start_year=2021

# - repo: https://github.com/numpy/numpydoc
# rev: v1.6.0
Expand Down
29 changes: 29 additions & 0 deletions .reuse/templates/mit_license.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-*- coding: utf-8 -*-

{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}


{% if "MIT" in spdx_expressions %}
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
{% endif %}
14 changes: 7 additions & 7 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
MIT License

Copyright (c) 2021 ANSYS, Inc. All rights reserved.
Copyright (c) 2021 - 2024 ANSYS, Inc. and/or its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
*** PyAEDT README
-->


# PyAEDT
[![PyAEDT logo](https://github.com/ansys/pyaedt/blob/main/doc/source/_static/logo.png)](https://aedt.docs.pyansys.com)

<p style="text-align: center;">
<br> English | <a href="README_CN.md">中文</a>
Expand Down
23 changes: 23 additions & 0 deletions _unittest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
30 changes: 27 additions & 3 deletions _unittest/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""
Unit Test Configuration Module
-------------------------------
Expand Down Expand Up @@ -175,10 +199,10 @@ def _method(
if not application:
application = Hfss
return application(
projectname=test_project,
designname=design_name,
project=test_project,
design=design_name,
solution_type=solution_type,
specified_version=desktop_version,
version=desktop_version,
non_graphical=NONGRAPHICAL,
)

Expand Down
66 changes: 66 additions & 0 deletions _unittest/example_models/T20/assembly1.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
$
$ Settings :
$
$ Output format : MSC Nastran
$
$ Output : Visible
$
$
$
$
BEGIN BULK
GRID 4 133.5406-675.953470.7527
GRID 5 207.6499-675.953359.7426
GRID 6 166.4809-752.229372.0227
GRID 10 -296.823 0.934.2925
GRID 11 -186.558 0.960.8237
GRID 12 -246.715-100.901945.3561
GRID 13 -52.4571 -110.68987.1948
GRID 14 -35.5089-231.921987.0137
GRID 15 -165.077-201.442961.3555
GRID 16 -57.1058-9.537-7987.3877
GRID 17 -142.085-81.8469969.8416
GRID 18 338.1222.4335859436.2341
GRID 19 328.0788-91.8056 418.809
GRID 20 260.6554-89.1117 459.994
GRID 21 1574.546 -34.1-11484.805
GRID 22 4411.665-98.6627 505.296
GRID 23 4410.392-95.7236504.7545
GRID 24 4412.102-93.0528505.4793
GRID 25 4415.086-93.3325506.7459
GRID 26 4416.351 -96.276507.2843
GRID 27 4414.642-98.9377506.5597
GRID 28 4413.373-95.9975506.0199
GRID 29 4411.702-98.6652505.2033
GRID 30 4415.123 -93.335506.6532
GRID 31 4412.144-93.0585505.3882
GRID 32 4410.434-95.7239504.6637
GRID 33 4414.683-98.9433506.4686
GRID 34 4416.393-96.2763507.1935
GRID 35 4413.413-96.0004505.9284
GRID 40 0.0 0.0 0.0
GRID 41 1.0 0.0 0.0
GRID 42 1.0 1.0 0.0
GRID 43 0.0 1.0 0.0
GRID 44 0.0 0.0 1.0
GRID 45 1.0 0.0 1.0
GRID 46 1.0 1.0 1.0
GRID 47 0.0 1.0 1.0
GRID 50 0.0 0.0 0.0
GRID 51 2.0 0.0 0.0
GRID 52 0.0 2.0 0.0
GRID 53 0.0 0.0 2.0
CPENTA 25192 9 28 22 23 35 29 32
CPENTA 25202 9 28 23 24 35 32 31
CPENTA 25229 9 27 22 28 33 29 35
CPENTA 25279 9 25 28 24 30 35 31
CPENTA 25284 9 26 27 28 34 33 35
CPENTA 25328 9 26 28 25 34 35 30
CHEXA 1 105 40 41 42 43 44 45
* 46 47
CTETRA 1 115 50 51 52 53
CQUAD 1 115 50 51 52 53 40

ENDDATA
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
68 changes: 68 additions & 0 deletions _unittest/example_models/T20/assembly2.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
GRID 100 2956.574971.34131288.183
GRID 200 3008.799971.09911288.495
GRID 300 2955.34954.33231325.875
GRID 400 3060.971970.76711288.825
GRID 500 3033.512 952.541325.889
GRID 600 3112.854970.27591289.311
GRID 700 3086.005951.33651325.899
GRID 800 3162.853969.29471290.726
GRID 900 3138.438950.13441325.908
GRID 1000 3205.639 968.4931291.637
GRID 1100 3189.823948.95631325.918
GRID 1200 3212.833948.42871325.922
GRID 1400 2955.288897.34611375.971
GRID 1600 3033.67896.6695 1376.97
GRID 1900 3086.479896.33381377.636
GRID 2200 3140.966895.91341378.328
GRID 2400 3195.66895.41561379.027
GRID 2700 3221.244895.27341378.861
GRID 3100 2954.075928.9718 1358.87
GRID 3200 3005.848928.76431359.525
GRID 3300 3058.27 928.4931360.193
GRID 3400 3112.165928.13111360.887
GRID 3500 3167.108927.6699 1361.6
GRID 3600 3220.466 927.1411362.298
GRID 3700 2925.291897.57751375.626
GRID 4000 2885.295897.88611375.166
GRID 4300 2926.577971.57271287.839
GRID 4400 2925.343954.5637 1325.53
GRID 4500 2924.078929.20321358.525
GRID 4600 2886.581971.73311287.332
GRID 4700 2885.346 954.7241325.023
GRID 4800 2884.081929.36361358.018
CTRIA3 500 200 100 300 200
CTRIA3 600 200 500 200 300
CTRIA3 700 200 200 500 400
CTRIA3 800 200 3200 300 3100
CTRIA3 900 200 3200 500 300
CTRIA3 1000 200 700 400 500
CTRIA3 1100 200 400 700 600
CTRIA3 1200 200 3300 500 3200
CTRIA3 1300 200 3300 700 500
CTRIA3 1400 200 900 600 700
CTRIA3 1500 200 600 900 800
CTRIA3 1600 200 3400 700 3300
CTRIA3 1700 200 3400 900 700
CTRIA3 1800 200 1100 800 900
CTRIA3 1900 200 1000 800 1100
CTRIA3 2000 200 3500 900 3400
CTRIA3 2100 200 3500 1100 900
CTRIA3 2200 200 1200 1000 1100
CTRIA3 2300 200 3600 1100 3500
CTRIA3 2400 200 3600 1200 1100
CTRIA3 2700 100 3600 2400 2700
CTRIA3 2800 100 2400 3600 3500
CTRIA3 2900 100 1900 3300 1600
CTRIA3 3000 100 1600 3300 3200
CTRIA3 3100 100 2200 3400 1900
CTRIA3 3200 100 3500 2200 2400
CTRIA3 3300 100 2200 3500 3400
CTRIA3 3400 100 1900 3400 3300
CTRIA3 3500 100 3200 1400 1600
CTRIA3 3600 100 1400 3200 3100
CQUAD4 100 200 4300 4400 300 100
CQUAD4 200 200 4400 4500 3100 300
CQUAD4 300 200 4600 4700 4400 4300
CQUAD4 400 200 4700 4800 4500 4400
CQUAD4 2500 100 1400 3100 4500 3700
CQUAD4 2600 100 3700 4500 4800 4000
77 changes: 4 additions & 73 deletions _unittest/example_models/T20/test_cad.nas
Original file line number Diff line number Diff line change
@@ -1,74 +1,5 @@
$
$ Settings :
$
$ Output format : MSC Nastran
$
$ Output : Visible
$
$
$
$
BEGIN BULK
GRID 4 133.5406-675.953470.7527
GRID 5 207.6499-675.953359.7426
GRID 6 166.4809-752.229372.0227
GRID 10 -296.823 0.934.2925
GRID 11 -186.558 0.960.8237
GRID 12 -246.715-100.901945.3561
GRID 13 -52.4571 -110.68987.1948
GRID 14 -35.5089-231.921987.0137
GRID 15 -165.077-201.442961.3555
GRID 16 -57.1058-9.537-7987.3877
GRID 17 -142.085-81.8469969.8416
GRID 18 338.1222.4335859436.2341
GRID 19 328.0788-91.8056 418.809
GRID 20 260.6554-89.1117 459.994
GRID 21 1574.546 -34.1-11484.805
GRID 22 4411.665-98.6627 505.296
GRID 23 4410.392-95.7236504.7545
GRID 24 4412.102-93.0528505.4793
GRID 25 4415.086-93.3325506.7459
GRID 26 4416.351 -96.276507.2843
GRID 27 4414.642-98.9377506.5597
GRID 28 4413.373-95.9975506.0199
GRID 29 4411.702-98.6652505.2033
GRID 30 4415.123 -93.335506.6532
GRID 31 4412.144-93.0585505.3882
GRID 32 4410.434-95.7239504.6637
GRID 33 4414.683-98.9433506.4686
GRID 34 4416.393-96.2763507.1935
GRID 35 4413.413-96.0004505.9284
GRID 40 0.0 0.0 0.0
GRID 41 1.0 0.0 0.0
GRID 42 1.0 1.0 0.0
GRID 43 0.0 1.0 0.0
GRID 44 0.0 0.0 1.0
GRID 45 1.0 0.0 1.0
GRID 46 1.0 1.0 1.0
GRID 47 0.0 1.0 1.0
GRID 50 0.0 0.0 0.0
GRID 51 2.0 0.0 0.0
GRID 52 0.0 2.0 0.0
GRID 53 0.0 0.0 2.0
CTRIA3 92455 31 4 5 6
CTRIA3 92456 31 5 10 11
CTRIA3 92457 31 21 20 16
CTRIA3 92458 31 17 10 15
CTRIA3 92459 31 16 12 13
CROD 99585 42 18 19
CROD 99586 42 19 20
CROD 99587 42 20 21
CPENTA 25192 9 28 22 23 35 29 32
CPENTA 25202 9 28 23 24 35 32 31
CPENTA 25229 9 27 22 28 33 29 35
CPENTA 25279 9 25 28 24 30 35 31
CPENTA 25284 9 26 27 28 34 33 35
CPENTA 25328 9 26 28 25 34 35 30
CHEXA 1 105 40 41 42 43 44 45
* 46 47
CTETRA 1 115 50 51 52 53
CQUAD 1 115 50 51 52 53 40

CEND
BEGIN BULK
INCLUDE 'assembly1.key'
INCLUDE 'assembly2.key'
ENDDATA
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Loading

0 comments on commit 8b645a2

Please sign in to comment.