Ignore:
Timestamp:
07/30/10 13:16:33 (22 months ago)
Author:
tabel
Message:

Added radial and tangential velocity as well as cylindrical radius for the particles as a derived field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TOOLS/AMRslice.pro

    r27 r30  
    696696          if STOPIT then begin 
    697697             stopit = 0 
    698              break 
     698             return 
    699699          endif 
    700700           
     
    970970           endfor 
    971971        end else begin 
    972            while ofname ne file_name do begin 
     972           while ofname ne strmid(file_name, 0, strpos(file_name,'.',/reverse_search)) do begin 
    973973              select_current_grids 
    974974              check_cancel, stopit=stopit 
     
    985985              if last_was eq 5 then j_event, 'PROJECTHII' 
    986986              if verbose then print, 'memory use in Gb', memory()/1024./1e6 
    987               ofname = file_name 
     987               
     988              print, 'ofname:', $ 
     989                     ofname 
     990              print, strmid(file_name, 0, strpos(file_name,'.',/reverse_search)) 
     991              ofname = strmid(file_name, 0, strpos(file_name,'.',/reverse_search)) 
     992 
     993               
    988994              for i=0,astep-1 do j_event, 'NEXT TIME STEP' 
    989               wait, 1 
     995              wait, .2 
    990996           endwhile 
    991997        endelse            
     
    10791085           if parti.myturn eq 1 then begin 
    10801086              pdata = render_particle_data() 
    1081               ind = where(pdata ne min(pdata)) > 0 
    1082               data[ind] = max(data) 
     1087;              data[ind] = max(data) 
     1088;              data[ind] = pdata[ind] 
    10831089              last_was = 2 
    10841090           end  
    1085         endelse 
     1091 
    10861092        if (size(data))[0] eq 2 then begin 
    10871093           construct_image, data 
     1094           if N_elements(pdata) eq N_elements((*image_stack[image_index].image_d)) then begin 
     1095; combine particles with projection 
     1096              imi = min(pdata[where(pdata gt min(pdata))], max=ima) 
     1097              dmi = min((*image_stack[image_index].image_d), max=dma) 
     1098;              dma = sqrt(dmi*dma) ; stop particle colors in the geometric mean of min and max of grid data 
     1099              im = (pdata-imi)/(ima-imi)*(dma-dmi)+dmi 
     1100              ind = where(im gt dmi, count) > 0 
     1101              if count eq 0 then ind = lindgen(N_elements(im)) 
     1102              print, imi, ima, dmi, dma 
     1103              if parti.myturn eq 1 then (*image_stack[image_index].image_d)[ind] = im[ind] 
     1104              im = 0. 
     1105           endif 
    10881106           show_image 
     1107 
    10891108        endif  
    10901109        if (vel.myturn) then j_event, 'VELPlot' 
    10911110        fresh_image = 1 
     1111 
     1112        endelse 
    10921113    END 
    10931114 
     
    13381359        help = ['PICK PEAK FILE', 'Select existing peak file or', $ 
    13391360                'specify a new file name to create your own list of peaks'] 
    1340         peak_file_name = dialog_pickfile(GROUP=TOP_BASE, FILTER = '*.peaks', $ 
    1341                                          Path=data_dir,   $ 
     1361        peak_file_name = dialog_pickfile(GROUP=TOP_BASE, FILTER = '*.peaks;*.dat', $ 
     1362                                         Path=data_dir+'../FOF',   $ 
    13421363                                         TITLE  = 'Choose peak file', $ 
    13431364                                         GET_PATH = peak_in_dir) 
     
    18451866                       UVALUE='BASE2') 
    18461867 
    1847   BASE2 = WIDGET_BASE(parent, $ 
    1848                       /COLUMN, MAP=1, $ ;  SCR_XSIZE=350,Y_SCROLL_SIZE=wxysize+100, $ 
    1849                       UVALUE='BASE2') 
    1850    
     1868;  BASE2 = WIDGET_BASE(parent, /COLUMN, MAP=1,   SCR_XSIZE=350,Y_SCROLL_SIZE=wxysize+100, UVALUE='BASE2') ; projector 
     1869  BASE2 = WIDGET_BASE(parent, /COLUMN, MAP=1,  UVALUE='BASE2')    
     1870 
    18511871  ISO_BASE = WIDGET_BASE(parent, /COLUMN, MAP=0, UVALUE = 'VALUE_BASE') 
    18521872 
Note: See TracChangeset for help on using the changeset viewer.