Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ myst-parser==4.0.1
sphinx_design==0.6.1
sphinx==8.2.3
sphinx-autobuild==2025.8.25
sphinx-autodoc-typehints==3.6.2
sphinx-autodoc-typehints==3.5.2
sphinxcontrib-websupport==2.0.0
sphinx-copybutton==0.5.2
sphinx-gallery==0.20.0
Expand Down
2 changes: 1 addition & 1 deletion geometry-mechanical-dpf/requirements_24.1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ansys-geometry-core[all]==0.7.6
ansys-geometry-core[all]==0.14.2
ansys-mechanical-core==0.11.34
ansys-dpf-core[plotting]==0.12.2
2 changes: 1 addition & 1 deletion geometry-mechanical-dpf/requirements_24.2.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ansys-geometry-core[all]==0.7.6
ansys-geometry-core[all]==0.14.2
ansys-mechanical-core==0.11.34
ansys-dpf-core[plotting]==0.12.2
2 changes: 1 addition & 1 deletion geometry-mechanical-dpf/requirements_25.1.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansys-geometry-core[all]==0.9.2
ansys-geometry-core[all]==0.14.2
ansys-mechanical-core==0.11.34
ansys-dpf-core[plotting]==0.13.4
ansys-tools-visualization-interface<0.10
9 changes: 6 additions & 3 deletions geometry-mechanical-dpf/wf_gmd_01_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
from pathlib import Path

from ansys.geometry.core import launch_modeler
from ansys.geometry.core.connection import GEOMETRY_SERVICE_DOCKER_IMAGE, GeometryContainers
from ansys.geometry.core.connection import GeometryContainers
import ansys.geometry.core.connection.defaults as pygeom_defaults
from ansys.geometry.core.designer import DesignFileFormat
from ansys.geometry.core.math import Plane, Point2D, Point3D, UnitVector3D
from ansys.geometry.core.misc import DEFAULT_UNITS, UNITS
Expand All @@ -50,12 +51,14 @@
# If you are running this script outside of a workflow, you can ignore this section.
#
image = None
transport_mode = None
if "ANSYS_GEOMETRY_RELEASE" in os.environ:
image_tag = os.environ["ANSYS_GEOMETRY_RELEASE"]
for geom_services in GeometryContainers:
if image_tag == f"{GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
if image_tag == f"{pygeom_defaults.GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
print(f"Using {image_tag} image")
image = geom_services
transport_mode = "insecure"
break

# sphinx_gallery_start_ignore
Expand Down Expand Up @@ -88,7 +91,7 @@
# operations.
#

modeler = launch_modeler(image=image)
modeler = launch_modeler(image=image, transport_mode=transport_mode)
print(modeler)

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion geometry-mesh-fluent/requirements_24.1.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ansys-geometry-core[all]==0.7.6
ansys-geometry-core[all]==0.14.2
ansys-fluent-core==0.35.0
2 changes: 1 addition & 1 deletion geometry-mesh-fluent/requirements_24.2.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ansys-geometry-core[all]==0.7.6
ansys-geometry-core[all]==0.14.2
ansys-fluent-core==0.35.0
2 changes: 1 addition & 1 deletion geometry-mesh-fluent/requirements_25.1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ansys-geometry-core[all]==0.9.2
ansys-geometry-core[all]==0.14.2
ansys-fluent-core==0.35.0
ansys-tools-visualization-interface<0.10
9 changes: 6 additions & 3 deletions geometry-mesh-fluent/wf_gmf_01_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
from typing import List, Union

from ansys.geometry.core import launch_modeler
from ansys.geometry.core.connection import GEOMETRY_SERVICE_DOCKER_IMAGE, GeometryContainers
from ansys.geometry.core.connection import GeometryContainers
import ansys.geometry.core.connection.defaults as pygeom_defaults
from ansys.geometry.core.math import Plane, Point2D, Point3D
from ansys.geometry.core.plotting import GeometryPlotter
from ansys.geometry.core.sketch import Sketch
Expand All @@ -54,12 +55,14 @@
# If you are running this script outside of a workflow, you can ignore this section.
#
image = None
transport_mode = None
if "ANSYS_GEOMETRY_RELEASE" in os.environ:
image_tag = os.environ["ANSYS_GEOMETRY_RELEASE"]
for geom_services in GeometryContainers:
if image_tag == f"{GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
if image_tag == f"{pygeom_defaults.GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
print(f"Using {image_tag} image")
image = geom_services
transport_mode = "insecure"
break

# sphinx_gallery_start_ignore
Expand Down Expand Up @@ -236,7 +239,7 @@ def naca_airfoil_4digits(number: Union[int, str], n_points: int = 200) -> List[P
#

# Instantiate the modeler
modeler = launch_modeler(image=image)
modeler = launch_modeler(image=image, transport_mode=transport_mode)
print(modeler)

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion geometry-mesh/requirements_24.1.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ansys-geometry-core[all]==0.7.6
ansys-geometry-core[all]==0.14.2
ansys-meshing-prime==0.5.1
2 changes: 1 addition & 1 deletion geometry-mesh/requirements_24.2.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ansys-geometry-core[all]==0.7.6
ansys-geometry-core[all]==0.14.2
ansys-meshing-prime==0.6.2
2 changes: 1 addition & 1 deletion geometry-mesh/requirements_25.1.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansys-geometry-core[all]==0.9.2
ansys-geometry-core[all]==0.14.2
ansys-meshing-prime==0.7.0
numpy<2.3
ansys-tools-visualization-interface<0.10
9 changes: 6 additions & 3 deletions geometry-mesh/wf_gm_01_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
from pathlib import Path

from ansys.geometry.core import launch_modeler
from ansys.geometry.core.connection import GEOMETRY_SERVICE_DOCKER_IMAGE, GeometryContainers
from ansys.geometry.core.connection import GeometryContainers
import ansys.geometry.core.connection.defaults as pygeom_defaults
from ansys.geometry.core.designer import DesignFileFormat
from ansys.geometry.core.math import Point2D
from ansys.geometry.core.misc import DEFAULT_UNITS, UNITS, Distance
Expand All @@ -51,12 +52,14 @@
# If you are running this script outside of a workflow, you can ignore this section.
#
image = None
transport_mode = None
if "ANSYS_GEOMETRY_RELEASE" in os.environ:
image_tag = os.environ["ANSYS_GEOMETRY_RELEASE"]
for geom_services in GeometryContainers:
if image_tag == f"{GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
if image_tag == f"{pygeom_defaults.GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
print(f"Using {image_tag} image")
image = geom_services
transport_mode = "insecure"
break

# sphinx_gallery_start_ignore
Expand Down Expand Up @@ -87,7 +90,7 @@
# modeler object is used to create designs, sketches, and perform modeling
# operations.
#
modeler = launch_modeler(image=image)
modeler = launch_modeler(image=image, transport_mode=transport_mode)
print(modeler)

###############################################################################
Expand Down
Loading