************************************************************************
Instructions for clients using the fuelcells addon module. 

Please address all comments and questions to your support engineer, and 
thank you for choosing FLUENT!
************************************************************************


=================
USING THE LIBRARY
=================

  *  You will need a license key to operate the PEM fuel cell model.  Please
     contact your support engineer if you do not have this.

===============
Module location
===============

  *  The PEM UDF is located in the directory [path]/ansys_inc/vXX.X/fluent/fluent*.*.*/addons/fuelcells
  *  Below, the "fluent installation directory" refers to [path]/ansys_inc/vXX.X/fluent

==================
Loading the Module
==================  

  *  Start FLUENT
  *  Read your mesh
  *  Check the grid 
  *  Load the module with the text user command: /define/models/addon-modules
  *  Enter "3" at the prompt
     The PEM library  and GUI will be automatically loaded.
  *  Scale your mesh and proceed to the PEM GUI Panel for the PEM problem setup


======================
Customizing the module
======================

  The PEM module has a user-modifiable component called "pem_user.c", which
  can be edited and recompiled to create a customized version of the PEM
  library.

  On both systems it is recommended that you make a copy of 
  the addons/fuelcells directory to a local directory.  Changes to the 
  user-customizable part of the library should be made in your copy.

  The user customizable file is
  .../addons/fuelcells/src/pem_user.c
 
  This is the only source file you will edit.


  ===================
  Customizing on Unix
  ===================

  * Edit line 11 of fuelcells/src/makefile so that FLUENT_INC points 
    to the official fluent installation directory.  
    This is normally [path]/ansys_inc/vXX.X/fluent
    !!! MAKE SURE THAT THERE ARE NO BLANK SPACES TRAILING THIS DIRECTORY NAME
  * Build the library from the fuelcells directory with the following
    command:
    make -f Makefile-client FLUENT_ARCH=lnx86
    (on other systems, use the appropriate architecture)

  ======================
  Customizing on Windows 
  ======================

  * Define environment variable FLUENT_INC to point to the official
    fluent installation directory.
     - note on Windows this looks like [path]\ANSYS Inc\vXX.X\fluent
  * Build the library from the fuelcells directory with the following
    command:
    nmake /f makefile_master-client.nt


============================
Loading a customized library
============================

* Start fluent
* Load cas/msh start the addon module as described above
* Define->User Defined->Functions->Manage...
* Select the current module for fuelcells and unload it.
* Type in the name of full path to your custom library.
  Ex:  /home/joeblow/modules/addons/fuelcells
* Click Load
  You should see the new module loaded appear in the panel
* Click Close

  When you save your case, the link to the custom module will
  be saved.  Therefore, when you reread your case file, your
  custom fuelcells library will be loaded.

