Changeset 2927 for trunk/nlib/samples/PowderN.comp
- Timestamp:
- 09/06/10 16:55:55 (21 months ago)
- Files:
-
- 1 modified
-
trunk/nlib/samples/PowderN.comp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/nlib/samples/PowderN.comp
r2923 r2927 49 49 * transparently, so that it can be used like a regular sample object. 50 50 * It supports the OFF and NOFF file format but not COFF (colored faces). 51 * Such files may be generated from XYZ data using qhull/powercrust, and 52 * viewed with geomview 51 * Such files may be generated from XYZ data using: 52 * qhull < coordinates.xyz Qx Qv Tv o > geomview.off 53 * and viewed with geomview or java -jar jroff.jar (see below). 53 54 * The default size of the object depends of the OFF file data, but its 54 55 * bounding box may be resized using xwidth,yheight and zdepth. … … 158 159 * weight: Atomic/molecular weight of material [g/mol] 159 160 * density: Density of material. rho=density/weight/1e24*N_A. [g/cm^3] 160 * nb_atoms: Number of atomsper unit cell [1]161 * nb_atoms: Number of sub-unit per unit cell, that is ratio of sigma for chemical formula to sigma per unit cell [1] 161 162 * 162 163 * %L … … 171 172 * Cross sections for compounds: http://www.ncnr.nist.gov/resources/sldcalc.html 172 173 * %L 173 * Fullprof powder refinement: http://www-llb.cea.fr/fullweb/fp2k/fp2k.htm174 * %L175 174 * Web Elements http://www.webelements.com/ 176 175 * %L 177 * Geomview and Object File Format (OFF) <http|://www.geomview.org> 178 * %L 179 * Powercrust/qhull <http://www.cs.utexas.edu/users/amenta/powercrust> 176 * Fullprof powder refinement: http://www.ill.eu/sites/fullprof/index.html 177 * %L 178 * Crystallographica software: http://www.crystallographica.com/ 179 * %L 180 * Geomview and Object File Format (OFF) <http://www.geomview.org> 181 * %L 182 * Java version of Geomview (display only) jroff.jar <http://www.holmes3d.net/graphics/roffview/> 183 * %L 184 * Powercrust/qhull <http://qhull.org> 180 185 * 181 186 * %E … … 276 281 "density", 277 282 "weight", 278 "nb_atoms", 283 "nb_atoms","multiplicity", 279 284 NULL); 280 285 … … 303 308 if (parsing[21] && !info->at_weight) info->at_weight =atof(parsing[21]); 304 309 if (parsing[22] && info->at_nb <= 1) info->at_nb =atof(parsing[22]); 305 for (i=0; i<=22; i++) if (parsing[i]) free(parsing[i]); 310 if (parsing[23] && info->at_nb <= 1) info->at_nb =atof(parsing[23]); 311 for (i=0; i<=23; i++) if (parsing[i]) free(parsing[i]); 306 312 free(parsing); 307 313 } … … 535 541 } 536 542 543 /* compute the scattering unit density from material weight and density */ 544 /* the weight of the scattering element is the chemical formula molecular weight 545 * times the nb of chemical formulae in the scattering element (nb_atoms) */ 537 546 if (!line_info.V_0 && line_info.at_nb > 0 538 547 && line_info.at_weight > 0 && line_info.rho > 0) { … … 541 550 line_info.V_0 = line_info.at_nb 542 551 /(line_info.rho/line_info.at_weight/1e24*6.02214199e23); 552 } 553 554 /* the scattering unit cross sections are the chemical formula onces 555 * times the nb of chemical formulae in the scattering element */ 556 if (line_info.at_nb > 0) { 557 line_info.sigma_a *= line_info.at_nb; line_info.sigma_i *= line_info.at_nb; 543 558 } 544 559
