COSMOS
Parameter File: par_fmr.d

Fixed Mesh Refinement Parameters.

This file controls the setup and triggering of fixed mesh refinement (FMR) levels.

The parameters must be listed in this specific order, as the code reads them sequentially using fscanf. Lines starting with # are ignored as comments.

  1. laymax

Maximum number of refinement levels allowed (excluding the base level 0). If laymax is 0, FMR is disabled.

Data Type:
Integer (int)
Note
Read using d. Corresponds to laymax in main.
  1. jbs[0]
    ...
    jbs[laymax]

Grid index boundary in x on the coarser grid defining the region to be covered by the next finer grid. jbs[n] defines the x-extent for refinement level n+1 on level n.

Data Type:
Integer (int)
Note
Read using d in a loop from n=0 to laymax. The refined region typically spans from -jbs[n] to +jbs[n] on the coarser grid. Corresponds to jbs array in main.
  1. kbs[0]
    ...
    kbs[laymax]

Grid index boundary in y on the coarser grid defining the region to be covered by the next finer grid. kbs[n] defines the y-extent for refinement level n+1 on level n.

Data Type:
Integer (int)
Note
Read using d in a loop from n=0 to laymax. Corresponds to kbs array in main.
  1. lbs[0]
    ...
    lbs[laymax]

Grid index boundary in z on the coarser grid defining the region to be covered by the next finer grid. lbs[n] defines the z-extent for refinement level n+1 on level n.

Data Type:
Integer (int)
Note
Read using d in a loop from n=0 to laymax. Corresponds to lbs array in main.
  1. alp_fmr[0]
    ...
    alp_fmr[laymax]

Threshold value for the lapse (alpha) at the center of the grid (index 0,0,0). If alpha on level n drops below alp_fmr[n], refinement level n+1 is created (up to laymax).

Data Type:
Double (double)
Note
Read using lf in a loop from n=0 to laymax. This acts as the trigger condition for adding new refinement levels. Corresponds to alp_fmr array in main.