ansys-fluent-core 0.29.dev0__py3-none-any.whl → 0.29.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ansys-fluent-core might be problematic. Click here for more details.
- ansys/fluent/core/__init__.py +1 -1
- ansys/fluent/core/_version.py +2 -2
- ansys/fluent/core/codegen/tuigen.py +1 -1
- ansys/fluent/core/codegen/walk_api.py +45 -18
- ansys/fluent/core/generated/api_tree/api_objects.json +1 -1
- ansys/fluent/core/generated/datamodel_252/meshing.py +1 -0
- ansys/fluent/core/generated/datamodel_252/preferences.py +7 -0
- ansys/fluent/core/generated/fluent_version_252.py +3 -3
- ansys/fluent/core/generated/meshing/tui_252.py +395 -390
- ansys/fluent/core/generated/solver/settings_252.py +782 -306
- ansys/fluent/core/generated/solver/settings_252.pyi +442 -133
- ansys/fluent/core/generated/solver/tui_252.py +4046 -3737
- ansys/fluent/core/launcher/container_launcher.py +4 -3
- ansys/fluent/core/launcher/fluent_container.py +22 -19
- ansys/fluent/core/launcher/launcher.py +2 -2
- ansys/fluent/core/launcher/pim_launcher.py +2 -2
- ansys/fluent/core/launcher/slurm_launcher.py +2 -2
- ansys/fluent/core/launcher/standalone_launcher.py +2 -2
- ansys/fluent/core/logging.py +2 -0
- ansys/fluent/core/logging_config.yaml +3 -0
- ansys/fluent/core/services/app_utilities.py +2 -1
- ansys/fluent/core/services/datamodel_se.py +141 -61
- ansys/fluent/core/services/field_data.py +252 -0
- ansys/fluent/core/services/interceptors.py +28 -2
- ansys/fluent/core/session.py +7 -2
- ansys/fluent/core/session_solver.py +21 -0
- ansys/fluent/core/streaming_services/datamodel_event_streaming.py +12 -12
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/LICENSE +1 -1
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/METADATA +53 -31
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/RECORD +65 -141
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/WHEEL +1 -1
- ansys/fluent/core/docs/README.rst +0 -155
- ansys/fluent/tests/conftest.py +0 -415
- ansys/fluent/tests/fluent_fixtures.py +0 -195
- ansys/fluent/tests/integration/test_optislang/test_optislang_integration.py +0 -263
- ansys/fluent/tests/parametric/test_local_parametric_run.py +0 -36
- ansys/fluent/tests/parametric/test_local_parametric_setup.py +0 -34
- ansys/fluent/tests/parametric/test_parametric_workflow.py +0 -279
- ansys/fluent/tests/test_aero_session.py +0 -88
- ansys/fluent/tests/test_batch_ops.py +0 -39
- ansys/fluent/tests/test_builtin_settings.py +0 -761
- ansys/fluent/tests/test_cad_to_post_ftm.py +0 -525
- ansys/fluent/tests/test_cad_to_post_wtm.py +0 -250
- ansys/fluent/tests/test_casereader.py +0 -324
- ansys/fluent/tests/test_codegen.py +0 -783
- ansys/fluent/tests/test_creatable.py +0 -31
- ansys/fluent/tests/test_data_model_cache.py +0 -434
- ansys/fluent/tests/test_datamodel_api.py +0 -449
- ansys/fluent/tests/test_datamodel_service.py +0 -814
- ansys/fluent/tests/test_datareader.py +0 -103
- ansys/fluent/tests/test_error_handling.py +0 -24
- ansys/fluent/tests/test_events_manager.py +0 -214
- ansys/fluent/tests/test_field_data.py +0 -466
- ansys/fluent/tests/test_file_session.py +0 -355
- ansys/fluent/tests/test_file_transfer_service.py +0 -165
- ansys/fluent/tests/test_fix_doc.py +0 -29
- ansys/fluent/tests/test_flobject.py +0 -1235
- ansys/fluent/tests/test_fluent_fixes.py +0 -106
- ansys/fluent/tests/test_fluent_session.py +0 -270
- ansys/fluent/tests/test_fluent_version.py +0 -66
- ansys/fluent/tests/test_fluent_version_marker.py +0 -65
- ansys/fluent/tests/test_icing_session.py +0 -9
- ansys/fluent/tests/test_launcher.py +0 -529
- ansys/fluent/tests/test_launcher_remote.py +0 -272
- ansys/fluent/tests/test_lispy.py +0 -40
- ansys/fluent/tests/test_logging.py +0 -16
- ansys/fluent/tests/test_mapped_api.py +0 -774
- ansys/fluent/tests/test_meshing_utilities.py +0 -2436
- ansys/fluent/tests/test_meshing_workflow.py +0 -421
- ansys/fluent/tests/test_meshingmode/test_meshing_launch.py +0 -168
- ansys/fluent/tests/test_new_meshing_workflow.py +0 -1801
- ansys/fluent/tests/test_preferences.py +0 -89
- ansys/fluent/tests/test_pure_mesh_vs_mesh_workflow.py +0 -101
- ansys/fluent/tests/test_reduction.py +0 -484
- ansys/fluent/tests/test_rp_vars.py +0 -77
- ansys/fluent/tests/test_scheduler.py +0 -471
- ansys/fluent/tests/test_scheme_eval_222.py +0 -338
- ansys/fluent/tests/test_scheme_eval_231.py +0 -243
- ansys/fluent/tests/test_search.py +0 -344
- ansys/fluent/tests/test_session.py +0 -594
- ansys/fluent/tests/test_settings_api.py +0 -606
- ansys/fluent/tests/test_settings_reader.py +0 -85
- ansys/fluent/tests/test_slurm_future.py +0 -67
- ansys/fluent/tests/test_solution_variables.py +0 -241
- ansys/fluent/tests/test_solver_monitors.py +0 -83
- ansys/fluent/tests/test_solvermode/boundaries_periodic_expDict +0 -1712
- ansys/fluent/tests/test_solvermode/test_boundaries.py +0 -127
- ansys/fluent/tests/test_solvermode/test_calculationactivities.py +0 -20
- ansys/fluent/tests/test_solvermode/test_controls.py +0 -131
- ansys/fluent/tests/test_solvermode/test_general.py +0 -109
- ansys/fluent/tests/test_solvermode/test_initialization.py +0 -83
- ansys/fluent/tests/test_solvermode/test_materials.py +0 -40
- ansys/fluent/tests/test_solvermode/test_methods.py +0 -65
- ansys/fluent/tests/test_solvermode/test_models.py +0 -99
- ansys/fluent/tests/test_solvermode/test_named_expressions.py +0 -35
- ansys/fluent/tests/test_solvermode/test_post_vector.py +0 -22
- ansys/fluent/tests/test_solvermode/test_species_model.py +0 -67
- ansys/fluent/tests/test_streaming_services.py +0 -52
- ansys/fluent/tests/test_systemcoupling.py +0 -44
- ansys/fluent/tests/test_topy.py +0 -179
- ansys/fluent/tests/test_tui_api.py +0 -70
- ansys/fluent/tests/test_type_stub.py +0 -37
- ansys/fluent/tests/test_utils.py +0 -82
- ansys/fluent/tests/util/__init__.py +0 -36
- ansys/fluent/tests/util/meshing_workflow.py +0 -33
- ansys/fluent/tests/util/solver.py +0 -72
- ansys_fluent_core-0.29.dev0.dist-info/AUTHORS +0 -12
|
@@ -80,8 +80,8 @@ class DockerLauncher:
|
|
|
80
80
|
``FluentWindowsGraphicsDriver`` enum in Windows or the values of the
|
|
81
81
|
``FluentLinuxGraphicsDriver`` enum in Linux.
|
|
82
82
|
product_version : FluentVersion or str or float or int, optional
|
|
83
|
-
Version of Ansys Fluent to launch. To use Fluent version
|
|
84
|
-
any of ``FluentVersion.
|
|
83
|
+
Version of Ansys Fluent to launch. To use Fluent version 2025 R1, pass
|
|
84
|
+
any of ``FluentVersion.v251``, ``"25.1.0"``, ``"25.1"``, ``25.1``, or ``251``.
|
|
85
85
|
The default is ``None``, in which case the newest installed version is used.
|
|
86
86
|
dimension : Dimension or int, optional
|
|
87
87
|
Geometric dimensionality of the Fluent simulation. The default is ``None``,
|
|
@@ -184,7 +184,7 @@ class DockerLauncher:
|
|
|
184
184
|
del config_dict_h
|
|
185
185
|
return config_dict
|
|
186
186
|
|
|
187
|
-
port, password = start_fluent_container(
|
|
187
|
+
port, password, container = start_fluent_container(
|
|
188
188
|
self._args, self.argvals["container_dict"]
|
|
189
189
|
)
|
|
190
190
|
|
|
@@ -203,6 +203,7 @@ class DockerLauncher:
|
|
|
203
203
|
file_transfer_service=self.file_transfer_service,
|
|
204
204
|
start_transcript=self.argvals["start_transcript"],
|
|
205
205
|
)
|
|
206
|
+
session._container = container
|
|
206
207
|
|
|
207
208
|
if self.argvals["start_watchdog"] is None and self.argvals["cleanup_on_exit"]:
|
|
208
209
|
self.argvals["start_watchdog"] = True
|
|
@@ -239,16 +239,23 @@ def configure_container_dict(
|
|
|
239
239
|
logger.warning(
|
|
240
240
|
f"Starting Fluent container mounted to {mount_source}, with this path available as {mount_target} for the Fluent session running inside the container."
|
|
241
241
|
)
|
|
242
|
-
|
|
243
|
-
if not
|
|
242
|
+
port_mapping = {port: port} if port else {}
|
|
243
|
+
if not port_mapping and "ports" in container_dict:
|
|
244
244
|
# take the specified 'port', OR the first port value from the specified 'ports', for Fluent to use
|
|
245
|
-
|
|
246
|
-
if not
|
|
245
|
+
port_mapping = container_dict["ports"]
|
|
246
|
+
if not port_mapping and pyfluent.LAUNCH_FLUENT_PORT:
|
|
247
247
|
port = pyfluent.LAUNCH_FLUENT_PORT
|
|
248
|
-
|
|
248
|
+
port_mapping = {port: port}
|
|
249
|
+
if not port_mapping:
|
|
249
250
|
port = get_free_port()
|
|
251
|
+
port_mapping = {port: port}
|
|
250
252
|
|
|
251
|
-
container_dict.update(
|
|
253
|
+
container_dict.update(
|
|
254
|
+
ports={str(x): y for x, y in port_mapping.items()}
|
|
255
|
+
) # container port : host port
|
|
256
|
+
container_grpc_port = next(
|
|
257
|
+
iter(port_mapping.values())
|
|
258
|
+
) # the first port in the mapping is chosen as the gRPC port
|
|
252
259
|
|
|
253
260
|
if "environment" not in container_dict:
|
|
254
261
|
if not license_server:
|
|
@@ -259,7 +266,7 @@ def configure_container_dict(
|
|
|
259
266
|
container_dict.update(
|
|
260
267
|
environment={
|
|
261
268
|
"ANSYSLMD_LICENSE_FILE": license_server,
|
|
262
|
-
"REMOTING_PORTS": f"{
|
|
269
|
+
"REMOTING_PORTS": f"{container_grpc_port}/portspan=2",
|
|
263
270
|
}
|
|
264
271
|
)
|
|
265
272
|
|
|
@@ -319,16 +326,10 @@ def configure_container_dict(
|
|
|
319
326
|
container_dict["environment"] = {}
|
|
320
327
|
container_dict["environment"]["FLUENT_NO_AUTOMATIC_TRANSCRIPT"] = "1"
|
|
321
328
|
|
|
322
|
-
if (
|
|
323
|
-
os.getenv("REMOTING_NEW_DM_API") == "1"
|
|
324
|
-
or os.getenv("REMOTING_MAPPED_NEW_DM_API") == "1"
|
|
325
|
-
):
|
|
329
|
+
if os.getenv("REMOTING_NEW_DM_API") == "1":
|
|
326
330
|
if "environment" not in container_dict:
|
|
327
331
|
container_dict["environment"] = {}
|
|
328
|
-
|
|
329
|
-
container_dict["environment"]["REMOTING_NEW_DM_API"] = "1"
|
|
330
|
-
if os.getenv("REMOTING_MAPPED_NEW_DM_API") == "1":
|
|
331
|
-
container_dict["environment"]["REMOTING_MAPPED_NEW_DM_API"] = "1"
|
|
332
|
+
container_dict["environment"]["REMOTING_NEW_DM_API"] = "1"
|
|
332
333
|
|
|
333
334
|
if pyfluent.LAUNCH_FLUENT_IP or os.getenv("REMOTING_SERVER_ADDRESS"):
|
|
334
335
|
if "environment" not in container_dict:
|
|
@@ -360,7 +361,7 @@ def configure_container_dict(
|
|
|
360
361
|
return (
|
|
361
362
|
container_dict,
|
|
362
363
|
timeout,
|
|
363
|
-
|
|
364
|
+
container_grpc_port,
|
|
364
365
|
host_server_info_file,
|
|
365
366
|
remove_server_info_file,
|
|
366
367
|
)
|
|
@@ -368,7 +369,7 @@ def configure_container_dict(
|
|
|
368
369
|
|
|
369
370
|
def start_fluent_container(
|
|
370
371
|
args: List[str], container_dict: dict | None = None
|
|
371
|
-
) ->
|
|
372
|
+
) -> tuple[int, str, Any]:
|
|
372
373
|
"""Start a Fluent container.
|
|
373
374
|
|
|
374
375
|
Parameters
|
|
@@ -439,7 +440,9 @@ def start_fluent_container(
|
|
|
439
440
|
|
|
440
441
|
logger.debug("Starting Fluent docker container...")
|
|
441
442
|
|
|
442
|
-
docker_client.containers.run(
|
|
443
|
+
container = docker_client.containers.run(
|
|
444
|
+
config_dict.pop("fluent_image"), **config_dict
|
|
445
|
+
)
|
|
443
446
|
|
|
444
447
|
success = timeout_loop(
|
|
445
448
|
lambda: host_server_info_file.stat().st_mtime > last_mtime, timeout
|
|
@@ -452,7 +455,7 @@ def start_fluent_container(
|
|
|
452
455
|
else:
|
|
453
456
|
_, _, password = _parse_server_info_file(str(host_server_info_file))
|
|
454
457
|
|
|
455
|
-
return port, password
|
|
458
|
+
return port, password, container
|
|
456
459
|
finally:
|
|
457
460
|
if remove_server_info_file and host_server_info_file.exists():
|
|
458
461
|
host_server_info_file.unlink()
|
|
@@ -130,8 +130,8 @@ def launch_fluent(
|
|
|
130
130
|
Parameters
|
|
131
131
|
----------
|
|
132
132
|
product_version : FluentVersion or str or float or int, optional
|
|
133
|
-
Version of Ansys Fluent to launch. To use Fluent version
|
|
134
|
-
any of ``FluentVersion.
|
|
133
|
+
Version of Ansys Fluent to launch. To use Fluent version 2025 R1, pass
|
|
134
|
+
any of ``FluentVersion.v251``, ``"25.1.0"``, ``"25.1"``, ``25.1``or ``251``.
|
|
135
135
|
The default is ``None``, in which case the newest installed version is used.
|
|
136
136
|
dimension : Dimension or int, optional
|
|
137
137
|
Geometric dimensionality of the Fluent simulation. The default is ``None``,
|
|
@@ -76,8 +76,8 @@ class PIMLauncher:
|
|
|
76
76
|
``FluentWindowsGraphicsDriver`` enum in Windows or the values of the
|
|
77
77
|
``FluentLinuxGraphicsDriver`` enum in Linux.
|
|
78
78
|
product_version : FluentVersion or str or float or int, optional
|
|
79
|
-
Version of Ansys Fluent to launch. To use Fluent version
|
|
80
|
-
``FluentVersion.
|
|
79
|
+
Version of Ansys Fluent to launch. To use Fluent version 2025 R1, pass
|
|
80
|
+
``FluentVersion.v251``, ``"25.1.0"``, ``"25.1"``, ``25.1``, or ``251``.
|
|
81
81
|
The default is ``None``, in which case the newest installed version is used.
|
|
82
82
|
dimension : Dimension or int, optional
|
|
83
83
|
Geometric dimensionality of the Fluent simulation. The default is ``None``,
|
|
@@ -301,8 +301,8 @@ class SlurmLauncher:
|
|
|
301
301
|
``FluentWindowsGraphicsDriver`` enum in Windows or the values of the
|
|
302
302
|
``FluentLinuxGraphicsDriver`` enum in Linux.
|
|
303
303
|
product_version : FluentVersion or str or float or int, optional
|
|
304
|
-
Version of Ansys Fluent to launch. To use Fluent version
|
|
305
|
-
``FluentVersion.
|
|
304
|
+
Version of Ansys Fluent to launch. To use Fluent version 2025 R1, pass
|
|
305
|
+
``FluentVersion.v251``, ``"25.1.0"``, ``"25.1"``, ``25.1``, or ``251``.
|
|
306
306
|
The default is ``None``, in which case the newest installed version is used.
|
|
307
307
|
dimension : Dimension or int, optional
|
|
308
308
|
Geometric dimensionality of the Fluent simulation. The default is ``None``,
|
|
@@ -96,8 +96,8 @@ class StandaloneLauncher:
|
|
|
96
96
|
``FluentWindowsGraphicsDriver`` enum in Windows or the values of the
|
|
97
97
|
``FluentLinuxGraphicsDriver`` enum in Linux.
|
|
98
98
|
product_version : FluentVersion or str or float or int, optional
|
|
99
|
-
Version of Ansys Fluent to launch. To use Fluent version
|
|
100
|
-
``FluentVersion.
|
|
99
|
+
Version of Ansys Fluent to launch. To use Fluent version 2025 R1, pass
|
|
100
|
+
``FluentVersion.v251``, ``"25.1.0"``, ``"25.1"``, ``25.1``, or ``251``.
|
|
101
101
|
The default is ``None``, in which case the newest installed version is used.
|
|
102
102
|
dimension : Dimension or int, optional
|
|
103
103
|
Geometric dimensionality of the Fluent simulation. The default is ``None``,
|
ansys/fluent/core/logging.py
CHANGED
|
@@ -61,6 +61,8 @@ def get_default_config() -> dict:
|
|
|
61
61
|
'maxBytes': 10485760}},
|
|
62
62
|
'loggers': {'pyfluent.datamodel': {'handlers': ['pyfluent_file'],
|
|
63
63
|
'level': 'DEBUG'},
|
|
64
|
+
'pyfluent.field_data': {'handlers': ['pyfluent_file'],
|
|
65
|
+
'level': 'DEBUG'},
|
|
64
66
|
'pyfluent.general': {'handlers': ['pyfluent_file'],
|
|
65
67
|
'level': 'DEBUG'},
|
|
66
68
|
'pyfluent.launcher': {'handlers': ['pyfluent_file'],
|
|
@@ -342,7 +342,8 @@ class AppUtilities:
|
|
|
342
342
|
def start_python_journal(self, journal_name: str | None = None) -> int:
|
|
343
343
|
"""Start python journal."""
|
|
344
344
|
request = AppUtilitiesProtoModule.StartPythonJournalRequest()
|
|
345
|
-
|
|
345
|
+
if journal_name:
|
|
346
|
+
request.journal_name = journal_name
|
|
346
347
|
response = self.service.start_python_journal(request)
|
|
347
348
|
return response.journal_id
|
|
348
349
|
|