TestDerivs

Liwei Ji <ljsma@rit.edu>

July 27 2023

Abstract

1 Introduction

2 Physical System

3 Numerical Implementation

4 Using This Thorn

4.1 Obtaining This Thorn

4.2 Basic Usage

4.3 Special Behaviour

4.4 Interaction With Other Thorns

4.5 Examples

4.6 Support and Feedback

5 History

5.1 Thorn Source Code

5.2 Thorn Documentation

5.3 Acknowledgements

References

6 Parameters




deriv_order
Scope: private  INT



Description: Order of spatial finite differencing



Range   Default: 4
2
Second order finite difference
4
Fourth order finite difference
6
Sixth order finite difference






kxx
Scope: private  REAL



Description: par for polynomial



Range   Default: 0.0
*:*






kxy
Scope: private  REAL



Description: par for polynomial



Range   Default: 0.0
*:*






kyz
Scope: private  REAL



Description: par for polynomial



Range   Default: 0.0
*:*






refined_radius
Scope: private  REAL



Description: size of the refined region at the center



Range   Default: 0.25
(0:*
any positive size



7 Interfaces

General

Implements:

testderivs

Inherits:

carpetx

Grid Variables

7.0.1 PRIVATE GROUPS




  Group Names    Variable Names    Details   




chi chi   centeringcentering={0 0 0}
  compact0
  descriptionTest grid function
  dimensions3
  distributionDEFAULT
  group typeGF
  timelevels1
 variable typeREAL




dchi   centeringcentering={0 0 0}
dxchi   compact0
dychi   description1st derivs of test grid function
dzchi   dimensions3
  distributionDEFAULT
  group typeGF
  tagscheckpoint=”no”
  timelevels1
 variable typeREAL




ddchi   centeringcentering={0 0 0}
dxxchi   compact0
dxychi   description2nd derivs of test grid function
dxzchi   dimensions3
dyychi   distributionDEFAULT
dyzchi   group typeGF
dzzchi   tagscheckpoint=”no”
  timelevels1
 variable typeREAL




Uses header:

defs.hxx

loop_device.hxx

simd.hxx

vect.hxx

derivs.hxx

8 Schedule

This section lists all the variables which are assigned storage by thorn CarpetX/TestDerivs. Storage can either last for the duration of the run (Always means that if this thorn is activated storage will be assigned, Conditional means that if this thorn is activated storage will be assigned for the duration of the run if some condition is met), or can be turned on for the duration of a schedule function.

Storage

 

Always: 
chi  
dchi  
ddchi  
   

Scheduled Functions

CCTK_POSTINITIAL

  testderivs_seterror

  set up test grid

 

 Language:c
 Type: function
 Writes: carpetx::regrid_error(interior)

CCTK_INITIAL

  testderivs_set

  set up test data

 

 Language:c
 Sync: chi
 Type: function
 Writes: chi(interior)

CCTK_POSTREGRID

  testderivs_sync

  synchronize

 

 Language:c
 Options: global
 Sync: chi
 Type: function

CCTK_POSTSTEP

  testderivs_calcderivs

  calculate derivs

 

 Language:c
 Reads: chi(everywhere)
 Sync: dchi
   ddchi
 Type: function
 Writes: dchi(interior)
   ddchi(interior)