ansys-speos-core 0.7.0__py3-none-any.whl → 0.7.1__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.
- ansys/speos/core/__init__.py +1 -1
- ansys/speos/core/body.py +1 -1
- ansys/speos/core/bsdf.py +1 -1
- ansys/speos/core/face.py +1 -1
- ansys/speos/core/generic/constants.py +1 -1
- ansys/speos/core/generic/general_methods.py +1 -1
- ansys/speos/core/generic/visualization_methods.py +1 -1
- ansys/speos/core/geo_ref.py +1 -1
- ansys/speos/core/intensity.py +1 -1
- ansys/speos/core/kernel/__init__.py +1 -1
- ansys/speos/core/kernel/body.py +1 -1
- ansys/speos/core/kernel/client.py +1 -1
- ansys/speos/core/kernel/crud.py +1 -1
- ansys/speos/core/kernel/face.py +1 -1
- ansys/speos/core/kernel/grpc/transport_options.py +1 -1
- ansys/speos/core/kernel/intensity_template.py +1 -1
- ansys/speos/core/kernel/job.py +1 -1
- ansys/speos/core/kernel/part.py +1 -1
- ansys/speos/core/kernel/proto_message_utils.py +1 -1
- ansys/speos/core/kernel/scene.py +1 -1
- ansys/speos/core/kernel/sensor_template.py +1 -1
- ansys/speos/core/kernel/simulation_template.py +1 -1
- ansys/speos/core/kernel/sop_template.py +1 -1
- ansys/speos/core/kernel/source_template.py +1 -1
- ansys/speos/core/kernel/spectrum.py +1 -1
- ansys/speos/core/kernel/vop_template.py +1 -1
- ansys/speos/core/launcher.py +1 -1
- ansys/speos/core/logger.py +1 -1
- ansys/speos/core/lxp.py +1 -1
- ansys/speos/core/opt_prop.py +1 -1
- ansys/speos/core/part.py +1 -1
- ansys/speos/core/project.py +39 -10
- ansys/speos/core/proto_message_utils.py +1 -1
- ansys/speos/core/sensor.py +1 -1
- ansys/speos/core/simulation.py +1394 -127
- ansys/speos/core/source.py +1 -1
- ansys/speos/core/spectrum.py +1 -1
- ansys/speos/core/speos.py +1 -1
- ansys/speos/core/workflow/__init__.py +1 -1
- ansys/speos/core/workflow/combine_speos.py +1 -1
- ansys/speos/core/workflow/open_result.py +1 -1
- {ansys_speos_core-0.7.0.dist-info → ansys_speos_core-0.7.1.dist-info}/METADATA +6 -6
- ansys_speos_core-0.7.1.dist-info/RECORD +46 -0
- {ansys_speos_core-0.7.0.dist-info → ansys_speos_core-0.7.1.dist-info}/licenses/LICENSE +1 -1
- ansys_speos_core-0.7.0.dist-info/RECORD +0 -46
- {ansys_speos_core-0.7.0.dist-info → ansys_speos_core-0.7.1.dist-info}/WHEEL +0 -0
ansys/speos/core/__init__.py
CHANGED
ansys/speos/core/body.py
CHANGED
ansys/speos/core/bsdf.py
CHANGED
ansys/speos/core/face.py
CHANGED
ansys/speos/core/geo_ref.py
CHANGED
ansys/speos/core/intensity.py
CHANGED
ansys/speos/core/kernel/body.py
CHANGED
ansys/speos/core/kernel/crud.py
CHANGED
ansys/speos/core/kernel/face.py
CHANGED
ansys/speos/core/kernel/job.py
CHANGED
ansys/speos/core/kernel/part.py
CHANGED
ansys/speos/core/kernel/scene.py
CHANGED
ansys/speos/core/launcher.py
CHANGED
ansys/speos/core/logger.py
CHANGED
ansys/speos/core/lxp.py
CHANGED
ansys/speos/core/opt_prop.py
CHANGED
ansys/speos/core/part.py
CHANGED
ansys/speos/core/project.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2021 -
|
|
1
|
+
# Copyright (C) 2021 - 2026 ANSYS, Inc. and/or its affiliates.
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
#
|
|
4
4
|
#
|
|
@@ -52,6 +52,7 @@ from ansys.speos.core.simulation import (
|
|
|
52
52
|
SimulationDirect,
|
|
53
53
|
SimulationInteractive,
|
|
54
54
|
SimulationInverse,
|
|
55
|
+
SimulationVirtualBSDF,
|
|
55
56
|
)
|
|
56
57
|
from ansys.speos.core.source import (
|
|
57
58
|
SourceAmbientNaturalLight,
|
|
@@ -225,7 +226,8 @@ class Project:
|
|
|
225
226
|
)
|
|
226
227
|
case _:
|
|
227
228
|
msg = "Requested feature {} does not exist in supported list {}".format(
|
|
228
|
-
feature_type,
|
|
229
|
+
feature_type,
|
|
230
|
+
[SourceSurface, SourceLuminaire, SourceRayFile, SourceAmbientNaturalLight],
|
|
229
231
|
)
|
|
230
232
|
raise TypeError(msg)
|
|
231
233
|
self._features.append(feature)
|
|
@@ -237,7 +239,7 @@ class Project:
|
|
|
237
239
|
description: str = "",
|
|
238
240
|
feature_type: type = SimulationDirect,
|
|
239
241
|
metadata: Optional[Mapping[str, str]] = None,
|
|
240
|
-
) -> Union[SimulationDirect, SimulationInteractive, SimulationInverse]:
|
|
242
|
+
) -> Union[SimulationDirect, SimulationInteractive, SimulationInverse, SimulationVirtualBSDF]:
|
|
241
243
|
"""Create a new Simulation feature.
|
|
242
244
|
|
|
243
245
|
Parameters
|
|
@@ -261,7 +263,8 @@ class Project:
|
|
|
261
263
|
-------
|
|
262
264
|
Union[ansys.speos.core.simulation.SimulationDirect,\
|
|
263
265
|
ansys.speos.core.simulation.SimulationInteractive,\
|
|
264
|
-
ansys.speos.core.simulation.SimulationInverse
|
|
266
|
+
ansys.speos.core.simulation.SimulationInverse, \
|
|
267
|
+
ansys.speos.core.simulation.SimulationVirtualBSDF]
|
|
265
268
|
Simulation class instance
|
|
266
269
|
"""
|
|
267
270
|
if metadata is None:
|
|
@@ -296,6 +299,13 @@ class Project:
|
|
|
296
299
|
description=description,
|
|
297
300
|
metadata=metadata,
|
|
298
301
|
)
|
|
302
|
+
case "SimulationVirtualBSDF":
|
|
303
|
+
feature = SimulationVirtualBSDF(
|
|
304
|
+
project=self,
|
|
305
|
+
name=name,
|
|
306
|
+
description=description,
|
|
307
|
+
metadata=metadata,
|
|
308
|
+
)
|
|
299
309
|
case _:
|
|
300
310
|
msg = "Requested feature {} does not exist in supported list {}".format(
|
|
301
311
|
feature_type,
|
|
@@ -303,6 +313,7 @@ class Project:
|
|
|
303
313
|
SimulationDirect,
|
|
304
314
|
SimulationInverse,
|
|
305
315
|
SimulationInteractive,
|
|
316
|
+
SimulationVirtualBSDF,
|
|
306
317
|
],
|
|
307
318
|
)
|
|
308
319
|
raise TypeError(msg)
|
|
@@ -437,12 +448,15 @@ class Project:
|
|
|
437
448
|
SourceSurface,
|
|
438
449
|
SourceLuminaire,
|
|
439
450
|
SourceRayFile,
|
|
451
|
+
SourceAmbientNaturalLight,
|
|
440
452
|
SensorIrradiance,
|
|
441
453
|
SensorRadiance,
|
|
442
454
|
SensorCamera,
|
|
455
|
+
Sensor3DIrradiance,
|
|
443
456
|
SimulationDirect,
|
|
444
457
|
SimulationInverse,
|
|
445
458
|
SimulationInteractive,
|
|
459
|
+
SimulationVirtualBSDF,
|
|
446
460
|
part.Part,
|
|
447
461
|
body.Body,
|
|
448
462
|
face.Face,
|
|
@@ -466,12 +480,15 @@ class Project:
|
|
|
466
480
|
|
|
467
481
|
Returns
|
|
468
482
|
-------
|
|
469
|
-
List[Union[ansys.speos.core.opt_prop.OptProp, ansys.speos.core.source.
|
|
470
|
-
ansys.speos.core.source.
|
|
471
|
-
ansys.speos.core.sensor.
|
|
472
|
-
ansys.speos.core.sensor.
|
|
473
|
-
ansys.speos.core.
|
|
474
|
-
ansys.speos.core.simulation.
|
|
483
|
+
List[Union[ansys.speos.core.opt_prop.OptProp, ansys.speos.core.source.SourceSurface, \
|
|
484
|
+
ansys.speos.core.source.SourceRayFile, ansys.speos.core.source.SourceLuminaire, \
|
|
485
|
+
ansys.speos.core.source.SourceAmbientNaturalLight, ansys.speos.core.sensor.SensorCamera, \
|
|
486
|
+
ansys.speos.core.sensor.SensorRadiance, ansys.speos.core.sensor.SensorIrradiance, \
|
|
487
|
+
ansys.speos.core.sensor.Sensor3DIrradiance, \
|
|
488
|
+
ansys.speos.core.simulation.SimulationVirtualBSDF, \
|
|
489
|
+
ansys.speos.core.simulation.SimulationDirect, \
|
|
490
|
+
ansys.speos.core.simulation.SimulationInteractive, \
|
|
491
|
+
ansys.speos.core.simulation.SimulationInverse, ansys.speos.core.part.Part, \
|
|
475
492
|
ansys.speos.core.body.Body, \
|
|
476
493
|
ansys.speos.core.face.Face, ansys.speos.core.part.Part.SubPart]]
|
|
477
494
|
Found features.
|
|
@@ -635,6 +652,11 @@ class Project:
|
|
|
635
652
|
name=inside_dict["name"],
|
|
636
653
|
feature_type=SimulationInteractive,
|
|
637
654
|
)
|
|
655
|
+
if len(sim_feat) == 0:
|
|
656
|
+
sim_feat = self.find(
|
|
657
|
+
name=inside_dict["name"],
|
|
658
|
+
feature_type=SimulationVirtualBSDF,
|
|
659
|
+
)
|
|
638
660
|
sim_feat = sim_feat[0]
|
|
639
661
|
if sim_feat.job_link is None:
|
|
640
662
|
inside_dict["simulation_properties"] = (
|
|
@@ -878,6 +900,13 @@ class Project:
|
|
|
878
900
|
simulation_instance=sim_inst,
|
|
879
901
|
default_values=False,
|
|
880
902
|
)
|
|
903
|
+
elif simulation_template_link.HasField("virtual_bsdf_bench_simulation_template"):
|
|
904
|
+
sim_feat = SimulationVirtualBSDF(
|
|
905
|
+
project=self,
|
|
906
|
+
name=sim_inst.name,
|
|
907
|
+
simulation_instance=sim_inst,
|
|
908
|
+
default_values=False,
|
|
909
|
+
)
|
|
881
910
|
if sim_feat is not None:
|
|
882
911
|
self._features.append(sim_feat)
|
|
883
912
|
|
ansys/speos/core/sensor.py
CHANGED