托卡马克中归一化磁通和归一化半径转换
[matlab]
计算归一化极向磁通
function x = calculateNormalizedPsi(gridfile)
   
   
   
    
   
    [varname, gridvalue] = readgridnc(gridfile);
    
   
    psixy = gridvalue{strcmp(varname, 'psixy')};
    psi_axis = gridvalue{strcmp(varname, 'psi_axis')};
    psi_bndry = gridvalue{strcmp(varname, 'psi_bndry')};
    
   
    x = (psixy(:,1) - psi_axis) / (psi_bndry - psi_axis);
end

function rho = calculateNormalizedr(gridfile)
    [varname, gridvalue] = readgridnc(gridfile);
    ShiftAngle = gridvalue{strcmp(varname, 'ShiftAngle')};
    q = abs(ShiftAngle/2/pi);
    Rxy = gridvalue{strcmp(varname, 'Rxy')};
    [~, col_index] = max(max(Rxy));
    R0=(max(max(Rxy))+min(min(Rxy)))/2;
    a=max(max(Rxy))-R0;
    r=Rxy(:,col_index)-R0;
    rho=r/a;
end


文章标题:托卡马克中归一化磁通和归一化半径转换
文章作者:可以是中文吗
转载链接:https://sunwaybits.tech/%e6%89%98%e5%8d%a1%e9%a9%ac%e5%85%8b%e4%b8%ad%e5%bd%92%e4%b8%80%e5%8c%96%e7%a3%81%e9%80%9a%e5%92%8c%e5%bd%92%e4%b8%80%e5%8c%96%e5%8d%8a%e5%be%84%e8%bd%ac%e6%8d%a2.html
暂无评论

发送评论 编辑评论


				
😃
😄
😁
😆
😅
😂
🤣
🥲
😊
😇
🙂
🙃
😉
😌
😍
🥰
😘
😗
😙
😚
😋
😛
😝
😜
🤪
🤨
🧐
🤓
😎
🥸
🤩
🥳
😏
😒
😞
😔
😟
😕
🙁
😣
😖
😫
😩
🥺
😢
😭
😤
😠
😡
🤬
🤯
😳
🥵
🥶
😱
😨
😰
😥
😓
🤗
🤔
🤭
🤫
🤥
😶
😐
😑
😬
🙄
Emoji
上一篇