Skip to content

Commit 930a239

Browse files
committed
Add examples to generate full sphere grid model
1 parent 9f85b62 commit 930a239

File tree

8 files changed

+112
-0
lines changed

8 files changed

+112
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
!-----------------------------------------------------------------------
2+
! Example to generate spherical harmonics index data files
3+
!-----------------------------------------------------------------------
4+
!
5+
Here is the files to generate spherical harmonics index data file
6+
for simulations in FULL SPHERE with 6 MPI processes.
7+
In this example, half of Chebyshev collocation points
8+
are used for the radial spacing for the full sphere.
9+
This example consists of the following files and directories
10+
11+
control_sph_shell: control file for index file generation
12+
control_resolution: control file for spatial resolution and domain decomposition
13+
sph_lm47r63c_full_6: Directory for spherical harmonics index table
14+
15+
Run index generation program in both directory for index tables
16+
[with_inner_core]$ mpirun -np 6 [CALYPSO_DIR]/bin/utilities/gen_sph_grids
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
begin spherical_shell_ctl
2+
begin FEM_mesh_ctl
3+
FEM_mesh_output_switch 'On'
4+
FEM_viewer_mesh_output_switch 'On'
5+
end FEM_mesh_ctl
6+
!
7+
begin num_domain_ctl
8+
num_radial_domain_ctl 2
9+
num_horizontal_domain_ctl 3
10+
end num_domain_ctl
11+
!
12+
begin num_grid_sph
13+
truncation_level_ctl 47
14+
!
15+
ngrid_meridonal_ctl 72
16+
ngrid_zonal_ctl 144
17+
!
18+
radial_grid_type_ctl half_Chebyshev
19+
num_fluid_grid_ctl 63
20+
fluid_core_size_ctl 1.0
21+
ICB_to_CMB_ratio_ctl 0.0
22+
end num_grid_sph
23+
end spherical_shell_ctl
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
begin MHD_control
2+
begin data_files_def
3+
debug_flag_ctl 'Off'
4+
num_subdomain_ctl 6
5+
sph_file_prefix 'sph_lm47r63c_full_6/in'
6+
!
7+
sph_file_fmt_ctl 'ascii'
8+
end data_files_def
9+
!
10+
file spherical_shell_ctl 'control_resolution'
11+
end MHD_control
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
!-----------------------------------------------------------------------
2+
! Example to generate spherical harmonics index data files
3+
!-----------------------------------------------------------------------
4+
!
5+
Spherical harmonics index data are stored in this directory.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
!-----------------------------------------------------------------------
2+
! Example to generate spherical harmonics index data files
3+
!-----------------------------------------------------------------------
4+
!
5+
Here is the files to generate spherical harmonics index data file
6+
for simulations in FULL SPHERE with 6 MPI processes.
7+
In this example, half of Chebyshev collocation points
8+
are used for the radial spacing for the full sphere including the external of she sphere.
9+
This example consists of the following files and directories
10+
11+
control_sph_shell: control file for index file generation
12+
control_resolution: control file for spatial resolution and domain decomposition
13+
sph_lm47r63c_full_ext_6: Directory for spherical harmonics index table
14+
15+
Run index generation program in both directory for index tables
16+
[with_inner_core]$ mpirun -np 6 [CALYPSO_DIR]/bin/utilities/gen_sph_grids
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
begin spherical_shell_ctl
2+
begin FEM_mesh_ctl
3+
FEM_mesh_output_switch 'On'
4+
FEM_viewer_mesh_output_switch 'On'
5+
end FEM_mesh_ctl
6+
!
7+
begin num_domain_ctl
8+
num_radial_domain_ctl 2
9+
num_horizontal_domain_ctl 3
10+
end num_domain_ctl
11+
!
12+
begin num_grid_sph
13+
truncation_level_ctl 47
14+
!
15+
ngrid_meridonal_ctl 72
16+
ngrid_zonal_ctl 144
17+
!
18+
radial_grid_type_ctl half_Chebyshev
19+
num_fluid_grid_ctl 63
20+
fluid_core_size_ctl 1.0
21+
ICB_to_CMB_ratio_ctl 0.0
22+
!
23+
Max_radius_ctl 1.5
24+
end num_grid_sph
25+
end spherical_shell_ctl
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
begin MHD_control
2+
begin data_files_def
3+
debug_flag_ctl 'Off'
4+
num_subdomain_ctl 6
5+
sph_file_prefix 'sph_lm47r63c_full_ext_6/in'
6+
!
7+
sph_file_fmt_ctl 'merged_gz'
8+
end data_files_def
9+
!
10+
file spherical_shell_ctl 'control_resolution'
11+
end MHD_control
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
!-----------------------------------------------------------------------
2+
! Example to generate spherical harmonics index data files
3+
!-----------------------------------------------------------------------
4+
!
5+
Spherical harmonics index data are stored in this directory.

0 commit comments

Comments
 (0)