Skip to content
Open
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
1 change: 1 addition & 0 deletions doc/changelog.d/1254.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changes from 26R1 SP01 ADO to github
2 changes: 1 addition & 1 deletion src/ansys/meshing/prime/autogen/shellblcontrolstructs.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def offset_type(self, value: ShellBLOffsetType):

@property
def growth_rate(self) -> float:
"""Ratio of height of the current layer to previous layer.
"""Ratio of height of the current layer to the previous layer.

**This is a beta parameter**. **The behavior and name may change in the future**.
"""
Expand Down
6 changes: 3 additions & 3 deletions src/ansys/meshing/prime/core/dynaexportutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2584,9 +2584,9 @@ def _map_zone_type_with_material(self):
if zone_details['Material'] in self._material_assignedTo_zones:
try:
zoneId = zone_details['id']
self._material_assignedTo_zones[zone_details['Material']].append(
zoneId
)
self._material_assignedTo_zones[
zone_details['Material']
].append(zoneId)
except:
self._logger.warning(f'Zone {zone} does not have id for it ')
pass
Expand Down
7 changes: 5 additions & 2 deletions src/ansys/meshing/prime/core/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,11 @@ def export_lsdyna_keyword_file(
# part_id = self._model.parts[0].id
args = {"partId": 0}
command_name = "PrimeMesh::FileIO/GetAbaqusSimulationData"
sim_data = self._comm.serve(self._model, command_name, self._object_id, args=args)
sim_data = json.loads(sim_data)
sim_data_str = self._comm.serve(self._model, command_name, self._object_id, args=args)
if not sim_data_str or sim_data_str.strip() == "":
sim_data = None
else:
sim_data = json.loads(sim_data_str)
if sim_data is not None:
mp = dynaexportutils.MaterialProcessor(self._model, sim_data)
all_mat_cmds = mp.get_all_material_commands()
Expand Down
817 changes: 594 additions & 223 deletions src/ansys/meshing/prime/core/mapdlcdbexportutils.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ansys/meshing/prime/internals/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def __init__(
self._local = local
self._process = server_process
self._comm = None
self._cleanup_script_path: Path = None
if not local:
if (
connection_type == config.ConnectionType.GRPC_SECURE
Expand Down Expand Up @@ -208,6 +207,7 @@ def exit(self):
if self._process is not None:
assert self._local == False
terminate_process(self._process)
self._process = None
if config.using_container():
container_name = getattr(self, 'container_name', None)
if container_name:
Expand Down
3 changes: 0 additions & 3 deletions src/ansys/meshing/prime/internals/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@

from ansys.meshing.prime.internals.logger import PrimeLogger


class ConnectionType(Enum):
"""Type of connection to be established.

Default is secure connection.
"""

GRPC_SECURE = 1
"""Secure connection.
This option ensures secure connection between client and server.
Expand Down
2 changes: 0 additions & 2 deletions src/ansys/meshing/prime/internals/cyberchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@

logger = logging.getLogger(__name__)


@dataclass
class CertificateFiles:
cert_file: str | Path | None = None
key_file: str | Path | None = None
ca_file: str | Path | None = None


def create_channel(
transport_mode: str,
host: str | None = None,
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/meshing/prime/internals/grpc_communicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


def get_secure_channel(client_certs_dir: str, server_host: str, server_port: int):
"""Create a secure gRPC channel using the provided TLS files.
"""Creates a secure gRPC channel using the provided TLS files.

Parameters
----------
Expand Down
Loading