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).
Important: It is assumed that you have a basic familiarity with compiling user-defined functions (UDFs). For an introduction on how to compile UDFs, refer to the Fluent Customization 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.
Make a local copy of the sofc directory. Do not create a symbolic link.
Important: The custom version of the library must be named according to
the convention used by ANSYS Fluent: for example, sofc.
Change directories to the sofc/src directory.
Make changes to the constit.c file.
Define the FLUENT_ADDONS environment
variable to correspond to your customized version of the Solid Oxide
Fuel Cell With Unresolved Electrolyte module.
Change directories to the sofc/ directory.
Issue the following make command:
make FLUENT_INC=[ansys_inc/v182/fluent] FLUENT_ARCH=[arch] -f Makefile-client
where your_arch is lnx86 on LINUX, or ultra on the Sun operating
system, and so on.
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:
Make a directory.
mkdir -p /home/sample
Copy the default addon library
to this location.
cp -RH [ansys_inc/v182/fluent]/fluent18.2.0/addons/sofc /home/sample/sofc
Using a text editor, make the appropriate changes
to the constit.c file located in /home/sample/sofc/src/constit.c
Build the library.
cd /home/sample/sofc make FLUENT_INC=[ansys_inc/v182/fluent] FLUENT_ARCH=[arch] -f Makefile-client
Set the FLUENT_ADDONS environment
variable (using CSH, other shells will differ).
setenv FLUENT_ADDONS /home/sample
Start ANSYS Fluent and load the customized module using the text interface command.
Open Visual Studio.NET at the DOS prompt.
Make sure that the $FLUENT_INC environment variable is correctly set to the current ANSYS Fluent installation
directory (for example, ANSYS Inc\v182\fluent).
Make a local copy of the sofc folder. Do not create a shortcut.
Enter the sofc\src folder.
Make changes to the constit.c file.
Define the FLUENT_ADDONS environment
variable to correspond to your customized version of the Solid Oxide
Fuel Cell With Unresolved Electrolyte module.
Return to the sofc folder.
Issue the following command in the command window:
nmake /f makefile_master-client.nt