[Thermo] Fix RedlichKwongMFTP in temperature-independent case
If the "a" coefficients for all species were temperature independent, the array
containing "a" at the current temperature was never being populated. Fixes a
regression introduced in 19c17d1.
This commit is contained in:
parent
70e10632d4
commit
db1f1af0a0
1 changed files with 2 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ void RedlichKwongMFTP::setSpeciesCoeffs(const std::string& species,
|
|||
a_coeff_vec(1, k + m_kk * j) = a1kj;
|
||||
}
|
||||
}
|
||||
a_coeff_vec.getRow(0, a_vec_Curr_.data());
|
||||
b_vec_Curr_[k] = b;
|
||||
}
|
||||
|
||||
|
|
@ -110,6 +111,7 @@ void RedlichKwongMFTP::setBinaryCoeffs(const std::string& species_i,
|
|||
size_t counter2 = kj + m_kk * ki;
|
||||
a_coeff_vec(0, counter1) = a_coeff_vec(0, counter2) = a0;
|
||||
a_coeff_vec(1, counter1) = a_coeff_vec(1, counter2) = a1;
|
||||
a_vec_Curr_[counter1] = a_vec_Curr_[counter2] = a0;
|
||||
}
|
||||
|
||||
// ------------Molar Thermodynamic Properties -------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue