BaseSimulation#
- class ansys.speos.core.simulation.BaseSimulation(project, name, description='', metadata=None, simulation_instance=None)#
Super Class for all simulations.
- Parameters:
- project
ansys.speos.core.project.Project Project in which simulation shall be created.
- name
str Name of the simulation.
- description
str Description of the Simulation. By default,
"".- metadata
Optional[Mapping[str,str]] Metadata of the feature. By default,
{}.- simulation_instance
ansys.api.speos.scene.v2.scene_pb2.Scene.SimulationInstance,optional Simulation instance to provide if the feature does not have to be created from scratch By default,
None, means that the feature is created from scratch by default.
- project
- Parameters:
Notes
This is a Super class, Do not instantiate this class yourself
Overview#
Export simulation. |
|
Compute the simulation on CPU. |
|
Compute the simulation on GPU. |
|
Stop the simulation computation. |
|
Get dictionary corresponding to the project - read only. |
|
Save feature: send the local data to the speos server database. |
|
Reset feature: override local data by the one from the speos server database. |
|
Delete feature: delete data from the speos server database. |
Sensor paths. |
|
Source paths. |
|
Geometry distance tolerance. |
|
Maximum number of impacts. |
Link object for the simulation template in database. |
|
Link object for the job in database. |
|
List of results created after a simulation compute. |
Return the string representation of the simulation. |
Import detail#
from ansys.speos.core.simulation import BaseSimulation
Property detail#
- property BaseSimulation.sensor_paths: List[str]#
Sensor paths.
This property gets or sets the sensor paths that the simulation will take into account.
- property BaseSimulation.source_paths: List[str]#
Source paths.
This property gets or sets the source paths that the simulation will take into account.
Attribute detail#
- BaseSimulation.simulation_template_link = None#
Link object for the simulation template in database.
- BaseSimulation.job_link = None#
Link object for the job in database.
- BaseSimulation.result_list = []#
List of results created after a simulation compute.
Method detail#
- BaseSimulation.export(export_path)#
Export simulation.
- Parameters:
- export_path: Union[str, Path]
directory to export simulation to.
- Returns:
- BaseSimulation.compute_CPU(threads_number=None, export_vtp=False)#
Compute the simulation on CPU.
- Parameters:
- threads_number
int,optional The number of threads used. By default,
None, means the number of processor available.- export_vtp: bool, optional
True to generate vtp from the simulation results.
- threads_number
- Returns:
- BaseSimulation.compute_GPU(export_vtp=False)#
Compute the simulation on GPU.
- BaseSimulation.stop_computation()#
Stop the simulation computation.
- BaseSimulation.get(key='')#
Get dictionary corresponding to the project - read only.
- BaseSimulation.__str__()#
Return the string representation of the simulation.
- BaseSimulation.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.simulation.BaseSimulationSimulation feature.
- BaseSimulation.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.simulation.BaseSimulationSimulation feature.
- BaseSimulation.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.simulation.BaseSimulationSimulation feature.
Classes#
Source sampling mode. |
|
The Weight represents the ray energy. |