|
|
This section includes instructions on how to compile a customized Solid Oxide Fuel Cell With Unresolved Electrolyte user-defined module. Note that you can also refer to the file INSTRUCTIONS-CLIENT that comes with your distribution (see addons/sofc).
|
|
It is assumed that you have a basic familiarity with compiling user-defined functions (UDFs). For an introduction on how to compile UDFs, please refer to the separate UDF manual.
|
You will first want to use a local copy of the sofc directory in the addons directory before you recompile the Solid Oxide Fuel Cell With Unresolved Electrolyte module.
Compiling the Customized Source Code Under Linux/UNIX
|
|
The custom version of the library must be named according to the convention used by
ANSYS FLUENT: e.g.,
sofc.
|
make FLUENT_INC=[ansys_inc/v120/fluent] FLUENT_ARCH=[arch]
-f Makefile-client
|
where your_arch is lnx86 on LINUX, or ultra on the Sun operating system, etc.
The following example demonstrates the steps required to set up and run a customized version of the Fuel Cell and Electrolysis module that is located in a folder call
home/sample:
mkdir -p /home/sample |
cp -RH [ansys_inc/v120/fluent]/fluent12.x.y/addons/sofc
/home/sample/sofc
|
/home/sample/sofc/src/constit.c
cd /home/sample/sofc
make FLUENT_INC=[ansys_inc/v120/fluent] FLUENT_ARCH=[arch]
-f Makefile-client
|
setenv FLUENT_ADDONS /home/sample |
Compiling the Customized Source Code Under Windows
ANSYS Inc\v120\fluent).
sofc\src folder.
nmake /f makefile_master-client.nt
|