I used the NIGBT inside the standard library and changed the the prefix to x and the value to IKW40N65H5A_L2.
Then I changed the name of the .lib file to IKW40N65H5A_L2.txt and copied it to the directory in which my schematics are.
My last step the was the SPICE directive : .inc IKW40N65H5A_L2.txt
When I start the simlation, I get the following error:
Unknown subcircuit called in: xu1 drain gate source IKW40N65H5A_L2
There may be a simpler way, but the following worked for me :_
1) Downloaded the library from the link,
2) renamed it IGBTs.lib,
3) copied it all to the ....\LTspiceIV\lib\sub folder,
4) placed the IGBT symbol on the schematic,
5) right-clicked the symbol and changed its value to IKW40N65H5A_L2,
6) added the directive .inc IGBTs.lib.
I married the Infineon library to a LTSpice schematic, but when I try to run it, the simulator is struggling. The library has a bunch of suggested .OPTIONS statements; I tried those. I tried the alternate solver in LTSpice, and that is no go as well.
Attached is .zip file that marries the .lib file to the .asc file...