Unrolled loops.
Added additional test case.
Set useFFD=false for testing.
Corrected wrong index.
Specified missing parameters.
Removed double assignment of heaPorAir.T