ANSYS Mechanical FAQs

How do I specify the license feature to be used in batch?

In the software settings page, you are able to specify the license feature you would like to check out by appending the -p flag to your command.

For example, if you would like to use the feature meba, your command box will look something like this:

ansys181 -dis -b -mpi ibmmpi -np $RESCALE_CORES_PER_SLOT -machines $MACHINES -p meba -i <input-file>

How do I undersubscribe the number of cores?

In the software settings page, you are able to specify the desired number of cores per node either with:

Undersubscribing using multiple nodes

For example, if you want to set 12 cores per node in an 3-node cluster, drop the "-np" flag and only go by the "-machines" flag. The machine file will have each machine hosts in each line. In order to automate the retrieval of the information, you can use the command below:

node1=$(head -n 1 ~/machinefile | tail -n 1)
node2=$(head -n 2 ~/machinefile | tail -n 1)
node3=$(head -n 3 ~/machinefile | tail -n 1)
ansys${ANSYSMECH_VERSION/./} -dis -b -machines $node1:12:$node2:12:$node3:12 -i <input-file.dat> -p $LICENSE_FEATURE

Undersubscribing using one node

Alternatively, you may use a hardware setup that contains 32 cores or more per node. The Emerald coretype is a good example since there are 36 cores per node. Therefore, your command to setup a 36 core Emerald cluster but only execute Mechanical with 32 cores would be as shown below. Notice here, we removed the machine flag.

ansys${ANSYSMECH_VERSION/./} -dis -b -np 32 -i <input-file.dat> -p $LICENSE_FEATURE