[go: up one dir, main page]

Menu

[73c35b]: / anal / real_to_scaled.m  Maximize  Restore  History

Download this file

19 lines (16 with data), 649 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
% real_to_scaled: calculates the scaled variable values from physical ones
% GUISDAP v.1.60 96-05-27 Copyright Asko Huuskonen and Markku Lehtinen
%
% Parameters:
% physical: plasma parameters in physical units
% scaled: plasma parameters in scaled units
% See also: scaled_to_real
%function scaled=real_to_scaled(physical)
function scaled=real_to_scaled(physical)
global p_N0 p_m0 p_T0 p_om0 k_radar0
scaled=physical; % affects element 3 and also 6 (if specified on input)
scaled(:,1)=physical(:,1)/p_N0;
scaled(:,2)=physical(:,2)/p_T0;
ch=1; % hyi hyi
scaled(:,4)=physical(:,4)/(p_om0(ch));
scaled(:,5)=physical(:,5)/(p_om0(ch)/k_radar0(ch));