A command line option permits you to edit the hostnames of the machines prescribed to the server. This is primarily for the use with batch systems.
Some clusters are set up so that each cluster node (machine) has two network cards. The first may be a default ethernet card and the second a higher-performance network card. In these circumstances the hostnames associated with the second card are not the same as those allocated to the first card. Typically the hostnames are usually appended by a string but it depends upon how the machine was configured. The batch systems do not see second cards, so when the batch system allocates nodes on which jobs can run they refer to the default cards.
However, when you run STAR-CCM+ you may want to take advantage of the higher-performance card. To do this you would need to translate the hostname provided by the batch system to the hostname you actually want to use.
Suppose you have a cluster of machines with names:
green-node1
green-node2
green-node3
.....
green-nodeN
The batch system may allocate four nodes:
green-nodeN1
green-nodeN2
green-nodeN3
green-nodeN4
However, the application wants to use the higher performance network cards which could be named:
green-nodeN1-eth1
green-nodeN2-eth1
green-nodeN3-eth1
green-nodeN4-eth1
The command line to achieve this is:
-hostregexpr /<pattern>/<substitution>/
where the "regular expression" pattern is replaced by the regular expression substitution. Regular expressions are a general way of pattern matching strings.
Also, /<pattern>/<substitution>/ is passed directly into the command:
echo $machinename | sed -s 's/<pattern>/<substitution>/g'
Examples of how you might use this technique are:
-hostregexpr /\$/<string>/
-hostregexpr /\$/-eth1/
/\$/-eth1/ instead of /$/-eth1/.-hostregexpr /^/eth1-/
-hostregexpr /green/green-eth1/
This would result in green-eth1-nodeN1.