From 5c5e84ab267cb16b66d938ee182f4e22dd1fdf53 Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 03:31:30 -0600 Subject: [PATCH 1/7] Add dynamic defocus option for heat source model --- ansys/api/additive/VERSION | 2 +- ansys/api/additive/v0/additive_domain.proto | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index 72c0b52..63f6712 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -5.1.3-dev0 +5.1.4-dev0 diff --git a/ansys/api/additive/v0/additive_domain.proto b/ansys/api/additive/v0/additive_domain.proto index eb25095..b66abb2 100644 --- a/ansys/api/additive/v0/additive_domain.proto +++ b/ansys/api/additive/v0/additive_domain.proto @@ -310,6 +310,7 @@ message DownloadFileResponse { enum HeatSourceModelType { HEAT_SOURCE_MODEL_GAUSSIAN = 0; HEAT_SOURCE_MODEL_RING = 1; + HEAT_SOURCE_MODEL_DYNAMIC_DEFOCUS = 2; } enum RingModeIndex { From 7b6760bbee80abb96830524dc6bee7865566199a Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 03:36:46 -0600 Subject: [PATCH 2/7] Add mat parameters --- ansys/api/additive/v0/additive_domain.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansys/api/additive/v0/additive_domain.proto b/ansys/api/additive/v0/additive_domain.proto index b66abb2..8fad1c2 100644 --- a/ansys/api/additive/v0/additive_domain.proto +++ b/ansys/api/additive/v0/additive_domain.proto @@ -74,6 +74,10 @@ message AdditiveMaterial { string description = 37; double cooling_rate_sim_coeff_a = 38; double cooling_rate_sim_coeff_b = 39; + double laser_shape_parameter = 40; + double laser_distribution_parameter = 41; + double absorption_conduction_mode = 42; + double fresnal_absorption_coefficient = 43; } message CharacteristicWidthDataPoint { From 1ee007d21f8527b60252d80c8b5f1c1c4d90afab Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 04:31:11 -0600 Subject: [PATCH 3/7] Add defocus index --- ansys/api/additive/v0/additive_domain.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/ansys/api/additive/v0/additive_domain.proto b/ansys/api/additive/v0/additive_domain.proto index 8fad1c2..13b9935 100644 --- a/ansys/api/additive/v0/additive_domain.proto +++ b/ansys/api/additive/v0/additive_domain.proto @@ -18,6 +18,7 @@ message MachineSettings { double slicing_stripe_width = 9; HeatSourceModelType heat_source_model = 10; RingModeIndex ring_mode_index = 11; + int32 defocus_index = 12; } message MeltPoolTimeStep { From ce82f96be1770bbf08996c75e5d73eb9585bf925 Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 12:23:59 -0600 Subject: [PATCH 4/7] Update pyproject.toml --- pyproject.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 23aed5e..0d37493 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,22 @@ [build-system] requires = ["setuptools >= 42.0.0,<81", "wheel", "ansys_tools_protoc_helper>=0.4.0"] build-backend = "setuptools.build_meta:__legacy__" + +[project] +# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections +authors = [{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"}] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Manufacturing", + "Topic :: Scientific/Engineering", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +description = "The gRPC interface files for the Additive service." +license = {file = "LICENSE"} +maintainers = [{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"}] +name = "ansys-api-additive" +readme = "README.md" +requires-python = ">=3.10,<3.12" \ No newline at end of file From 7fee043ce6ff9e06444c601d94d2ab499988e894 Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 12:29:16 -0600 Subject: [PATCH 5/7] Update pyproject.toml --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0d37493..7c2c844 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,4 +19,5 @@ license = {file = "LICENSE"} maintainers = [{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"}] name = "ansys-api-additive" readme = "README.md" -requires-python = ">=3.10,<3.12" \ No newline at end of file +requires-python = ">=3.10,<3.12" +dynamic = ["version"] From 670b229065e2db7a85dd29811392a4e15b25b5b0 Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 12:36:08 -0600 Subject: [PATCH 6/7] Update pyproject.toml --- pyproject.toml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7c2c844..23aed5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,3 @@ [build-system] requires = ["setuptools >= 42.0.0,<81", "wheel", "ansys_tools_protoc_helper>=0.4.0"] build-backend = "setuptools.build_meta:__legacy__" - -[project] -# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections -authors = [{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"}] -classifiers = [ - "Development Status :: 4 - Beta", - "Intended Audience :: Manufacturing", - "Topic :: Scientific/Engineering", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", -] -description = "The gRPC interface files for the Additive service." -license = {file = "LICENSE"} -maintainers = [{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"}] -name = "ansys-api-additive" -readme = "README.md" -requires-python = ">=3.10,<3.12" -dynamic = ["version"] From 9b380fe81d4408126c13c3ab893d0010719471d4 Mon Sep 17 00:00:00 2001 From: Rey DeLeon Date: Tue, 28 Oct 2025 12:36:48 -0600 Subject: [PATCH 7/7] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4d87b75..ac209f8 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ long_description_content_type="text/markdown", url=f"https://github.com/ansys/{package_name}", license="MIT", - python_requires=">=3.8,<4", + python_requires=">=3.8,<3.12", install_requires=["grpcio~=1.47", "protobuf>=3.19"], packages=setuptools.find_namespace_packages( ".", include=("ansys.*", "google.*")