[Fluent Inc. Logo] return to home search
next up previous contents index

23.13.3 Compiling Your UDWSPF and Building a Shared Library File

This section presents the steps you will need to follow to compile your UDWSPF C code and build a shared library file. This process requires the use of a C compiler. Most UNIX operating systems provide a C compiler as a standard feature. If you are using a PC, you will need to ensure that a C ++ compiler is installed before you can proceed (e.g., Microsoft Visual C ++, v6.0 or higher).

figure   

To use the UDWSPF you will need to first build the UDWSPF library by compiling your UDWSPF C code and then loading the library into the FLUENT code.

The UDWSPF shared library is built in the same way that the FLUENT executable itself is built. Internally, a script called Makefile is used to invoke the system C compiler to build an object code library that contains the native machine language translation of your higher-level C source code. This shared library is then loaded into FLUENT (either at runtime or automatically when a case file is read) by a process called dynamic loading. The object libraries are specific to the computer architecture being used, as well as to the particular version of the FLUENT executable being run. The libraries must, therefore, be rebuilt any time FLUENT is upgraded, when the computer's operating system level changes, or when the job is run on a different type of computer.

The general procedure for compiling UDWSPF C code is as follows:


next up previous contents index Previous: 23.13.2 Writing the User-Defined
Up: 23.13 Setting Up the
Next: 23.13.4 Loading the UDWSPF
© Fluent Inc. 2006-09-20