亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? s_parmosm2.m

?? 帶電粒子在電磁場中運(yùn)動(dòng)軌跡模擬程序
?? M
?? 第 1 頁 / 共 3 頁
字號:
function varargout = s_parmosM2(varargin)
% main program

%     Copyright (C) 2007 
%
%       mag. David Erzen
%       Faculty of Mechanical Engineering
%       LECAD Laboratory
%       Askerceva 6
%       1000 Ljubljana
%       SLOVENIA
%       contact email: david.erzen@lecad.uni-lj.si
%       
%       Prof. John P. Verboncoeur
%       Plasma Theory and Simulation Group
%       University of California
%       Berkeley, CA 94720-1730 USA
%       
% 
%     This program is free software: you can redistribute it and/or modify
%     it under the terms of the GNU General Public License as published by
%     the Free Software Foundation, either version 3 of the License, or
%     (at your option) any later version.
% 
%     This program is distributed in the hope that it will be useful,
%     but WITHOUT ANY WARRANTY; without even the implied warranty of
%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%     GNU General Public License for more details.
% 
%     You should have received a copy of the GNU General Public License
%     along with this program.  If not, see <http://www.gnu.org/licenses/>.
    



%**************************************************************************
% MAJOR CORRECTIONS: 
% file: simulation_run.m
% correction: a calcualtion for guiding center is added into the
% calculate_guideCenter procedure
%
% file: simulation_run.m and sim1.wrl
% correction: a guiding center vector is added in sim1.wrl and calculated
% in simulation_run.m
%
% file: s_parmosM2.m
% correction: an option for manipulting with one field line length is
% added. there is a new pannel in the GUI window where user can choose
% electric, or magnetic field, a field line munber and set its length. the
% vrl window stil refreshes when "Show Fields" button is pressed
%
% file: simulation_run.m
% correction: in function calculate_guideCenter the test in if sentence was
% changed. before: if (t(1) ~= t1(1)) && (t(2) ~= t1(2)) &&(t(3) ~= t1(3))
% &&(t1(1) ~= t2(1)) &&(t1(2) ~= t2(2)) && (t1(3) ~= t2(3)) 
% after: if ((t(1) ~= t1(1)) || (t(2) ~= t1(2)) || (t(3) ~= t1(3))) &&
% ((t(1) ~= t2(1)) || (t(2) ~= t2(2)) || (t(3) ~= t2(3))) && ((t2(1) ~=
% t1(1)) || (t2(2) ~= t1(2)) || (t2(3) ~= t1(3))) 
% Before none of the three coordinates should be the same in the three
% points. Now, points should differ form one to another at least in one
% coodrinate.
%
% file: prepare_information.m, s_parmosM2.m, s_parmosM2.fig,
% initialization.m, lobal_variables.m
% correction: an option for concentric magnetic field is added. it is the
% same magnetic field like torus but with a different geometry for field
% lines.
%
% file: global_variables.m
% correction: a Bline_length variable can be changed here for faster
% handling. otherwise this line is under comment therefore just the pannel
% is used to change the field line length
%
% TIME DEPENDENT FIELDS
% fields have time factor with some predefined time functions
% factor is calculated in functions: calculate_B and calculate_E
% visualization of this factor is presented in transparency of field's
% lines, e.g. when factor is 1 lines are not transparent, when factor is 0
% lines are 100% transparent
%

%**************************************************************************


% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @s_parmosM2_OpeningFcn, ...
                   'gui_OutputFcn',  @s_parmosM2_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT    
end

% --- Executes just before s_parmosM2 is made visible.
function s_parmosM2_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to s_parmosM2 (see VARARGIN)

% Choose default command line output for s_parmosM2
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes s_parmosM2 wait for user response (see UIRESUME)
% uiwait(handles.figure1);

    % aditional initialization
    global_variables;
    status = STATUS_STOP;
    Bline_length = [550, 540, 530, 530, 530, 530, 540, 540, 540, 540, 540, 550, 540, 550, 540, 550, 540, 550 ];
    Eline_length = [500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500 ];
    
    
    set(handles.stextMagField, 'Visible', 'Off');
    set(handles.edtMagField, 'Visible', 'Off');
    set(handles.stextElecField, 'Visible', 'Off');
    set(handles.edtElecField, 'Visible', 'Off');
    field_Bchosen = BFIELD_NONE;
    

end

% --- Outputs from this function are returned to the command line.
function varargout = s_parmosM2_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;
end

