![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The folder/directory structures for Windows systems and UNIX/Linux systems are different, so the procedure for setting up the folder/directory structure is described separately for each.
Windows Systems
For compiled UDFs on Windows systems, two ANSYS FLUENT files are required to build your shared UDF library: makefile_nt.udf and user_nt.udf . The file user_nt.udf has a user-modifiable section that allows you to specify source file parameters.
The procedure below outlines steps that you need to follow in order to set up the folder structure required for the shared library.
libudf\src
).
libudf\ntx86
).
libudf\ntx86
), create folders for the
ANSYS FLUENT versions you want to build for your architecture. (e.g.,
ntx86\2d
and
ntx86\3d
). Possible versions are:
2d or 3d | single-precision serial 2D or 3D |
2ddp or 3ddp | double-precision serial 2D or 3D |
2d_node and 2d_host | single-precision parallel 2D |
3d_node and 3d_host | single-precision parallel 3D |
2ddp_node and 2ddp_host | double-precision parallel 2D |
3ddp_node and 3ddp_host | double-precision parallel 3D |
|
Note that you must create
two build folders for each parallel version of the solver (two for the 3D version, two for the 2D double-precision version, etc.), regardless of the number of compute nodes.
|
to all the version subfolders you have made (e.g.,
libudf\ntx86\3d
).
Note that
path is the folder in which you have installed
ANSYS FLUENT (by default, the
path is
C:
Program Files), and
is replaced by the appropriate number for the release (e.g.,
9 for
fluent12.0.9).
to all the version subfolders you have made (e.g.,
libudf\ntx86\3d
) and rename it
makefile.
Note that
path is the folder in which you have installed
ANSYS FLUENT (by default, the
path is
C:
Program Files), and
is replaced by the appropriate number for the release (e.g.,
9 for
fluent12.0.9).
UNIX and Linux Systems
For compiled UDFs on UNIX systems, two ANSYS FLUENT files are required to build your shared UDF library: makefile.udf and makefile.udf2 . The file makefile has a user-modifiable section that allows you to specify source file parameters. The procedure below outlines steps that you need to follow in order to set up the directory structure required for the shared library.
to the library directory (e.g., libudf), and name it Makefile.
Note that
path is the directory in which you have installed
ANSYS FLUENT, and
is replaced by the appropriate number for the release (e.g.,
9 for
fluent12.0.9).
to the /src directory, and name it makefile.
Note that
path is the directory in which you have installed
ANSYS FLUENT, and
is replaced by the appropriate number for the release (e.g.,
9 for
fluent12.0.9).
|
Note that if you are running a 64-bit version of
ANSYS FLUENT the architecture name will have a
_64 appended to it (e.g.,
ultra_64).
|
2d or 3d | single-precision serial 2D or 3D |
2ddp or 3ddp | double-precision serial 2D or 3D |
2d_node and 2d_host | single-precision parallel 2D |
3d_node and 3d_host | single-precision parallel 3D |
2ddp_node and 2ddp_host | double-precision parallel 2D |
3ddp_node and 3ddp_host | double-precision parallel 3D |
|
Note that you must create
two build directories for each parallel version of the solver (two for the 3D version, two for the 2D double-precision version, etc.), regardless of the number of compute nodes.
|