|
|
As noted in Section 1.6, you can directly incorporate your own formulations and data for the properties of the fuel cell membrane using the pem_user.c source code file.
The following listing represents a description of the contents of the pem_user.c source code file:
|
|
(2.11-1) |
from Equation 1.5-1.
used in Equation
1.2-4.
void Set_UDS_Names(char uds[n_uds_required][STRING_SIZE])
{
strncpy(uds[0], "Electric Potential", STRING_SIZE-1);
strncpy(uds[1], "Protonic Potential", STRING_SIZE-1);
strncpy(uds[2], "Water Saturation", STRING_SIZE-1);
strncpy(uds[3], "Water Content", STRING_SIZE-1);
}
|
If you want to change the names of UDSs, change the second argument of the strncpy functions, recompile and link the module as with any modification to pem_user.c. Note that STRING_SIZE is fixed in pem.h and should not be changed.
|
|
When you load older Fuel Cell and Electrolysis cases into
ANSYS FLUENT, and you are monitoring a UDS using volume or surface monitors, make sure you re-visit the corresponding monitors dialog (e.g., the
Volume Monitor or the
Surface Monitor dialog) to make sure that the correct UDS name is used for the appropriate monitor.
|
void Set_UDM_Names(char udm[n_udm_required][STRING_SIZE])
{
strncpy(udm[ 0], "X Current Flux Density", STRING_SIZE-1);
strncpy(udm[ 1], "Y Current Flux Density", STRING_SIZE-1);
strncpy(udm[ 2], "Z Current Flux Density", STRING_SIZE-1);
strncpy(udm[ 3], "Current Flux Density Magnitude", STRING_SIZE-1);
strncpy(udm[ 4], "Ohmic Heat Source", STRING_SIZE-1);
strncpy(udm[ 5], "Reaction Heat Source", STRING_SIZE-1);
strncpy(udm[ 6], "Overpotential", STRING_SIZE-1);
strncpy(udm[ 7], "Phase Change Source (PEM)", STRING_SIZE-1);
strncpy(udm[ 8], "Osmotic Drag Coefficient (PEM)", STRING_SIZE-1);
strncpy(udm[ 9], "Liquid Water Activity (PEM)", STRING_SIZE-1);
strncpy(udm[10], "Membrane Water Content (PEM)", STRING_SIZE-1);
strncpy(udm[11], "Protonic Conductivity", STRING_SIZE-1);
strncpy(udm[12], "Back Diffusion Source (PEM)", STRING_SIZE-1);
strncpy(udm[13], "Transfer Current", STRING_SIZE-1);
strncpy(udm[14], "Osmotic Drag Source (PEM)", STRING_SIZE-1);
}
|
If you want to change the names of UDMs, change the second argument of the strncpy functions, recompile and link the module as with any modification to pem_user.c. Note that STRING_SIZE is fixed in pem.h and should not be changed.
|
|
When you load older Fuel Cell and Electrolysis cases into
ANSYS FLUENT, and you are monitoring a UDM using volume or surface monitors, make sure you re-visit the corresponding monitors dialog (e.g., the
Volume Monitor or the
Surface Monitor dialog) to make sure that the correct UDM name is used for the appropriate monitor.
|
Inputs for this function include:
| i_ref | effective transfer current coefficient, computed by Cathode_J_TransCoef(c,t) or Anode_J_TransCoef(c,t) |
| gamma | cathode or anode concentration exponent |
| species_i | species index used in fuelcells (e.g. i_o2, i_h2, i_h2o) |
| alpha_a | product of anode exchange coefficient and
|
| alpha_c | product of cathode exchange coefficient and
|
| t | current thread |
| c | current cell |
Outputs for this function include:
| source | anode or cathode volumetric transfer current (
|
| *dRade | partial derivative of
|
| *dRcde | partial derivative of
|