% --- Executes on selection change in popMagField.
function popMagField_Callback(hObject, eventdata, handles)
% hObject    handle to popMagField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popMagField contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popMagField

    global_variables;
    
    switch get(handles.popMagField, 'Value')
        case BFIELD_NONE                                    % no magnetic field is selected
            set(handles.stextMagField, 'Visible', 'Off');
            set(handles.edtMagField, 'Visible', 'Off');
            
        case BFIELD_CONSTANT                                % constant magnetic filed in z direction
            set(handles.stextMagField, 'Visible', 'On');
            set(handles.stextMagField, 'String', 'Define magnetic field strength [T]');
            set(handles.edtMagField, 'Visible', 'On');
            set(handles.edtMagField, 'String', '0.01');
            
            % lets set also some "nice" particle parameters
            set(handles.edtInitPos, 'String', '[0; 0; 0]');
            set(handles.edtInitVel, 'String', '[0; 3e5; 1e4]');
            set(handles.edtMass, 'String', '1.6e-27');
            set(handles.edtCharge, 'String', '1.6e-19');
            
        case BFIELD_EXPONENT                                % magnetic field in z direction, exponential fall in x direction
            set(handles.stextMagField, 'Visible', 'On');
            set(handles.stextMagField, 'String', 'Equ: Bo*(0,0,exp(-x/L)). Define constants Bo and L');
            set(handles.edtMagField, 'String', '[ 0.025, 0.7 ]');
            set(handles.edtMagField, 'Visible', 'On' );
            
            % lets set also some "nice" particle parameters
            set(handles.edtInitPos, 'String', '[0; 0; 0]');
            set(handles.edtInitVel, 'String', '[0; 3e5; 1e3]');
            set(handles.edtMass, 'String', '1.6e-27');
            set(handles.edtCharge, 'String', '1.6e-19');
            
        case BFIELD_TORUS                                   % magnetic field in a torus
            set(handles.stextMagField, 'String', 'Equ: Bo*Ro(-y, x, 0)/(x^2+y^2). Define Bo, Ro(also torus major radius) and a(torus minor radius)');
            set(handles.stextMagField, 'Visible', 'On');            
             set(handles.edtMagField, 'Visible', 'On');
            set(handles.edtMagField, 'String', '[ 0.1, 2, 1 ]'); 
            
            % lets set also some "nice" particle parameters
            set(handles.edtInitPos, 'String', '[2; 0; 0]');
            set(handles.edtInitVel, 'String', '[0; 3e5; 1e3]');
            set(handles.edtMass, 'String', '1.6e-27');
            set(handles.edtCharge, 'String', '1.6e-19');
            
        case BFIELD_TORUS_POLOIDAL                           % magnetic field in a torus with poloidal magnetic field
            set(handles.stextMagField, 'String', 'Equ: Bo*Ro(-y, x, 0)/(x^2+y^2) + ???????? Define Bt, Ro, Bp and a');
            set(handles.stextMagField, 'Visible', 'On');            
            set(handles.edtMagField, 'Visible', 'On');
            set(handles.edtMagField, 'String', '[ 0.05, 3, -0.01, 1 ]'); 
            
            % lets set also some "nice" particle parameters
            set(handles.edtInitPos, 'String', '[3.8; 0; 0]');
            set(handles.edtInitVel, 'String', '[2e5; 1e5; 2e5]');
            set(handles.edtMass, 'String', '3.67e-27');
            set(handles.edtCharge, 'String', '1.6e-19');
            
        case BFIELD_CONCENTRIC                              % magnetic field in a torus with poloidal magnetic field
            set(handles.stextMagField, 'String', 'Bo*Ro/(x^2+y^2)*[ -y, x, 0 ]  Define Bo and Ro.');
            set(handles.stextMagField, 'Visible', 'On');            
            set(handles.edtMagField, 'Visible', 'On');
            set(handles.edtMagField, 'String', '[ 0.015, 0.5 ]'); 
            
            % lets set also some "nice" particle parameters
            set(handles.edtInitPos, 'String', '[0; 0.5; 0]');
            set(handles.edtInitVel, 'String', '[5e4; 2e5; 0]');
            set(handles.edtMass, 'String', '1.6e-27');
            set(handles.edtCharge, 'String', '1.6e-19');
            
        case BFIELD_CUSTOM                                   % custom magnetic field
            set(handles.stextMagField, 'String', 'Define magnetic field [Bx, By, Bz]. Instead of the coordinates xyz use R(1)R(2)R(3). Example: [ 0, (R(1)+R(2))/Sqrt(R(1)^2+R(2)^2+R(3)^2), R(3)/Sqrt(R(1)^2+R(2)^2+R(3)^2) ]');
            set(handles.stextMagField, 'Visible', 'On');
            set(handles.edtMagField, 'Visible', 'On');
            set(handles.edtMagField, 'String', '[ 0, 0, 0 ]');     
            
       case BFIELD_MIRROR                              % magnetic field in a magnetic mirror / cusp
            set(handles.stextMagField, 'String', 'Define magnetic monopol displacement and top and bottom sign.');
            set(handles.stextMagField, 'Visible', 'On');            
            set(handles.edtMagField, 'Visible', 'On');
            set(handles.edtMagField, 'String', '[ 5, 0.03, -0.03 ]'); 
            
            % lets set also some "nice" particle parameters
            set(handles.edtInitPos, 'String', '[0; 0.1; 0]');
            set(handles.edtInitVel, 'String', '[1e5; 1e5; 1e5]');
            set(handles.edtMass, 'String', '1.6e-27');
            set(handles.edtCharge, 'String', '1.6e-19');

            
    end

