Skip to content

Commit 3d0c275

Browse files
author
Hiroaki Matsui
committed
Update control files and README for dynamo benchmark Case 1 in examples
1 parent 0209bec commit 3d0c275

File tree

10 files changed

+136
-25
lines changed

10 files changed

+136
-25
lines changed

examples/dynamo_benchmark/dynamobench_case_1/README

Lines changed: 72 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,83 @@
66
Here is the input files for the dynamo benchmark case 1 using 4 MPI processes.
77
This example consists of the following files and directories
88

9-
control_MHD: control file for simulation
10-
control_snapshot: control file for data analysis
9+
control_MHD: Control file for simulation
10+
control_snapshot: Control file for data analysis
11+
control_resolution: Control file for spatial resolution and parallelization
1112

12-
sph_lm31r48c_4: Directory for spherical harmonics index table
13-
rst_4: Directory for restart files
14-
field: Directory for field data files
13+
control_mid_depth: Control file for sectioning at mid-depth of the shell
14+
control_CMB: Control file for sectioning at the outer boundary of spherical chell
15+
control_equator: Control file for sectioning at equatorial plane
16+
control_psf_z0.3: Control file for sectioning at z = 0.3 (= 0.56 * r_i)
17+
control_psf_s0.55: Control file for sectioning at a cylinder with s = 0.55 ( = 1.02 * r_i)
18+
control_zonal_mean: Control file for sectioning at mid-depth of the shell
19+
control_iso_temp: Control file for isosurface of temperature
1520

16-
The simulation procedure is the following
21+
sph_lm31r48c_4: Directory for spherical harmonics index table
22+
rst_4: Directory for restart files
23+
field: Directory for field data files
24+
monitor: Directory for time series data files
25+
sections: Directory for cross-section data files
26+
isosurfaces: Directory for isosurface data files
1727

18-
1: Run index generation program as
19-
[dynamobench_case_1]$ [CALYPSO_DIR]/bin/utilities/gen_sph_grids
28+
The parallelization information and initial field is built in the beginning of program. The simulation procedure is the following
2029

21-
2. Generate initial field
22-
[dynamobench_case_1]$ [CALYPSO_DIR]/bin/sph_initial_field
23-
24-
3. Run simulation program
30+
1. Run simulation program
2531
[dynamobench_case_1]$ mpirun -np 4 [CALYPSO_DIR]/bin/sph_mhd
2632

