Given a cluster file as input, the viewfac utility is provided for the computation of viewfactors (required
in ANSYS Fluent when using the S2S radiation model). Using SGE, you
can create a cluster file in ANSYS Fluent and choose to compute and
write viewfactors in the same ANSYS Fluent session, or you can manually
launch the viewfac utility from outside ANSYS Fluent and
compute the viewfactors. When viewfactors are computed from ANSYS Fluent,
the following must be considered:
If ANSYS Fluent is launched without the -sge option, then the viewfac utility should also be launched from ANSYS Fluent without the -sge option.
If ANSYS Fluent is launched under SGE (that is, by using
the -sge option), then you should be able
to launch the viewfac utility either under
SGE or without SGE. By default, the utility is launched under SGE,
with the same SGE related parameters as those used to launch ANSYS Fluent under
SGE.
Important: To launch a parallel version of the viewfac utility, the parallel environment utility_pe must be set up and configured in a manner that is suitable for your
jobs. You may need to contact your SGE administrator for assistance.
If you do not want to launch the utility under SGE, then you may use the Scheme functions described as follows.
The Scheme function (sge?) can be used
to inquire whether the viewfac utility is
enabled or disabled under SGE. The function will return either #t (true) or #f (false).
To switch the value of the (sge?) function,
use the (switch-sge) Scheme function. A message
will state the new value (for example, "SGE enabling set
to #t"). Again, by default, the viewfac utility will use the same SGE related options as ANSYS Fluent. The
SGE related options can also be controlled through the (set-sge-optionsstring_arg) Scheme function. The string_arg argument replaces the actual sge-options that you originally set (for example, (set-sge-options "-q dev-test"). Note that you should
take care to set the SGE options correctly if you use the (set-sge-options string_arg) function, because this
string is simply passed to SGE in its command and is interpreted by
SGE (and not by the utility script).