Page 1 of 1

Questions about nk data files

Posted: Sat Feb 17, 2007 1:19 am
by Shimegi
Hello,

I used several software like blender, rhino,etc... and I'd like to make my proper materials database based on nk-data system. And apply all of my materials with <nkdata>materials.nk</nkdata>

But I don't understand nothing at all about nk-files syntax, particularly about the first parameters line. Is somebody understand it ? I think the fourth parameters is the number of ior in the nk file, the second parameter seems to modify the light absorption.... some feeling about this but nothing I can use to create a nkdata-like materials database.


If someone can help me... :p

(and sorry for my very poor english)

Posted: Sat Feb 24, 2007 3:47 am
by playmesumch00ns
Do you need to understand the file for that?

Anyway, I found the information somewhere on the internet (can't remember where now). Basically it goes like this. The first line contains information about the data in the file. All the other lines are the n and k coefficients, pairwise.

on the first line there are four numbers: a b c d, where:

a = units for the data. 1 is electron volts(eV), 2 is micrometres, 3 is millimetres amd 4 means nanometres.
b = range start
c = range end
d = number of steps

so, for iunstance the header in Ag.nk is:
1 .6 6.6 120

which means the units are eV, the range is from 0.6 to 6.6 eV, and there are 120 data points.