34 printf (
"System Initial Information\n");
35 printf (
" System temperature (K) : %lf\n",
system_T);
36 printf (
" System pressure (Kpa): %lf\n",
system_P);
37 printf (
" Total components (mol):\n");
50 printf (
"System Equilibrium Information\n");
54 int species_num_index = 0;
59 printf (
" GAS %d\n", i+1);
60 printf (
" %-16s\t%s\t%s\n",
"S",
"Z",
"n(mol)");
67 ngi[j] =
n_eq[j + species_num_index];
72 printf (
" %-16s\t%-+d\t%e\n",
83 printf (
" LIQUID %d\n", i+1);
84 printf (
" %-16s\t%s\t%s\t\t%s\t%s\t\t%s\t\t%s\n",
85 "S",
"Z",
"n(mol)",
"m(mol/kgw)",
"x",
"a",
"r");
102 naqi[j] =
n_eq[j + species_num_index];
111 printf (
" %-16s\t%-+d\t%e\t%e\t%e\t%e\t%e\n",
114 naqi[j], naqi[j]/naqi[k]*55.51, naqi[j]/sum_naqi, aj, rj);
116 species_num_index ++;
122 printf (
" SOLID %d\n", i+1);
123 printf (
" %-30s\t%s\t%s\n",
"S",
"Z",
"n(mol)");
130 nsi[j] =
n_eq[j + species_num_index];
135 printf (
" %-30s\t%-+d\t%e\n",
140 species_num_index ++;
146 printf (
" SOLIDSOLUTION %d\n", i+1);
147 printf (
" %-30s\t%s\t%s\t\t%s\n",
"S",
"Z",
"n(mol)",
"a");
154 nssi[j] =
n_eq[j + species_num_index];
161 printf (
" %-30s\t%-+d\t%e\t%e\n",
166 species_num_index ++;
173 printf (
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
178 printf(
"\n Total Gibbs energy in equilibrium (kJ): %e\n",
gibbs_eq);
180 printf (
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
int solidsolution_phase_num
double * total_components
double psc_a(AQUEOUS_PHASE aq, int index, double *n, double T, double P)
SPECIES * aqueous_species
void print_equilibrium_information()
double psc_r(AQUEOUS_PHASE aq, int index, double *n, double T, double P)
SOLIDSOLUTION_PHASE * solidsolution
void print_system_information()
SPECIES * solidsolution_species