27-
4. To check the required results for dynamo benchmark, run
28-
[dynamobench_case_1]$ mpirun -np 4 [CALYPSO_DIR]/bin/sph_dynamobench
33+
2. To continue the simulation Update the time stepping parameter
34+
"i_step_init_ctl" and "i_step_finish_ctl" in "time_step_ctl" block
35+
to be the new start and end time steps, respectively.
36+
37+
And, change rst_ctl in control_MHD from
38+
rst_ctl dynamo_benchmark_1
39+
to
40+
rst_ctl start_from_rst_file
41+
And, start simulation again by procedure 1.
42+
43+
In the continuous runs, The time series data defined in "sph_monitor_ctl" block will be appended if time series data files are exist.
44+
45+
3. The following data is written:
46+
field/out.#.vtk.gz: Visualization data for whole domain with gzipped VTK format
47+
rst_4/rst.#.fst.gz: Restart data with gzipped ASCII data merged over MPI processes
48+
sections/equator.#.vtk: Visualization data for equatorial plane with gzipped VTK format
49+
sections/mid_depth.#.vtk: Visualization data for mid-depth of the fluid shell with VTK format
50+
sections/CMB.#.vtk: Visualization data for equatorial plane with gzipped VTK format
51+
sections/cylinder_s055.#.vtk: Visualization data for equatorial plane with gzipped VTK format
52+
sections/section_z03.#.vtk: Visualization data for equatorial plane with gzipped VTK format
53+
sections/CMB.#.vtk: Visualization data for equatorial plane with gzipped VTK format
54+
sections/CMB.#.vtk: Visualization data for equatorial plane with gzipped VTK format
55+
sections/CMB.#.vtk: Visualization data for equatorial plane with gzipped VTK format
56+
57+
monitor/sph_ave_volume.dat: Time series of volume average of fields.
58+
monitor/sph_pwr_volume_s.dat: Time series of mean square of fields.
59+
monitor/sph_pwr_volume_l.dat: Time series of mean square of spectr as a function of degree l
60+
monitor/sph_pwr_volume_m.dat: Time series of mean square of spectr as a function of order m
61+
monitor/sph_pwr_volume_lm.dat: Time series of mean square of spectr as a function of (l-m)
62+
monitor/sph_pwr_volume_m0.dat: Time series of mean square of axisymmetric components
63+
monitor/sph_pwr_layer_s.dat.gz: Gzipped time series of mean square at 8-th and 16-th radial layers.
64+
monitor/sph_pwr_layer_l.dat.gz: Gzipped time series of mean square of spectr at 8-th and 16-th radial layers as a function of degree l
65+
monitor/sph_pwr_layer_m.dat.gz: Gzipped time series of mean square of spectr at 8-th and 16-th radial layers as a function of order m
66+
monitor/sph_pwr_layer_lm.dat.gz: Gzipped time series of mean square of spectr at 8-th and 16-th radial layers as a function of (l-m)
67+
monitor/sph_pwr_layer_m0.dat.gz: Gzipped time series of mean square of axisymmetric components at 8-th and 16-th radial layers
68+
monitor/picked_mode_l1_m0c.dat.gz: Gzipped time series of spherical harmonic coefficients at l=1 and m = 0.
69+
monitor/picked_mode_l2_m0c.dat.gz: Gzipped time series of spherical harmonic coefficients at l=2 and m = 0.
70+
monitor/gauss_coefs.dat: Time series of Gauss coefficients
71+
monitor/dipolarity.dat.gz: Gzipped time series of dipolarities with various truncations
72+
monitor/Nusselt.dat.gz: Gzipped time series of the Nusselt number at the both boundaries.
73+
monitor/dynamobench.dat: Time series of required data for dynamo benchmark
74+
75+
4. Required data for the benchmark is written in monitor/dynamobench.dat.
76+
The following data is written in each column.
77+
t_step: Time step
78+
time: Time
79+
KE_total: Average kinetic energy in the shell
80+
ME_total: Average kinetic energy in the shell
81+
v_phi: $\phi$-component of the velocity at the requested point. (Average of the four requested points)
82+
B_theta: $\theta$-component of the magnetic field at the requested point. (Average of the four requested points)
83+
temperature: Temperature at the requested point. (Average of the four requested points)
84+
Average_drift_vr: Drift frequency obtained by the position of the requested points (Average of the four requested points)
85+
omega_vp44: Drift frequency obtained by l = |m| = 4 components of the poloidal velocity at the mid-depth.
86+
omega_vt54: Drift frequency obtained by l = 5 and |m| = 4 components of the toroidal velocity at the mid-depth.
2987

30-
Enjoy!!
3188

examples/dynamo_benchmark/dynamobench_case_1/control_psf_CMB renamed to examples/dynamo_benchmark/dynamobench_case_1/control_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+
psf_output_type VTK_gz
78
!
89
begin surface_define
910
section_method equation

