Skip to content

Commit 8502d7e

Browse files
committed
Change section data file format flag for controls and depreacted control labels in tests and examples
1 parent 0e01bfd commit 8502d7e

File tree

70 files changed

+235
-2021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+235
-2021
lines changed

doc/CALYPSO.pdf

172 Bytes
Binary file not shown.

doc/tex_src/controls_CALYPSO.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,8 +1275,8 @@ \subsection{\tt cross\_section\_ctl}
12751275
\verb|[file_prefix]| \\
12761276
File prefix for cross section data is defined as character \verb|[file_prefix]|.
12771277

1278-
\paragraph{\tt psf\_output\_type}
1279-
\label{href_t:psf_output_type}
1278+
\paragraph{{\tt section\_file\_format} or {\tt psf\_output\_type}}
1279+
\label{href_t:section_file_format}
12801280
\verb|[file_format]| \\
12811281
File format for cross section data is defined as character \verb|[file_format]|. The following formats are available;
12821282
\begin{description}

doc/tex_src/programs_CALYPSO.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,10 @@ \subsection{Cross section data (Parallel Surfacing module)}
10621062
\begin{itemize}
10631063
\item \hyperref[href_t:section_file_prefix]
10641064
{\tt section\_file\_prefix [section\_prefix]}
1065-
\item \hyperref[href_t:psf_output_type]
1066-
{\tt psf\_output\_type [file\_format]}
1065+
\item \hyperref[href_t:section_file_format]
1066+
{\tt section\_file\_format [file\_format]}
1067+
\item \hyperref[href_t:psf_output_type]
1068+
{\tt psf\_output\_type [file\_format]} {\color{red}(Deprecated)}
10671069
\item File or Block \hyperref[href_t:surface_define]{\tt surface\_define [File\_Name]}
10681070
\begin{itemize}
10691071
\item \hyperref[href_t:section_method]
@@ -1091,7 +1093,7 @@ \subsection{Cross section data (Parallel Surfacing module)}
10911093

10921094
\paragraph{Output data format of sectioning module}
10931095
\label{sec:PSF_data}
1094-
Sectioning data are written with VTK format and VTK data compressed by zlib. Field data also output by binary format and binary compressed by zlib. The list of data format and control flag for \verb|psf_output_type| are listed in Table \ref{table:PSF_data}. In the binary data format, position data and field data are saved independently not to write the grid data for each output step. Program \hyperref[section:section_to_VTK]{\tt section\_to\_VTK} generates VTK file from the binary section data. The output data format is defined by \verb|psf_output_type|. Because the field data is written by using Cartesian coordinate $(x,y,z)$ system, $(x,y,z)$ components in ParaView corresponds to the spherical components $(r, \theta, \phi)$ or cylindrical componennts $(s,\phi, z)$ if sectioning data is writtein the spherical or cylindrical componnents. Consequently, ParaView can not draw griph or field lines for these spherical or cylindrical vectors.
1096+
Sectioning data are written with VTK format and VTK data compressed by zlib. Field data also output by binary format and binary compressed by zlib. The list of data format and control flag for \verb|section_file_format| are listed in Table \ref{table:PSF_data}. In the binary data format, position data and field data are saved independently not to write the grid data for each output step. Program \hyperref[section:section_to_VTK]{\tt section\_to\_VTK} generates VTK file from the binary section data. The output data format is defined by \verb|section_file_format|. Because the field data is written by using Cartesian coordinate $(x,y,z)$ system, $(x,y,z)$ components in ParaView corresponds to the spherical components $(r, \theta, \phi)$ or cylindrical componennts $(s,\phi, z)$ if sectioning data is writtein the spherical or cylindrical componnents. Consequently, ParaView can not draw griph or field lines for these spherical or cylindrical vectors.
10951097
%
10961098
\begin{table}[htp]
10971099
\caption{Data format and an example of data size and output time for sectioning data}

