Vrbic said:
In calculations of quantities in Neutron stars with degenerate matter is usual to set temperature zero. If I'm right it means that pressure of this matter is negligible against pressure due to Pauli principle.
It is a common misconception that the Pauli principle causes pressure. But it does not-- it simply means the system has reached its ground state. The ground state contains a huge kinetic energy, and the kinetic energy is what causes pressure, in a perfectly normal way. All the Pauli principle does is prevent further rise in the pressure, by preventing further rise in the kinetic energy per unit volume that gives the pressure. Remember, the history of a contracting star is a story of ever-rising pressure and kinetic energy density, so we certainly never need the Pauli principle to be a cause of any new pressure-- the star has plenty already!
So what you really mean is, the Pauli principle drives the temperature way down, compared to what you might expect for that pressure, if it were an ideal gas. But the temperature is not doing anything other than making the star refuse to lose very much more heat, and that's the whole reason that the contraction ceases and the pressure stops rising.
But what about situation when the matter is in neutron star locally compressed. How can I resolve which density started to be important and pressure of the matter starting to be equivalent to pressure from degenerate neutron gas?
I'd say the first thing to do is forget about temperature, it is not playing any role in the pressure. Just look at the kinetic energy density, and what happens to it when you compress the gas locally. All gases respond exactly the same way in that situation, it makes no difference if they are degenerate-- that only affects the temperature. The only tricky thing is if the neutrons go relativistic, as that changes the connection between pressure and kinetic energy density. If you can ignore that, the pressure is always 2/3 of the kinetic energy density, independent of temperature, and independent of the Pauli principle.
How can I calculate a temperature in such place?
Why would you want to? The temperature only affects heat transfer, and most likely you are not including that anyway, as it is quite difficult.