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
c7d35459
Commit
c7d35459
authored
8 months ago
by
Antonia Frank
Browse files
Options
Downloads
Patches
Plain Diff
test adding rho_tor_norm to nbi sources
parent
58b8e522
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!165
Core sources tcv2ids2database
Pipeline
#205217
passed
8 months ago
Stage: test
Stage: post-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/tcv_get_ids_core_sources.m
+4
-1
4 additions, 1 deletion
matlab/TCV_IMAS/tcv_get_ids_core_sources.m
with
4 additions
and
1 deletion
matlab/TCV_IMAS/tcv_get_ids_core_sources.m
+
4
−
1
View file @
c7d35459
...
...
@@ -395,7 +395,7 @@ if strcmp(hostname,'lac8.epfl.ch')
else
unix
(
sprintf
(
'ssh $(whoami)@lac8 "ls /Lac8_D/ASTRA/ | grep
''
%i
''
&& echo File for shotnumber exists! || echo File for shotnumber does not exist! && exit"'
,
shot
));
end
rho_test
=
linspace
(
0
,
1
,
101
);
if
numel
(
active_nbi
)
>
0
for
i_nbi
=
active_nbi
% get tgrid (same for NBI1 & 2 if both active) from active_nbi(1)
...
...
@@ -422,6 +422,7 @@ if numel(active_nbi)>0
p_nbi_injected_tmp
=
interpos
(
nbi_powers_tgrid
,
powers_gdat
.
(
nbi_names
{
i_nbi
})
.
data
,
nbi_tgrid_out
);
for
ii
=
1
:
nt_nbi_out
ids_core_sources
.
source
{
last_index
+
i_nbi
}
.
profiles_1d
{
ii
}
.
time
=
nbi_tgrid_out
(
ii
);
ids_core_sources
.
source
{
last_index
+
i_nbi
}
.
profiles_1d
{
ii
}
.
rho_tor_norm
=
rho_test
;
% globals
ids_core_sources
.
source
{
last_index
+
i_nbi
}
.
global_quantities
{
ii
}
.
time
=
nbi_tgrid_out
(
ii
);
ids_core_sources
.
source
{
last_index
+
i_nbi
}
.
global_quantities
{
ii
}
.
power
=
p_nbi_injected_tmp
(
ii
);
...
...
@@ -442,6 +443,7 @@ if ~isempty(powers_gdat.dnbi)
% find times where DNBI is on to define time grid with extra time slice just
% before/after DNBI power and at start/end of shot
itime_dnbi
=
find
((
powers_gdat
.
dnbi
.
data
>
0
));
rho_test
=
linspace
(
0
,
1
,
101
);
if
~
isempty
(
itime_dnbi
)
if
dnbi_powers_tgrid
(
itime_dnbi
(
end
))
>=
ohm_tgrid
(
end
)
i_time_end
=
iround
(
dnbi_powers_tgrid
,
ohm_tgrid
(
end
));
...
...
@@ -461,6 +463,7 @@ if ~isempty(powers_gdat.dnbi)
p_dnbi_injected
=
interpos
(
dnbi_powers_tgrid
,
powers_gdat
.
dnbi
.
data
,
dnbi_tgrid_out
);
for
ii
=
1
:
nt_dnbi_out
ids_core_sources
.
source
{
last_index
+
1
}
.
profiles_1d
{
ii
}
.
time
=
dnbi_tgrid_out
(
ii
);
ids_core_sources
.
source
{
last_index
+
1
}
.
profiles_1d
{
ii
}
.
rho_tor_norm
=
rho_test
;
% globals
ids_core_sources
.
source
{
last_index
+
1
}
.
global_quantities
{
ii
}
.
time
=
dnbi_tgrid_out
(
ii
);
ids_core_sources
.
source
{
last_index
+
1
}
.
global_quantities
{
ii
}
.
power
=
p_dnbi_injected
(
ii
);
...
...
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