Returns the current setting for properties of the available resources in resource manager for the specified solver.
For all resources except Ansys Lumerical Burst:
Syntax |
Description |
---|---|
out=getresource("solver", resource_num, "property"); |
Returns the current setting for properties of the available resources in resource manager for the specified solver. The "solver" argument is used to select the solver from which the resource is being selected. The "solver" argument is not supported by INTERCONNECT. resource_num is the number of the desired resource (row number in resource manager) and is optional. If not specified, the command will return the number of resources currently available for the specified solver. "property" is the desired property of the resource and is optional. If not specified, the command will return a list of all properties available for the resource. |
For Ansys Lumerical Burst:
Syntax |
Description |
---|---|
out=getresource("burst"); |
Returns a structure containing burst settings. The fields of the output structure are described below. |
out = getresource(“burst”,”accounts”);
|
Returns a list of available burst accounts to choose from. |
out = getresource(“burst”, “name”, “resource_type”); |
Returns a list of available queues for the account specified by the parameter name. |
The structure returned by getresource("burst")
is described below. These are the fields that can be modified during job submission.
The settings for Ansys Lumerical Burst will be reverted to default after every job submission. As such, the values of each field will be their default values. To modify settings during job submission, see run and runsweep.
Field |
Description |
---|---|
account | Current account name. |
download | Whether or not to download the results after simulation completion. This is 0 if the results is not downloaded, and 1 if the results are downloaded. The results can be downloaded from Ansys Engineering Portal if automatic download is disabled. |
name | Name of the current Ansys Lumerical Burst job. |
queue | Name of the queue to be used for the job. By default, this will be empty to indicate that a queue will be automatically selected. You can find a list of queues using the getresource("burst","name","type") command documented above. |
Example
This example will return the number of processes currently set for the second resource of the DGTD solver in Finite Element IDE
out=getresource("DGTD",2,"processes");
See Also