ansys.fluent.core.scheduler.machine_list.MachineList#

class ansys.fluent.core.scheduler.machine_list.MachineList(machinesIn=[])#

Provides an interface to list of machines allocated by a queue system.

Methods

__init__([machinesIn])

Constructs and initializes an empty machine file object.

add(m)

Add to machine list.

move_local_host_to_front()

Moves the local host machine to the front of the machine list, creating it if it does not exist.

remove(m)

Remove from machine list.

remove_empty_machines()

Removes all machines with 0 cores.

reset()

Resets the machine file data to the initial values.

sort_by_core_count()

Sorts the machines by core count, reordering the existing data.

sort_by_core_count_ascending()

Sorts the machines by core count, reordering the existing data.

Attributes

machines

Returns the entire list of machines.

max_cores

Returns the maximum number of cores.

min_cores

Returns the minimum number of cores.

num_machines

Returns the total number of machines.

number_of_cores

Returns the total number of cores.