Changeset 2927 for trunk/nlib/samples/Single_crystal.comp
- Timestamp:
- 09/06/10 16:55:55 (21 months ago)
- Files:
-
- 1 modified
-
trunk/nlib/samples/Single_crystal.comp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/nlib/samples/Single_crystal.comp
r2923 r2927 36 36 * transparently, so that it can be used like a regular sample object. 37 37 * It supports the OFF and NOFF file format but not COFF (colored faces). 38 * Such files may be generated from XYZ data using qhull/powercrust, and 39 * viewed with geomview 38 * Such files may be generated from XYZ data using: 39 * qhull < coordinates.xyz Qx Qv Tv o > geomview.off 40 * and viewed with geomview or java -jar jroff.jar (see below). 40 41 * The default size of the object depends of the OFF file data, but its 41 42 * bounding box may be resized using xwidth,yheight and zdepth. … … 86 87 * ax=3.0282, by=3.0282, cz=3.0282/2) 87 88 * 88 * %BUGS:89 * The component is known not to work properly as a Bragg monochromator. The90 * reason is likely to relate to the internal definition of reciprocal space91 * orientation. Investigation undergoing.92 *93 89 * Also, always use a non-zero value of delta_d_d. 94 90 * … … 105 101 * The OFF file may be generated from XYZ coordinates using qhull/powercrust [str] 106 102 * delta_d_d: Lattice spacing variance, gaussian RMS [1] 107 * mosaic: Crystal mosaic (isotropic), gaussian RMS. Puts the crystal in the isotropic mosaic model state, thus disregarding other mosaicity parameters. [arc minutes] 103 * mosaic: Crystal mosaic (isotropic), gaussian RMS. Puts the crystal in the 104 * isotropic mosaic model state, thus disregarding other mosaicity parameters. [arc minutes] 108 105 * mosaic_a: Horizontal (rotation around lattice vector a) mosaic (anisotropic), gaussian RMS. 109 * Put the crystal in the anisotropic crystal vector state. I.e. model mosaicity 110 * through rotation around the crystal lattice vectors. Has precedence over 111 * in-plane mosaic model. [arc minutes] 112 * mosaic_b: Vertical (rotation around lattice vector b) mosaic (anisotropic), gaussian RMS. [arc minutes] 113 * mosaic_c: Out-of-plane (Rotation around lattice vector c) mosaic (anisotropic), gaussian RMS [arc minutes] 114 * mosaic_AB: In Plane mosaic rotation and plane vectors (anisotropic), mosaic_A, mosaic_B, A_h,A_k,A_l, B_h,B_k,B_l. Puts the crystal in the in-plane mosaic state. Vectors A and B define plane in which the crystal roation is defined, and mosaic_A, mosaic_B, denotes the resp. mosaicities (gaussian RMS) with respect to the the two reflections chosen by A and B (Miller indices). [arc_minutes, arc_minutes,1, 1, 1, 1, 1, 1] 106 * Put the crystal in the anisotropic crystal vector state. I.e. model mosaicity 107 * through rotation around the crystal lattice vectors. Has precedence over 108 * in-plane mosaic model. [arc minutes] 109 * mosaic_b: Vertical (rotation around lattice vector b) mosaic (anisotropic), 110 * gaussian RMS. [arc minutes] 111 * mosaic_c: Out-of-plane (Rotation around lattice vector c) mosaic (anisotropic), 112 * gaussian RMS [arc minutes] 113 * mosaic_AB: In Plane mosaic rotation and plane vectors (anisotropic), 114 * mosaic_A, mosaic_B, A_h,A_k,A_l, B_h,B_k,B_l. Puts the crystal in 115 * the in-plane mosaic state. Vectors A and B define plane in which 116 * the crystal roation is defined, and mosaic_A, mosaic_B, denotes the 117 * resp. mosaicities (gaussian RMS) with respect to the the two 118 * reflections chosen by A and B (Miller indices). [arc_minutes, arc_minutes,1, 1, 1, 1, 1, 1] 115 119 * 116 120 * recip_cell: Choice of direct/reciprocal (0/1) unit cell definition [1] … … 152 156 * Cross sections for compounds: http://www.ncnr.nist.gov/resources/sldcalc.html 153 157 * %L 154 * Geomview and Object File Format (OFF) <http|://www.geomview.org>158 * Fullprof powder refinement: http://www.ill.eu/sites/fullprof/index.html 155 159 * %L 156 * Powercrust/qhull <http://www.cs.utexas.edu/users/amenta/powercrust> 160 * Crystallographica software: http://www.crystallographica.com/ 161 * %L 162 * Geomview and Object File Format (OFF) <http://www.geomview.org> 163 * %L 164 * Java version of Geomview (display only) jroff.jar <http://www.holmes3d.net/graphics/roffview/> 165 * %L 166 * Powercrust/qhull <http://qhull.org> 157 167 * 158 168 * %E … … 333 343 "lattice_bb", 334 344 "lattice_cc", 335 "nb_atoms", 345 "nb_atoms","multiplicity", 336 346 NULL); 337 347 … … 354 364 if (parsing[15] && !info->m_cc) info->m_cc=atof(parsing[15]); 355 365 if (parsing[16]) nb_atoms=atof(parsing[16]); 356 for (i=0; i<=16; i++) if (parsing[i]) free(parsing[i]); 366 if (parsing[17]) nb_atoms=atof(parsing[17]); 367 for (i=0; i<=17; i++) if (parsing[i]) free(parsing[i]); 357 368 free(parsing); 358 369 } 359 370 } 371 372 if (nb_atoms > 1) { info->sigma_a *= nb_atoms; info->sigma_i *= nb_atoms; } 360 373 361 374 /* special cases for the structure definition */ … … 685 698 } 686 699 return(info->count = i); 687 } 700 } /* read_hkl_data */ 688 701 #endif /* !SINGLE_CRYSTAL_DECL */ 689 702 … … 719 732 hkl_info.sigma_a = sigma_abs; 720 733 hkl_info.sigma_i = sigma_inc; 721 hkl_info.recip = recip_cell;734 hkl_info.recip = recip_cell; 722 735 723 736 /* default format h,k,l,F,F2 */