examples/dynamo_benchmark/dynamobench_case_2/control_MHD

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ begin MHD_control
2020
debug_flag_ctl 'Off'
2121
!
2222
num_subdomain_ctl 4
23-
num_smp_ctl 2
23+
num_smp_ctl 4
2424
!
2525
restart_file_prefix 'rst_4/rst'
2626
field_file_prefix 'field/out'
27-
restart_file_fmt_ctl 'merged_gz'
27+
restart_file_fmt_ctl 'merged_bin_gz'
2828
field_file_fmt_ctl 'merged_VTK_gz'
2929
end data_files_def
3030
!
@@ -52,7 +52,7 @@ begin MHD_control
5252
!
5353
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5454
!
55-
file spherical_shell_ctl 'control_resolution'
55+
file spherical_shell_ctl 'sph_lm63r72c_ic_6/control_resolution'
5656
!
5757
begin model
5858
!!!!! physical values!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -119,8 +119,8 @@ begin MHD_control
119119
end array bc_velocity
120120
!
121121
array bc_magnetic_field
122-
bc_magnetic_field sph_to_center to_Center 0.000 end
123-
bc_magnetic_field insulator CMB 0.000 end
122+
bc_magnetic_field sph_to_center to_Center 0.000
123+
bc_magnetic_field insulator CMB 0.000
124124
end array bc_magnetic_field
125125
end boundary_condition
126126
!
@@ -344,19 +344,19 @@ begin MHD_control
344344
!
345345
begin visual_control
346346
array cross_section_ctl
347-
file cross_section_ctl control_psf_CMB
348-
file cross_section_ctl control_psf_ICB
349-
file cross_section_ctl control_psf_eq
350-
file cross_section_ctl control_psf_z0.3
351-
file cross_section_ctl control_psf_s0.55
347+
file cross_section_ctl controls/control_psf_CMB
348+
file cross_section_ctl controls/control_psf_ICB
349+
file cross_section_ctl controls/control_psf_eq
350+
file cross_section_ctl controls/control_psf_z0.3
351+
file cross_section_ctl controls/control_psf_s0.55
352352
end array cross_section_ctl
353353
!
354354
array isosurface_ctl
355-
file isosurface_ctl control_iso_temp
355+
file isosurface_ctl controls/control_iso_temp
356356
end array isosurface_ctl
357357
end visual_control
358358
!
359359
begin dynamo vizs control
360-
file zonal mean section ctl control_psf_zm
360+
file zonal mean section ctl controls/control_psf_zm
361361
end dynamo vizs control
362362
end MHD_control

examples/dynamo_benchmark/dynamobench_case_2/control_resolution

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/dynamo_benchmark/dynamobench_case_2/control_iso_temp renamed to examples/dynamo_benchmark/dynamobench_case_2/controls/control_iso_temp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
!
22
begin isosurface_ctl
3-
isosurface_file_prefix 'Isosurfaces/temp0_7'
3+
isosurface_file_prefix 'isosurfaces/temp0_7'
4+
iso_output_type vtk_gz
45
!
56
begin isosurf_define
67
isosurf_field temperature

examples/dynamo_benchmark/dynamobench_case_2/control_psf_CMB renamed to examples/dynamo_benchmark/dynamobench_case_2/controls/control_psf_CMB

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!
55
begin cross_section_ctl
66
section_file_prefix 'sections/CMB'
7+
section_file_format 'VTK_gz'
78
!
89
begin surface_define
910
section_method sphere

examples/dynamo_benchmark/dynamobench_case_2/control_psf_ICB renamed to examples/dynamo_benchmark/dynamobench_case_2/controls/control_psf_ICB

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!
55
begin cross_section_ctl
66
section_file_prefix 'sections/ICB'
7+
section_file_format 'VTK_gz'
78
!
89
begin surface_define
910
section_method sphere

examples/dynamo_benchmark/dynamobench_case_2/control_psf_eq renamed to examples/dynamo_benchmark/dynamobench_case_2/controls/control_psf_eq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
!
44
begin cross_section_ctl
55
section_file_prefix 'sections/equator'
6+
section_file_format 'VTK'
67
!
78
begin surface_define
89
section_method plane

examples/dynamo_benchmark/dynamobench_case_2/control_psf_s0.55 renamed to examples/dynamo_benchmark/dynamobench_case_2/controls/control_psf_s0.55

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!
55
begin cross_section_ctl
66
section_file_prefix 'sections/cylinder_s055'
7+
section_file_format 'PSF'
78
!
89
begin surface_define
910
section_method ellipsoid

0 commit comments

Comments
 (0)