markusrehm |
September 12, 2013 04:46 |
Degree/size of polynomials for thermo and transport (OF 2.2)
Hi all,
I would like to have a variable density for water the only combination that allows that to me is:
Code:
Valid rhoThermo types are:
type mixture transport thermo equationOfState specie energy
...
heRhoThermo pureMixture polynomial hPolynomial icoPolynomial specie sensibleEnthalpy
heRhoThermo pureMixture polynomial hPolynomial icoPolynomial specie sensibleInternalEnergy
...
So I used the following combination:
Code:
thermoType
{
type heRhoThermo;
mixture pureMixture;
transport polynomial;
thermo hPolynomial;
equationOfState icoPolynomial;
specie specie;
energy sensibleEnthalpy;
}
That works fine if I define the polynomials like
Code:
CpCoeffs<8> ( 4200 0 0 0 0 0 0 0 ); //[J/kg/K]
But how would I define a different degree for a polynomial, e.g.
Code:
CpCoeffs<1> ( 4200 ); //[J/kg/K]
Since I do not need the accuracy, especially for cp and I think the poly evaluation eats up a lot of time.
Regards,
Markus.
|