Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
gdat
Commits
55cb570e
Commit
55cb570e
authored
7 months ago
by
Antonia Frank
Browse files
Options
Downloads
Patches
Plain Diff
Add warning when loading B-fields from other source than LIUQE.M
parent
bc1d0003
No related branches found
No related tags found
1 merge request
!173
Ids for torbeam
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/tcv_get_ids_equilibrium.m
+13
-11
13 additions, 11 deletions
matlab/TCV_IMAS/tcv_get_ids_equilibrium.m
with
13 additions
and
11 deletions
matlab/TCV_IMAS/tcv_get_ids_equilibrium.m
+
13
−
11
View file @
55cb570e
...
...
@@ -5,7 +5,7 @@ function [ids_equilibrium,ids_equilibrium_description,varargout] = ...
% tcv_get_ids_equilibrium(shot,ids_equil_empty,gdat_params,varargin);
%
%
% gdat_params: gdat_data.gdat_params to get all params passed from original call,
% gdat_params: gdat_data.gdat_params to get all params passed from original call,
% in particular error_bar and cocos_out options
%
...
...
@@ -529,15 +529,19 @@ profiles_2d.z.data = repmat(repmat(profiles_2d.psi.dim{2}',numel(profiles_2d.psi
profiles_2d_desc
.
z
=
'from dim{2} of
''
psi
''
repeated'
;
params_eff
.
data_request
=
'bfields'
;
bfields_gdat
=
gdat
(
params_equilibrium
.
shot
,
params_eff
);
profiles_2d
.
b_field_r
=
bfields_gdat
.
Br
;
profiles_2d_desc
.
b_field_r
=
bfields_gdat
.
Br
.
label
;
profiles_2d
.
b_field_z
=
bfields_gdat
.
Bz
;
profiles_2d_desc
.
b_field_z
=
bfields_gdat
.
Bz
.
label
;
profiles_2d
.
b_field_tor
=
bfields_gdat
.
Btor
;
profiles_2d_desc
.
b_field_tor
=
bfields_gdat
.
Btor
.
label
;
if
~
isempty
(
bfields_gdat
.
Br
)
profiles_2d
.
b_field_r
=
bfields_gdat
.
Br
;
profiles_2d_desc
.
b_field_r
=
bfields_gdat
.
Br
.
label
;
profiles_2d
.
b_field_z
=
bfields_gdat
.
Bz
;
profiles_2d_desc
.
b_field_z
=
bfields_gdat
.
Bz
.
label
;
profiles_2d
.
b_field_tor
=
bfields_gdat
.
Btor
;
profiles_2d_desc
.
b_field_tor
=
bfields_gdat
.
Btor
.
label
;
else
warning
(
'B-fields could not be load from gdat(shot,
''
bfields
''
). B-fields only available for LIUQE.M, trial 1.'
)
end
% theta = gdat(params_equilibrium.shot,'theta','machine',gdat_params.machine);
tic
profiles_2d_fieldnames
=
fieldnames
(
profiles_2d
);
special_fields
=
{
'grid'
,
'grid_type'
};
% fields needing non-automatic treatments
for
it
=
1
:
ntime
...
...
@@ -576,7 +580,7 @@ for it=1:numel(ids_equilibrium.time_slice)
ids_equilibrium
.
time_slice
{
it
}
.
boundary_separatrix
.
x_point
=
{};
ids_equilibrium
.
time_slice
{
it
}
.
boundary_separatrix
.
strike_point
=
{};
end
toc
% special test matrix cocos transform
% $$$ ldim1=129;
% $$$ ldim2=257;
...
...
@@ -603,11 +607,9 @@ toc
% $$$ ids_equilibrium.time_slice{it}.profiles_2d{2}.psi_error_upper(:,:) = 12.*ones(ldim1,ldim2);
% $$$ ids_equilibrium.time_slice{it}.profiles_2d{2}.psi_error_lower(:,:) = 10.*ones(ldim1,ldim2);
% $$$ end
tic
% cocos automatic transform
if
~
isempty
(
which
(
'ids_generic_cocos_nodes_transformation_symbolic'
))
[
ids_equilibrium
,
cocoscoeff
]
=
ids_generic_cocos_nodes_transformation_symbolic
(
ids_equilibrium
,
'equilibrium'
,
gdat_params
.
cocos_in
,
...
gdat_params
.
cocos_out
,
gdat_params
.
ipsign_out
,
gdat_params
.
b0sign_out
,
gdat_params
.
ipsign_in
,
gdat_params
.
b0sign_in
,
...
gdat_params
.
error_bar
,
gdat_params
.
nverbose
);
end
toc
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment