Show
Ignore:
Timestamp:
06/15/10 14:28:25 (2 years ago)
Author:
erkn
Message:

better way of allowing vector input for anistropic in-plane mosaic.
previous version clashed with the gui/documentaion generation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcstas-1.x/lib/samples/Single_crystal.comp

    r2851 r2895  
    112112* mosaic_b:  Vertical (rotation around lattice vector b) mosaic (anisotropic), gaussian RMS. [arc minutes] 
    113113* 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] 
     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, input as a {}-delimited, 8-element vector. Puts the component 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] 
    115115*  
    116116* recip_cell: Choice of direct/reciprocal (0/1) unit cell definition [1] 
     
    209209 
    210210DEFINE COMPONENT Single_crystal 
    211 DEFINITION PARAMETERS(mosaic_AB={0,0, 0,0,0, 0,0,0}) 
     211DEFINITION PARAMETERS(mosaic_AB=Mosaic_AB_Undefined) 
    212212SETTING PARAMETERS(string reflections=0, string geometry=0, 
    213213            xwidth=0, yheight=0, zthick=0, radius=0, delta_d_d=1e-4, 
     
    229229#ifndef SINGLE_CRYSTAL_DECL 
    230230#define SINGLE_CRYSTAL_DECL 
     231 
     232#ifndef Mosaic_AB_Undefined 
     233#define Mosaic_AB_Undefined {0,0, 0,0,0, 0,0,0} 
     234#endif 
    231235 
    232236    struct hkl_data