end

% --- Executes during object creation, after setting all properties.
function popMagField_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popMagField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end


function edtMagField_Callback(hObject, eventdata, handles)
% hObject    handle to edtMagField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edtMagField as text
%        str2double(get(hObject,'String')) returns contents of edtMagField as a double
end

% --- Executes during object creation, after setting all properties.
function edtMagField_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edtMagField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end

% --- Executes on slider movement.
function sliderForce_Callback(hObject, eventdata, handles)
% hObject    handle to sliderForce (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'Value') returns position of slider
%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
    global_variables;
    value = get(hObject,'Value');
    factor_force = 10^value;
end

% --- Executes during object creation, after setting all properties.
function sliderForce_CreateFcn(hObject, eventdata, handles)
% hObject    handle to sliderForce (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end;
    global_variables;
    value = 13.0;
    set(hObject,'Value', value);
    factor_force = 10^value;
end

% --- Executes on button press in rbuttTraject.
function rbuttTraject_Callback(hObject, eventdata, handles)
% hObject    handle to rbuttTraject (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of rbuttTraject
    global_variables;
    traj_set = get( hObject, 'Value' );
end

% --- Executes on slider movement.
function sliderVel_Callback(hObject, eventdata, handles)
% hObject    handle to sliderVel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'Value') returns position of slider
%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
    
    global_variables;
    value = get(hObject,'Value');

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区在线不卡| 国产精品伦理在线| 琪琪久久久久日韩精品| 欧美视频一区二区在线观看| 一区二区欧美在线观看| 欧美日韩在线亚洲一区蜜芽| 午夜不卡av免费| 2019国产精品| 99精品久久只有精品| 亚洲成va人在线观看| 精品日产卡一卡二卡麻豆| 国产99久久久国产精品| 亚洲美女视频在线| 日韩欧美一级特黄在线播放| 国产精品一区三区| 一区二区三区在线观看视频| 欧美福利电影网| 国产iv一区二区三区| 亚洲午夜在线观看视频在线| 欧美mv日韩mv| 色呦呦网站一区| 麻豆精品视频在线观看视频| 欧美激情在线看| 欧美日韩另类国产亚洲欧美一级| 韩国成人在线视频| 亚洲欧美激情插| 欧美成人一区二区| 色妹子一区二区| 精品亚洲免费视频| 亚洲精选免费视频| 精品国产91洋老外米糕| 色94色欧美sute亚洲线路二 | 亚洲伦理在线免费看| 91麻豆精品91久久久久同性| 国产不卡免费视频| 视频一区国产视频| 国产精品视频你懂的| 欧美一区二区三区婷婷月色| 成人免费观看视频| 蜜桃久久久久久久| 亚洲精品乱码久久久久久久久| 欧美r级电影在线观看| 欧美性xxxxx极品少妇| 成人午夜在线播放| 精品一区二区免费看| 视频一区在线播放| 亚洲激情欧美激情| 欧美韩国日本综合| 久久综合久色欧美综合狠狠| 欧美日韩一区二区三区高清 | 欧美亚洲另类激情小说| 国产盗摄视频一区二区三区| 日韩—二三区免费观看av| 亚洲色图色小说| 国产精品私人影院| 26uuu久久综合| 欧美一区二区在线播放| 日本高清不卡视频| 成人毛片老司机大片| 国产一区在线看| 蜜桃一区二区三区在线观看| 亚洲动漫第一页| 亚洲综合区在线| 亚洲精品视频在线看| 国产精品视频一二三| 久久久久国产免费免费| 亚洲精品一区二区三区福利 | 久久一区二区三区国产精品| 欧美一区二区大片| 7777精品久久久大香线蕉| 欧美色图在线观看| 在线国产电影不卡| 91成人在线观看喷潮| 欧美性猛交一区二区三区精品| 色先锋资源久久综合| 日本韩国视频一区二区| 欧美这里有精品| 欧美色综合天天久久综合精品| 欧美色区777第一页| 欧美日韩免费视频| 这里只有精品免费| 欧美一级理论性理论a| 欧美一级淫片007| 久久色成人在线| 亚洲欧洲色图综合| 一区二区三区电影在线播| 亚洲综合免费观看高清在线观看| 亚洲一区在线观看网站| 丝袜美腿一区二区三区| 蜜臀av在线播放一区二区三区 | 成人激情视频网站| 99视频国产精品| 欧美午夜精品理论片a级按摩| 欧美日韩国产影片| 欧美大片在线观看一区二区| 亚洲精品一区二区三区在线观看| 国产亚洲制服色| 亚洲乱码国产乱码精品精的特点| 亚洲国产美女搞黄色| 蜜臀久久99精品久久久画质超高清 | 欧美日韩国产综合视频在线观看| 欧美浪妇xxxx高跟鞋交| 精品国免费一区二区三区| 国产精品麻豆网站| 一区二区三区不卡在线观看| 美女视频免费一区| 成人午夜碰碰视频| 欧美老女人在线| 国产欧美一区二区三区网站 | 免费观看在线综合色| 国产精品白丝jk白祙喷水网站| 成人精品视频一区二区三区 | 国产精品美女久久久久久| 亚洲男同1069视频| 精品伊人久久久久7777人| 成人免费电影视频| 欧美一级搡bbbb搡bbbb| 亚洲国产成人一区二区三区| 亚洲午夜电影在线| 国产乱子伦一区二区三区国色天香| 国产在线国偷精品免费看| 99精品国产99久久久久久白柏| 欧美丰满美乳xxx高潮www| 国产欧美精品一区aⅴ影院| 香港成人在线视频| av不卡免费在线观看| 欧美妇女性影城| 国产精品视频线看| 久久99久久久欧美国产| 色狠狠色噜噜噜综合网| 国产欧美日韩精品a在线观看| 天天综合日日夜夜精品| av不卡在线播放| 国产午夜精品久久久久久久| 亚洲午夜免费视频| 成人动漫在线一区| 久久五月婷婷丁香社区| 天天av天天翘天天综合网| 成人爱爱电影网址| 精品国产电影一区二区| 亚洲国产精品久久人人爱| 99re6这里只有精品视频在线观看| 欧美精品一区二区三区四区| 亚洲成人精品一区| 色婷婷综合久久久中文字幕| 久久一区二区三区国产精品| 日本亚洲一区二区| 欧美理论在线播放| 亚洲一区二区三区四区五区黄| 成人av在线电影| 国产午夜精品久久久久久久| 久久国内精品自在自线400部| 欧美久久久影院| 亚洲一区二区三区四区在线观看| 91色在线porny| 综合久久给合久久狠狠狠97色| 国产成人日日夜夜| 国产欧美视频一区二区三区| 激情六月婷婷综合| www一区二区| 国产精品一区二区久久精品爱涩| 欧美一区二区三区不卡| 日韩av中文字幕一区二区 | 91浏览器在线视频| 中文字幕日本乱码精品影院| 99久久伊人精品| 国产精品麻豆网站| av在线一区二区三区| 国产精品乱码一区二三区小蝌蚪| 国产激情精品久久久第一区二区| 久久久精品蜜桃| 国产高清精品在线| 国产欧美一区二区精品婷婷| 本田岬高潮一区二区三区| 国产精品家庭影院| 色狠狠桃花综合| 日韩精品1区2区3区| 日韩欧美一级二级三级久久久| 免费成人在线观看视频| 日韩精品一区二| 成人免费视频caoporn| 中文字幕在线观看不卡| 91黄色免费看| 蜜臀精品一区二区三区在线观看| 久久男人中文字幕资源站| 丁香婷婷综合网| 亚洲午夜久久久久久久久电影院 | 久久精品一二三| 99re66热这里只有精品3直播| 亚洲人成精品久久久久| 欧美亚洲另类激情小说| 久久99久久久久久久久久久| 2023国产精品自拍| 色悠悠亚洲一区二区| 青娱乐精品视频| 国产欧美日本一区二区三区| 色久综合一二码| 黄一区二区三区| 亚洲美女区一区| 精品国产一区a|