submit_ansys_cloud_job#
- Desktop.submit_ansys_cloud_job(project_file, config_name, region, numnodes=1, numcores=32, wait_for_license=True, setting_file=None, job_name=None)#
Submit a job to be solved on a cluster.
- Parameters:
- project_file
str
Full path to the project.
- config_name
str
Name of the Ansys Cloud machine configuration selected.
- region
str
Name of Ansys Cloud location region. Available regions are:
"westeurope"
,"eastus"
,"northcentralus"
,"southcentralus"
,"northeurope"
,"japaneast"
,"westus2"
,"centralindia"
.- numnodes
int
,optional
Number of nodes. The default is
1
.- numcores
int
,optional
Number of cores. The default is
32
.- wait_for_licensebool,
optional
Whether to wait for the license to be validated. The default is
True
.- setting_file
str
,optional
Name of the file to use as a template. The default value is
None
.
- project_file
- Returns:
References
>>> oDesktop.SubmitJob
Examples
>>> from ansys.aedt.core import Desktop
>>> d = Desktop(version="2024.2", new_desktop=False) >>> d.select_scheduler("Ansys Cloud") >>> out = d.get_available_cloud_config() >>> job_id, job_name = d.submit_ansys_cloud_job('via_gsg.aedt', ... list(out.keys())[0], ... region="westeurope", ... job_name="MyJob" ... ) >>> o1=d.get_ansyscloud_job_info(job_id=job_id) >>> o2=d.get_ansyscloud_job_info(job_name=job_name) >>> d.download_job_results(job_id=job_id, ... project_path='via_gsg.aedt', ... results_folder='via_gsg_results') >>> d.release_desktop(False,False)