Skip to content

Commit 9085c1d

Browse files
committed
Merge release-0.6.0 from TFS
2 parents 17fcdf2 + bcbe3a8 commit 9085c1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1349
-422
lines changed

.ci/code_generation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"libAns.Dpf.LSDYNAHGP.so",
1717
"libAns.Dpf.LivePost.so",
1818
"libans.dpf.pointcloudsearch.so",
19+
"libAns.Dpf.Vtk.so",
1920
]
2021
else:
2122
LIB_TO_GENERATE = [
@@ -28,6 +29,7 @@
2829
"Ans.Dpf.LSDYNAHGP.dll",
2930
"Ans.Dpf.LivePost.dll",
3031
"Ans.Dpf.PointCloudSearch.dll",
32+
"Ans.Dpf.Vtk.dll",
3133
]
3234

3335
local_dir = os.path.dirname(os.path.abspath(__file__))

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/labeler.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/label.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To open a result file and explore what's inside, do:
8484
------------------------------
8585
Static analysis
8686
Unit system: Metric (m, kg, N, s, V, A)
87-
Physics Type: Mecanic
87+
Physics Type: Mechanical
8888
Available results:
8989
- displacement: Nodal Displacement
9090
- element_nodal_forces: ElementalNodal Element nodal Forces

ansys/dpf/core/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from ansys.dpf.core.field import Field, FieldDefinition
2121
from ansys.dpf.core.dimensionality import Dimensionality
2222
from ansys.dpf.core.property_field import PropertyField
23+
from ansys.dpf.core.string_field import StringField
2324
from ansys.dpf.core.fields_container import FieldsContainer
2425
from ansys.dpf.core.meshes_container import MeshesContainer
2526
from ansys.dpf.core.scopings_container import ScopingsContainer
@@ -50,6 +51,7 @@
5051
make_tmp_dir_server,
5152
)
5253
from ansys.dpf.core.time_freq_support import TimeFreqSupport
54+
from ansys.dpf.core.generic_support import GenericSupport
5355
from ansys.dpf.core.meshed_region import MeshedRegion
5456
from ansys.dpf.core.elements import element_types
5557
from ansys.dpf.core.result_info import ResultInfo

ansys/dpf/core/_custom_operators_helpers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from ansys.dpf.gate import capi, external_operator_capi
22
from enum import Enum
3+
34
from ansys.dpf.core import (
45
field, property_field, scoping, collection, data_sources, meshed_region, time_freq_support, \
56
workflow, data_tree, dpf_operator, fields_container, scopings_container, \
6-
meshes_container, result_info
7+
meshes_container, result_info, string_field
78
)
89

910
external_operator_api = external_operator_capi.ExternalOperatorCAPI
@@ -21,6 +22,7 @@ def __operator_main__(operator_functor, data):
2122
(float, external_operator_api.external_operator_put_out_double),
2223
(field.Field, external_operator_api.external_operator_put_out_field),
2324
(property_field.PropertyField, external_operator_api.external_operator_put_out_property_field),
25+
(string_field.StringField, external_operator_api.external_operator_put_out_string_field),
2426
(scoping.Scoping, external_operator_api.external_operator_put_out_scoping),
2527
(collection.Collection, external_operator_api.external_operator_put_out_collection),
2628
(data_sources.DataSources, external_operator_api.external_operator_put_out_data_sources),
@@ -41,6 +43,8 @@ def __operator_main__(operator_functor, data):
4143
(field.Field, external_operator_api.external_operator_get_in_field, "field"),
4244
(property_field.PropertyField, external_operator_api.external_operator_get_in_property_field,
4345
"property_field"),
46+
(string_field.StringField, external_operator_api.external_operator_get_in_string_field,
47+
"string_field"),
4448
(scoping.Scoping, external_operator_api.external_operator_get_in_scoping,
4549
"scoping"),
4650
(fields_container.FieldsContainer,

ansys/dpf/core/_version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Version for ansys-dpf-core"""
22
# major, minor, patch
33
version_info = 0, 6, 0
4+
45
# Nice string for the version
56
__version__ = ".".join(map(str, version_info))
67
min_server_version = "2.0"
@@ -10,11 +11,13 @@
1011
"2.0": "==0.3.0",
1112
"3.0": ">=0.4.0",
1213
"4.0": ">=0.5.0",
14+
"5.0": ">=0.6.dev0",
1315
}
1416

1517
server_to_ansys_version = {
1618
"1.0": "2021R1",
1719
"2.0": "2021R2",
1820
"3.0": "2022R1",
1921
"4.0": "2022R2",
22+
"5.0": "2023R1",
2023
}

ansys/dpf/core/available_result.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def __init__(self, availableresult):
112112
self._properties = {"scripting_name": availableresult.properties["scripting_name"],
113113
"location": availableresult.properties["loc_name"]}
114114
self._sub_res = availableresult.sub_res
115+
self._qualifiers = availableresult.qualifiers
115116

116117
def __str__(self):
117118
txt = (
@@ -214,6 +215,13 @@ def physical_name(self) -> str:
214215
"""Name of the result with spaces"""
215216
return self._physics_name
216217

218+
@property
219+
def qualifiers(self) -> list:
220+
"""Returns the list of qualifiers (equivalent to label spaces)
221+
available for a given Result. These qualifiers can then be used to request the result
222+
on specified locations/properties.
223+
"""
224+
return self._qualifiers
217225

218226
_result_properties = {
219227
"S": {"location": "ElementalNodal", "scripting_name": "stress"},
@@ -253,10 +261,13 @@ def available_result_from_name(name) -> AvailableResult:
253261
for key, item in _result_properties.items():
254262
if item["scripting_name"] == name:
255263
from types import SimpleNamespace
256-
availableresult = SimpleNamespace(name=key, physicsname=name, ncomp=None,
257-
dimensionality=None,
258-
homogeneity=None,
259-
unit=None, sub_res={},
260-
properties={"loc_name": item["location"],
261-
"scripting_name": name})
264+
availableresult = SimpleNamespace(
265+
name=key, physicsname=name, ncomp=None,
266+
dimensionality=None,
267+
homogeneity=None,
268+
unit=None, sub_res={},
269+
properties={"loc_name": item["location"],
270+
"scripting_name": name},
271+
qualifiers=[])
272+
262273
return AvailableResult(availableresult)

0 commit comments

Comments
 (0)