Ignore:
Timestamp:
Jun 25, 2014 6:58:27 AM (9 years ago)
Author:
srkline
Message:

Added method to RealSpace? modeling to allow drawing a single cylidner with given center and arbitrary orientation.

Updated the Simulation help file to note that the simulation will work with a real space structure as the "model" input. In this way, there is no limitation on what can be simulated through SASCALC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Alpha/Tinker/FFT_FillMatrixShapes.ipf

    r942 r943  
    798798End 
    799799 
     800 
     801// takes XYZV values such as output from  Ken Rubinson's converter 
     802// where xyz may take negative values, and tries to put it into  
     803// mat, shifting XYZ as needed 
     804// 
     805// now the xyz center is passed in (for a single object) that is treated as the center of that object 
     806// 
     807Function XYZV_FillMat_Centered(xx,yy,zz,xc,yc,zc,rad,len,val,erase) 
     808        Wave xx,yy,zz 
     809        Variable xc,yc,zc,rad,len 
     810        Wave val 
     811        Variable erase 
     812         
     813        Variable x1,x2,y1,y2,z1,z2,ii,jj,kk,num,npt,minp,maxp 
     814         
     815        WAVE mat = root:mat 
     816        NVAR solventSLD = root:FFT_SolventSLD 
     817        NVAR FFT_T=root:FFT_T 
     818 
     819        if(erase) 
     820                mat = solventSLD 
     821        endif 
     822         
     823        num=numpnts(xx) 
     824         
     825        for(ii=0;ii<num;ii+=1) 
     826                mat[xx[ii]][yy[ii]][zz[ii]] = val[ii] 
     827        endfor 
     828         
     829        return(0) 
     830End 
     831 
     832 
     833 
     834 
     835///// replaced by XYZV_FillMat_Centered() after using Ken's routines, but may have some use in the future 
     836// 
    800837// takes XYZV values such as output from  Ken Rubinson's converter 
    801838// where xyz may take negative values, and tries to put it into  
Note: See TracChangeset for help on using the changeset viewer.