examples/dynamo_benchmark/dynamobench_case_1/control_MHD

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ begin MHD_control
266266
!
267267
!!!!! control for restart data
268268
begin restart_file_ctl
269-
! rst_ctl dynamo_benchmark_1
270-
rst_ctl start_from_rst_file
269+
rst_ctl dynamo_benchmark_1
270+
! rst_ctl start_from_rst_file
271271
end restart_file_ctl
272272
!
273273
!!!!!! method for time evolution
@@ -285,10 +285,14 @@ begin MHD_control
285285
begin sph_monitor_ctl
286286
volume_average_prefix 'monitor/sph_ave_volume'
287287
volume_pwr_spectr_prefix 'monitor/sph_pwr_volume'
288-
nusselt_number_prefix 'monitor/Nusselt'
288+
volume_pwr_spectr_format 'ASCII'
289+
!
290+
nusselt_number_prefix 'monitor/Nusselt'
291+
nusselt_number_format 'gzip'
289292
!
290293
begin layered_spectrum_ctl
291294
layered_pwr_spectr_prefix 'monitor/sph_pwr_layer'
295+
layered_pwr_spectr_format 'gzip'
292296
!
293297
array spectr_layer_ctl
294298
spectr_layer_ctl 1
@@ -299,6 +303,7 @@ begin sph_monitor_ctl
299303
!
300304
begin pickup_spectr_ctl
301305
picked_sph_prefix 'monitor/picked_mode'
306+
picked_sph_format 'gzip'
302307
!
303308
array pick_layer_ctl
304309
pick_layer_ctl 8
@@ -319,18 +324,28 @@ begin sph_monitor_ctl
319324
pick_gauss_coef_degree_ctl 1
320325
end array pick_gauss_coef_degree_ctl
321326
end gauss_coefficient_ctl
327+
!
328+
begin sph_dipolarity_ctl
329+
dipolarity_file_prefix 'monitor/dipolarity'
330+
dipolarity_file_format 'gzip'
331+
332+
array dipolarity_truncation_ctl
333+
dipolarity_truncation_ctl 13
334+
end array dipolarity_truncation_ctl
335+
end sph_dipolarity_ctl
322336
!
323337
begin dynamo_benchmark_data_ctl
324338
dynamo_benchmark_file_prefix 'monitor/dynamobench'
325-
dynamo_benchmark_file_format 'gzip'
339+
dynamo_benchmark_file_format 'ASCII'
326340
nphi_mid_eq_ctl 512
327341
end dynamo_benchmark_data_ctl
328342
end sph_monitor_ctl
329343
!
330344
begin visual_control
331345
array cross_section_ctl
332-
file cross_section_ctl control_psf_CMB
333-
file cross_section_ctl control_psf_eq
346+
file cross_section_ctl control_mid_depth
347+
file cross_section_ctl control_CMB
348+
file cross_section_ctl control_equator
334349
file cross_section_ctl control_psf_z0.3
335350
file cross_section_ctl control_psf_s0.55
336351
end array cross_section_ctl
@@ -340,7 +355,7 @@ begin sph_monitor_ctl
340355
end array isosurface_ctl
341356
end visual_control
342357
!
343-
begin dynamo vizs control
344-
file zonal mean section ctl control_psf_zm
345-
end dynamo vizs control
358+
begin dynamo_vizs_control
359+
file zonal_mean_section_ctl control_zonal_mean
360+
end dynamo_vizs_control
346361
end MHD_control

examples/dynamo_benchmark/dynamobench_case_1/control_psf_eq renamed to examples/dynamo_benchmark/dynamobench_case_1/control_equator

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+
psf_output_type VTK_gz
67
!
78
begin surface_define
89
section_method equation

examples/dynamo_benchmark/dynamobench_case_1/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
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
!!!!!!!!! Control parameters for mid-depth of the spherical shell
2+
file cross_section_ctl 'control_mid_depth'
3+
!
4+
!!!!!!!!! Control parameters for euqatorial plane
5+
begin cross_section_ctl
6+
section_file_prefix 'sections/mid_depth'
7+
psf_output_type 'VTK'
8+
!
9+
begin surface_define
10+
section_method sphere
11+
!
12+
array center_position
13+
center_position x 0.0
14+
center_position y 0.0
15+
center_position z 0.0
16+
end array center_position
17+
!
18+
radius 1.0384
19+
!
20+
array section_area_ctl
21+
section_area_ctl all
22+
end array section_area_ctl
23+
end surface_define
24+
!
25+
begin output_field_define
26+
array output_field
27+
output_field temperature scalar
28+
output_field velocity sphrical_vector
29+
output_field vorticity z
30+
output_field magnetic_field sphrical_vector
31+
end array output_field
32+
end output_field_define
33+
end cross_section_ctl

examples/dynamo_benchmark/dynamobench_case_1/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+
psf_output_type psf
78
!
89
begin surface_define
910
section_method equation

examples/dynamo_benchmark/dynamobench_case_1/control_psf_z0.3

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/section_z03'
7+
psf_output_type psf_gz
78
!
89
begin surface_define
910
section_method equation

examples/dynamo_benchmark/dynamobench_case_1/control_psf_zm renamed to examples/dynamo_benchmark/dynamobench_case_1/control_zonal_mean

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/zonal_mean'
6+
psf_output_type VTK_gz
67
!
78
begin surface_define
89
section_method plane

0 commit comments

Comments
 (0)