Show
Ignore:
Timestamp:
09/06/10 16:55:55 (21 months ago)
Author:
farhi
Message:

samples: updated headers, fixed usage of nb_toms = multiplicity of chemical formula within unit cell

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/nlib/samples/Single_crystal.comp

    r2923 r2927  
    3636*   transparently, so that it can be used like a regular sample object. 
    3737*   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). 
    4041*   The default size of the object depends of the OFF file data, but its  
    4142*   bounding box may be resized using xwidth,yheight and zdepth. 
     
    8687*           ax=3.0282, by=3.0282, cz=3.0282/2) 
    8788* 
    88 * %BUGS: 
    89 * The component is known not to work properly as a Bragg monochromator. The  
    90 * reason is likely to relate to the internal definition of reciprocal space  
    91 * orientation. Investigation undergoing.  
    92 * 
    9389* Also, always use a non-zero value of delta_d_d. 
    9490* 
     
    105101*               The OFF file may be generated from XYZ coordinates using qhull/powercrust [str] 
    106102* 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] 
    108105* 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] 
    115119*  
    116120* recip_cell: Choice of direct/reciprocal (0/1) unit cell definition [1] 
     
    152156* Cross sections for compounds:       http://www.ncnr.nist.gov/resources/sldcalc.html 
    153157* %L 
    154 * Geomview and Object File Format (OFF) <http|://www.geomview.org> 
     158* Fullprof powder refinement:         http://www.ill.eu/sites/fullprof/index.html 
    155159* %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> 
    157167* 
    158168* %E 
     
    333343        "lattice_bb", 
    334344        "lattice_cc", 
    335         "nb_atoms", 
     345        "nb_atoms","multiplicity", 
    336346        NULL); 
    337347 
     
    354364        if (parsing[15] && !info->m_cc)   info->m_cc=atof(parsing[15]); 
    355365        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]); 
    357368        free(parsing); 
    358369      } 
    359370    } 
     371     
     372    if (nb_atoms > 1) { info->sigma_a *= nb_atoms; info->sigma_i *= nb_atoms; } 
    360373 
    361374    /* special cases for the structure definition */ 
     
    685698    } 
    686699    return(info->count = i); 
    687   } 
     700  } /* read_hkl_data */ 
    688701#endif /* !SINGLE_CRYSTAL_DECL */ 
    689702 
     
    719732  hkl_info.sigma_a = sigma_abs; 
    720733  hkl_info.sigma_i = sigma_inc; 
    721   hkl_info.recip = recip_cell; 
     734  hkl_info.recip   = recip_cell; 
    722735 
    723736  /* default format h,k,l,F,F2  */