| { |
| "thorn_name": "CactusExamples/SampleBoundary", |
| "url": "https://bitbucket.org/cactuscode/cactusexamples.git", |
| "configuration": "", |
| "interface": "# Interface definition for thorn SampleBoundary\n# $Header$\n\nimplements: LinExtrapBnd\n\nCCTK_INT FUNCTION Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN CCTK_FPOINTER function_pointer(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN num_vars, \\\n CCTK_INT ARRAY IN var_indices, \\\n CCTK_INT ARRAY IN faces, \\\n CCTK_INT ARRAY IN boundary_widths, \\\n CCTK_INT ARRAY IN table_handles),\\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_RegisterPhysicalBC\n\n\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n", |
| "param": "# Parameter definitions for thorn SampleBoundary\n# $Header$\n\n", |
| "schedule": "# Schedule definitions for thorn SampleBoundary\n# $Header$\n\nschedule SampleBoundary_RegisterBCs at CCTK_BASEGRID\n{\n lang: C\n} \"Register boundary conditions that this thorn provides\"\n\n", |
| "src": { |
| "make.code.defn": "# Main make.code.defn file for thorn SampleBoundary\n# $Header$\n\n# Source files in this directory\nSRCS = Register.c LinearExtrapBnd.c LinearExtrapBnd.F\n\n# Subdirectories containing source files\nSUBDIRS = \n", |
| "LinearExtrapBnd.F": "c This subroutine linearly extrapolates one Cactus variable\nc on one boundary of the Cactus grid box.\nC $Header$\n\n#include \"cctk.h\"\n\n\n subroutine Linear_extrap_one_bndry(doBC, lsh, var)\n\n implicit none\n\n integer doBC(6)\n integer lsh(3)\n CCTK_REAL var(lsh(1),lsh(2),lsh(3))\n\n integer nx,ny,nz\n\nC Grid parameters.\n\n nx = lsh(1)\n ny = lsh(2)\n nz = lsh(3)\n\nC Linear extrapolation from the interiors to the boundaries.\nC Does not support octant or quadrant.\n\nC 6 faces.\n\n if (doBC(1).eq.1) then \n var(1,:,:) = 2.d0 * var(2,:,:) - var(3,:,:)\n endif\n if (doBC(3).eq.1) then \n var(:,1,:) = 2.d0 * var(:,2,:) - var(:,3,:)\n endif\n if (doBC(5).eq.1) then \n var(:,:,1) = 2.d0 * var(:,:,2) - var(:,:,3)\n endif\n if (doBC(2).eq.1) then \n var(nx,:,:) = 2.d0 * var(nx-1,:,:) - var(nx-2,:,:)\n endif\n if (doBC(4).eq.1) then \n var(:,ny,:) = 2.d0 * var(:,ny-1,:) - var(:,ny-2,:)\n endif\n if (doBC(6).eq.1) then \n var(:,:,nz) = 2.d0 * var(:,:,nz-1) - var(:,:,nz-2)\n endif\n\nC 12 edges.\nC 4 round face x=min.\n if ( doBC(1).eq.1\n $ .and. doBC(3).eq.1) then \n var(1,1,:) = 2.d0 * var(2,2,:) - var(3,3,:)\n end if\n\n if ( doBC(1).eq.1\n $ .and. doBC(4).eq.1) then \n var(1,ny,:) = 2.d0 * var(2,ny-1,:) - var(2,ny-2,:)\n end if\n\n if ( doBC(1).eq.1\n $ .and. doBC(5).eq.1) then \n var(1,:,1) = 2.d0 * var(2,:,2) - var(3,:,3)\n end if\n\n if ( doBC(1).eq.1\n $ .and. doBC(6).eq.1) then \n var(1,:,nz) = 2.d0 * var(2,:,nz-1) - var(3,:,nz-2)\n end if\n\nC 4 around face x=max.\n if ( doBC(2).eq.1\n $ .and. doBC(3).eq.1) then \n var(nx,1,:) = 2.d0 * var(nx-1,2,:) - var(nx-2,3,:)\n end if\n\n if ( doBC(2).eq.1\n $ .and. doBC(4).eq.1) then \n var(nx,ny,:) = 2.d0 * var(nx-1,ny-1,:) - var(nx-2,ny-2,:)\n end if\n\n if ( doBC(2).eq.1\n $ .and. doBC(5).eq.1) then \n var(nx,:,1) = 2.d0 * var(nx-1,:,2) - var(nx-2,:,3)\n end if\n\n if ( doBC(2).eq.1\n $ .and. doBC(6).eq.1) then \n var(nx,:,nz) = 2.d0 * var(nx-1,:,nz-1) - var(nx-2,:,nz-2)\n end if\n\nC Remaining 2 in y=min.\n if ( doBC(3).eq.1 .and. ny.ge.4\n $ .and. doBC(5).eq.1) then\n var(:,1,1) = 2.d0 * var(:,2,2) - var(:,3,3)\n end if\n\n if ( doBC(3).eq.1 .and. ny.ge.4\n $ .and. doBC(6).eq.1) then \n var(:,1,nz) = 2.d0 * var(:,2,nz-1) - var(:,2,nz-2)\n end if\n\nC Remaining 2 in y=ymax. \n if ( doBC(4).eq.1 .and. ny.ge.4\n $ .and. doBC(5).eq.1) then\n var(:,ny,1) = 2.d0 * var(:,ny-1,2) - var(:,ny-2,3) \n end if\n\n if ( doBC(4).eq.1 .and. ny.ge.4\n $ .and. doBC(6).eq.1) then \n var(:,ny,nz) = 2.d0 * var(:,ny-1,nz-1) - var(:,ny-2,nz-2)\n end if\n\nC 8 corners.\n\n if (doBC(1).eq.1 .and. doBC(3).eq.1 .and. doBC(5).eq.1) then\n var(1,1,1) = 2.d0*var(2,2,2) - var(3,3,3)\n end if\n if (doBC(1).eq.1 .and. doBC(3).eq.1 .and. doBC(6).eq.1) then\n var(1,1,nz) = 2.d0*var(2,2,nz-1) - var(3,3,nz-2)\n end if\n if (doBC(1).eq.1 .and. doBC(4).eq.1 .and. doBC(5).eq.1) then\n var(1,ny,1) = 2.d0*var(2,ny-1,2) - var(3,ny-2,3)\n end if\n if (doBC(1).eq.1 .and. doBC(4).eq.1 .and. doBC(6).eq.1) then\n var(1,ny,nz) = 2.d0*var(2,ny-1,nz-1) - var(3,ny-2,nz-2)\n end if\n if (doBC(2).eq.1 .and. doBC(3).eq.1 .and. doBC(5).eq.1) then\n var(nx,1,1) = 2.d0*var(nx-1,2,2) - var(nx-2,3,3)\n end if\n if (doBC(2).eq.1 .and. doBC(3).eq.1 .and. doBC(6).eq.1) then\n var(nx,1,nz) = 2.d0*var(nx-1,2,nz-1) - var(nx-2,3,nz-2)\n end if\n if (doBC(2).eq.1 .and. doBC(4).eq.1 .and. doBC(5).eq.1) then\n var(nx,ny,1) = 2.d0*var(nx-1,ny-1,2) - var(nx-2,ny-2,3)\n end if\n if (doBC(2).eq.1 .and. doBC(4).eq.1 .and. doBC(6).eq.1) then\n var(nx,ny,nz) = 2.d0*var(nx-1,ny-1,nz-1) - var(nx-2,ny-2,nz-2)\n end if\n \n return\n end\n", |
| "Register.c": " /*@@\n @file Register.c\n @date 6 May 2003\n @author David Rideout\n @desc \n Register implemented boundary conditions.\n @enddesc \n @version $Header$\n @@*/\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"SampleBnd.h\"\n\nstatic const char *rcsid = \"$Header$\";\n\nCCTK_FILEVERSION(CactusExamples_SampleBoundary_Register_c);\n\n/********************************************************************\n ********************* Local Data Types ***********************\n ********************************************************************/\n\n/********************************************************************\n ********************* Local Routine Prototypes *********************\n ********************************************************************/\n\n/********************************************************************\n ***************** Aliased Routine Prototypes ***********************\n ********************************************************************/\n\n/********************************************************************\n ***************** Scheduled Routine Prototypes *********************\n ********************************************************************/\n\nvoid SampleBoundary_RegisterBCs(CCTK_ARGUMENTS);\n\n/********************************************************************\n ********************* Other Routine Prototypes *********************\n ********************************************************************/\n\n/********************************************************************\n ********************* Local Data *****************************\n ********************************************************************/\n\n/********************************************************************\n ********************* Aliased Routines ***********************\n ********************************************************************/\n\n/********************************************************************\n ********************* Scheduled Routines *********************\n ********************************************************************/\n\n /*@@\n @routine SampleBoundary_RegisterBCs\n @date 6 May 2003\n @author David Rideout\n @desc \n Register all boundary conditions implemented by this thorn.\n @enddesc \n @calls \n @history \n @endhistory\n @var CCTK_ARGUMENTS\n @vdesc Cactus argument list\n @vtype CCTK_*\n @vio in\n @endvar\n @returntype void\n@@*/\n\nvoid SampleBoundary_RegisterBCs(CCTK_ARGUMENTS)\n{\n int err; \n \n err = Boundary_RegisterPhysicalBC((CCTK_POINTER) cctkGH, \n (phys_bc_fn_ptr) &BndLinExtrap,\n \"LinExtrap\");\n if (err)\n {\n CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Error %d when registering routine to handle \\\"LinExtrap\\\" \"\n \"boundary condition\", err);\n }\n}\n\n/********************************************************************\n ********************* Local Routines *************************\n ********************************************************************/\n", |
| "SampleBnd.h": " /*@@\n @file SampleBnd.h\n @date 6 May 2003\n @author David Rideout\n @desc\n Prototypes for boundary routines\n @enddesc\n @@*/\n\n\n#ifndef _SAMPLEBND_H_\n#define _SAMPLEBND_H_\n\n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\n/* data type for pointer to function which implements a physical boundary \n condition: */\ntypedef CCTK_INT (*const phys_bc_fn_ptr)(const CCTK_POINTER_TO_CONST, const CCTK_INT, \n const CCTK_INT *, const CCTK_INT *, \n const CCTK_INT *, const CCTK_INT *);\n\n/* prototype for routine registed as providing 'LinExtrap' boundary condition */\nint BndLinExtrap (const CCTK_POINTER_TO_CONST GH, const CCTK_INT num_vars, \n const CCTK_INT *var_indices, const CCTK_INT *faces, \n const CCTK_INT *widths, const CCTK_INT *table_handles);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* _SAMPLEBND_H_ */\n", |
| "LinearExtrapBnd.c": " /*@@\n @file LinearExtrapBnd.c\n @date 24 Jan 2003\n @author David Rideout\n @desc\n Function which is registered as handling Carsten Gundlach's \n \"linear_extrap_one_bndry\" boundary condition\n @enddesc\n @history\n @hdate \n @hauthor \n @hdesc \n @endhistory\n @version $Id$\n @@*/\n\n#include \"cctk.h\"\n\n#include \"util_Table.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusExamples_SampleBoundary_LinearExtrapBnd_c);\n\n/* #define DEBUG */\n\n/********************************************************************\n ********************* Local Data Types ***********************\n ********************************************************************/\n\n/********************************************************************\n ********************* External Routine Prototypes ******************\n ********************************************************************/\n\nvoid CCTK_FCALL CCTK_FNAME(Linear_extrap_one_bndry)(int *doBC, const int *lsh, \n CCTK_REAL *var_ptr);\n\nint BndLinExtrap (const cGH *GH, int num_vars, int *vars, int *faces, \n int *widths, int *tables);\n\n/********************************************************************\n ******************** Scheduled Routines ***********************\n ********************************************************************/\n\n\n/********************************************************************\n ******************** External Routines ************************\n ********************************************************************/\n\n/*@@\n @routine BndLinExtrap\n @date 24 Jan 2003\n @author David Rideout\n @desc\n Apply linear extrapolation boundary condition to a\n group of grid functions given by their indices.\n This routine is registered to handle the linear\n extrapolation boundary condition.\n Can only handle 3D grid functions.\n\n All symmetries are ignored for now -- the symmetry bcs must \n overwrite the output of this bc where necessary\n @enddesc\n\n @var GH\n @vdesc Pointer to CCTK grid hierarchy\n @vtype const cGH *\n @vio in\n @endvar\n @var num_vars\n @vdesc number of variables passed in through vars[]\n @vtype int\n @vio in\n @endvar\n @var var_indices\n @vdesc array of variable indicies to which to apply this boundary \n condition\n @vtype int *\n @vio in\n @endvar\n @var faces\n @vdesc array of set of faces to which to apply the bc\n @vtype int\n @vio in\n @endvar\n @var widths\n @vdesc array of boundary widths for each variable\n @vtype int\n @vio in\n @endvar\n @var table_handles\n @vdesc array of table handles which hold extra arguments\n @vtype int\n @vio in\n @endvar\n\n @calls CCTK_GroupIndexFromVarI\n CCTK_GroupDimI\n CCTK_VarTypeI\n\n Linear_extrap_one_bndry\n @history\n @hdate \n @hauthor \n @hdesc \n @endhistory\n\n @returntype int\n @returndesc\n each bit of return value indicates a possible error code, as follows:\n 0 for success\n -1 invalid faces specification\n -2 unsupported staggering\n -4 boundary width != 1\n -8 potentially valid table handle\n -16 dimension is not supported\n -32 possibly called with a grid scalar\n @endreturndesc\n@@*/\n\nint BndLinExtrap (const cGH *GH, int num_vars, int *vars, int *faces, \n int *widths, int *tables)\n{\n int i, j, gi, gtype, dim, retval, err;\n int doBC[6];\n const int *lsh, *bbox;\n CCTK_INT symtable;\n CCTK_INT symbnd[6];\n CCTK_INT is_physical[6];\n CCTK_REAL *var_ptr;\n cGroupDynamicData group_data;\n\n retval = 0;\n\n#ifdef DEBUG\n printf(\"calling BndLinExtrap at iter %d\\n\", GH->cctk_iteration);\n#endif\n\n /* loop through variables, one at a time (since this is all that \n Linear_extrap_one_bndry can handle) */\n for (i=0; i<num_vars; ++i) {\n\n /* Check to see if faces specification is valid */\n if (faces[i] != CCTK_ALL_FACES)\n {\n CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Faces specification %d for LinExtrap boundary conditions on \"\n \"%s is not implemented yet. \"\n \"Not applying bc.\", faces[i],\n CCTK_VarName(vars[i]));\n retval |= 1;\n }\n\n /* Check to see if the boundary width might be something other than one */\n if (widths[i] != 1)\n {\n CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"LinExtrapBnd does not handle boundary widths other than one.\"\n \" Assuming boundary width of one on all faces.\");\n retval |= 4;\n }\n\n /* Ignore table handles */\n if (tables[i] >= 0) \n {\n CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Possibly valid table handle. LinExtrapBnd ignores \"\n \"information stored in tables.\");\n retval |= 8;\n }\n\n /* Gather some important information about this grid variable */\n gi = CCTK_GroupIndexFromVarI(vars[i]);\n gtype = CCTK_GroupTypeI(gi);\n if (gtype==CCTK_GF)\n {\n dim = GH->cctk_dim;\n bbox = GH->cctk_bbox;\n lsh = GH->cctk_lsh;\n }\n else\n {\n err = CCTK_GroupDynamicData(GH, gi, &group_data);\n if (err)\n {\n CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Error getting group information for group %s. \"\n \"Perhaps it is a grid scalar?\", CCTK_GroupName(gi));\n retval |= 32;\n }\n dim = group_data.dim;\n bbox = group_data.bbox;\n lsh = group_data.lsh;\n }\n var_ptr = GH->data[vars[i]][0];\n#ifdef DEBUG\n printf(\"dim=%d bbox[0]=%d lsh[1]=%d\\n\", dim, bbox[0], lsh[1]);\n printf(\"var_ptr=%p\\n\", var_ptr);\n#endif\n\n /* Check dimension */\n if (dim != 3)\n {\n CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Variable dimension of %d not supported. \"\n\t\t \"Not applying bc.\", dim);\n retval |= 16;\n }\n\n /* Decide on which faces the bc should be applied */\n for (j=0; j<2*dim; ++j)\n {\n doBC[j] = lsh[j/2] > widths[i]+2 && bbox[j];\n }\n\n /* see if we have a physical boundary */\n symtable = SymmetryTableHandleForGrid (GH);\n if (symtable < 0) CCTK_WARN (0, \"internal error\");\n err = Util_TableGetIntArray (symtable, 2 * dim, symbnd, \"symmetry_handle\");\n if (err != 2 * dim) CCTK_WARN (0, \"internal error\");\n for (j = 0; j < 2 * dim; j++)\n {\n is_physical[j] = symbnd[j] < 0;\n }\n\n /* Only do bc on faces without a symmetry bc */\n for (j=0; j<2*dim; ++j)\n {\n doBC[j] &= is_physical[i];\n }\n\n /* Apply the boundary condition */\n if( !( retval & ( 1 | 16 ) ) ) /* unless particularly bad errors */\n CCTK_FNAME(Linear_extrap_one_bndry)(doBC, lsh, var_ptr);\n }\n\n return -retval;\n}\n\n/********************************************************************\n ******************** Internal Routines ************************\n ********************************************************************/\n\n/********************************************************************\n ********************* Local Routines *************************\n ********************************************************************/\n" |
| }, |
| "test": { |
| "wavetoyc.par": "# wavetoyc.par - wavetoy evolution\n# $Header$\n#\n# /*@@\n# @file wavetoyc.par\n# @date 6 May 2003\n# @author David Rideout\n# @desc\n# Test uses wavetoyC with linear extrapolation boundary conditions\n# @enddesc\n# @@*/ \n\n# Note that wavetoyextra is in the BetaThorns arrangement\nActiveThorns = \"wavetoyextra idscalarwavec time boundary wavetoyc pugh pughreduce pughslab cartgrid3d CoordBase SymBase ioutil ioascii iobasic SampleBoundary localreduce\"\n \ntime::dtfac = 0.5\n\nidscalarwave::initial_data = \"gaussian\"\nidscalarwave::sigma = 2.8 \nidscalarwave::radius = 0\n\ngrid::type = \"BySpacing\"\ngrid::domain = \"full\"\ngrid::dxyz = 0.3\n\ndriver::global_nx = 15\ndriver::global_ny = 15\ndriver::global_nz = 15\n\ncactus::cctk_itlast = 10\n\nwavetoy::bound = \"custom\"\nwavetoyextra::custom_bound = \"LinExtrap\"\n\nIO::out_dir = \"wavetoyc\"\nIO::out_fileinfo = \"none\"\nIO::parfile_write = \"no\"\n\nIOBasic::outScalar_every = 2\nIOBasic::outScalar_vars = \"wavetoy::phi\"\nIOBasic::outInfo_every = 1\nIOBasic::outInfo_vars = \"wavetoy::phi\"\n \nIOASCII::out1D_every = 1\nIOASCII::out1D_z = \"no\"\nIOASCII::out1D_y = \"no\"\nIOASCII::out1D_vars = \"wavetoy::phi \"\n", |
| "wavetoyc/phi_3D_diagonal.xg": "\n\n\"Time = 0.0000000000000\n-3.3774990747593\t\t0.2333914329357\n-2.8578838324886\t\t0.3528285764282\n-2.3382685902180\t\t0.4978854721135\n-1.8186533479473\t\t0.6558160112715\n-1.2990381056767\t\t0.8063460010113\n-0.7794228634060\t\t0.9254388283880\n-0.2598076211353\t\t0.9914272633971\n0.2598076211353\t\t0.9914272633971\n0.7794228634060\t\t0.9254388283880\n1.2990381056767\t\t0.8063460010113\n1.8186533479473\t\t0.6558160112715\n2.3382685902180\t\t0.4978854721135\n2.8578838324886\t\t0.3528285764282\n3.3774990747593\t\t0.2333914329357\n3.8971143170300\t\t0.1441096050934\n\n\n\"Time = 0.1500000000000\n-3.3774990747593\t\t0.2081900974721\n-2.8578838324886\t\t0.3518934357381\n-2.3382685902180\t\t0.4955967740041\n-1.8186533479473\t\t0.6517811446610\n-1.2990381056767\t\t0.8004449681120\n-0.7794228634060\t\t0.9179473887918\n-0.2598076211353\t\t0.9830167161451\n0.2598076211353\t\t0.9830167161451\n0.7794228634060\t\t0.9179473887918\n1.2990381056767\t\t0.8004449681120\n1.8186533479473\t\t0.6517811446610\n2.3382685902180\t\t0.4955967740041\n2.8578838324886\t\t0.3518934357381\n3.3774990747593\t\t0.2333186440290\n3.8971143170300\t\t0.1147438523199\n\n\n\"Time = 0.3000000000000\n-3.3774990747593\t\t0.2131639563090\n-2.8578838324886\t\t0.3509582950480\n-2.3382685902180\t\t0.4887526337870\n-1.8186533479473\t\t0.6397373447814\n-1.2990381056767\t\t0.7828508175812\n-0.7794228634060\t\t0.8956268856319\n-0.2598076211353\t\t0.9579661112536\n0.2598076211353\t\t0.9579661112536\n0.7794228634060\t\t0.8956268856319\n1.2990381056767\t\t0.7828508175812\n1.8186533479473\t\t0.6397373447814\n2.3382685902180\t\t0.4887526337870\n2.8578838324886\t\t0.3490866361163\n3.3774990747593\t\t0.2332458551223\n3.8971143170300\t\t0.1174050741283\n\n\n\"Time = 0.4500000000000\n-3.3774990747593\t\t0.2220307535426\n-2.8578838324886\t\t0.3500231543579\n-2.3382685902180\t\t0.4780155551732\n-1.8186533479473\t\t0.6199162572477\n-1.2990381056767\t\t0.7539861683103\n-0.7794228634060\t\t0.8590758427497\n-0.2598076211353\t\t0.9169800195261\n0.2598076211353\t\t0.9169800195261\n0.7794228634060\t\t0.8590758427497\n1.2990381056767\t\t0.7539861683103\n1.8186533479473\t\t0.6199162572477\n2.3382685902180\t\t0.4774276367923\n2.8578838324886\t\t0.3444364169039\n3.3774990747593\t\t0.2331730662156\n3.8971143170300\t\t0.1219097155273\n\n\n\"Time = 0.6000000000000\n-3.3774990747593\t\t0.2337863173906\n-2.8578838324886\t\t0.3490880136678\n-2.3382685902180\t\t0.4643897099451\n-1.8186533479473\t\t0.5928742713405\n-1.2990381056767\t\t0.7145402045887\n-0.7794228634060\t\t0.8092675348254\n-0.2598076211353\t\t0.8612027364528\n0.2598076211353\t\t0.8612027364528\n0.7794228634060\t\t0.8092675348254\n1.2990381056767\t\t0.7145402045887\n1.8186533479473\t\t0.5926978393573\n2.3382685902180\t\t0.4617624310493\n2.8578838324886\t\t0.3380041141855\n3.3774990747593\t\t0.2331002773089\n3.8971143170300\t\t0.1281964404323\n\n\n\"Time = 0.7500000000000\n-3.3774990747593\t\t0.2474914191211\n-2.8578838324886\t\t0.3481528729778\n-2.3382685902180\t\t0.4488143268344\n-1.8186533479473\t\t0.5596563480423\n-1.2990381056767\t\t0.6654966026896\n-0.7794228634060\t\t0.7475139016423\n-0.2598076211353\t\t0.7921737555518\n0.2598076211353\t\t0.7921737555518\n0.7794228634060\t\t0.7475139016423\n1.2990381056767\t\t0.6654460193458\n1.8186533479473\t\t0.5586059845944\n2.3382685902180\t\t0.4419861131544\n2.8578838324886\t\t0.3298753219481\n3.3774990747593\t\t0.2330274884022\n3.8971143170300\t\t0.1361796548564\n\n\n\"Time = 0.9000000000000\n-3.3774990747593\t\t0.2625470279186\n-2.8578838324886\t\t0.3472177322877\n-2.3382685902180\t\t0.4318884366568\n-1.8186533479473\t\t0.5217522055525\n-1.2990381056767\t\t0.6082277678437\n-0.7794228634060\t\t0.6754312891182\n-0.2598076211353\t\t0.7117685517780\n0.2598076211353\t\t0.7117685517780\n0.7794228634060\t\t0.6754174340813\n1.2990381056767\t\t0.6078515968798\n1.8186533479473\t\t0.5183097301634\n2.3382685902180\t\t0.4184298232501\n2.8578838324886\t\t0.3201542292253\n3.3774990747593\t\t0.2329546994956\n3.8971143170300\t\t0.1457551697659\n\n\n\"Time = 1.0500000000000\n-3.3774990747593\t\t0.2787064127313\n-2.8578838324886\t\t0.3462825915976\n-2.3382685902180\t\t0.4138587704639\n-1.8186533479473\t\t0.4808044232440\n-1.2990381056767\t\t0.5445864152063\n-0.7794228634060\t\t0.5949372568726\n-0.2598076211353\t\t0.6221312158755\n0.2598076211353\t\t0.6221275902932\n0.7794228634060\t\t0.5948136669937\n1.2990381056767\t\t0.5430889143890\n1.8186533479473\t\t0.4726275501151\n2.3382685902180\t\t0.3915234435740\n2.8578838324886\t\t0.3089669716904\n3.3774990747593\t\t0.2328819105889\n3.8971143170300\t\t0.1567968494874\n\n\n\"Time = 1.2000000000000\n-3.3774990747593\t\t0.2958772604437\n-2.8578838324886\t\t0.3453474509075\n-2.3382685902180\t\t0.3948176413714\n-1.8186533479473\t\t0.4382346013538\n-1.2990381056767\t\t0.4768626658519\n-0.7794228634060\t\t0.5082889401244\n-0.2598076211353\t\t0.5256148242419\n0.2598076211353\t\t0.5255780043667\n0.7794228634060\t\t0.5077083985361\n1.2990381056767\t\t0.4726453417303\n1.8186533479473\t\t0.4225251637432\n2.3382685902180\t\t0.3617794381785\n2.8578838324886\t\t0.2964720768200\n3.3774990747593\t\t0.2328091216822\n3.8971143170300\t\t0.1691461665444\n\n\n\"Time = 1.3500000000000\n-3.3774990747593\t\t0.3138899067695\n-2.8578838324886\t\t0.3444123102174\n-2.3382685902180\t\t0.3749347136654\n-1.8186533479473\t\t0.3950309311109\n-1.2990381056767\t\t0.4075298277791\n-0.7794228634060\t\t0.4181169740384\n-0.2598076211353\t\t0.4247504640106\n0.2598076211353\t\t0.4245566877504\n0.7794228634060\t\t0.4162153162651\n1.2990381056767\t\t0.3981372229608\n1.8186533479473\t\t0.3690972121116\n2.3382685902180\t\t0.3297753578151\n2.8578838324886\t\t0.2828700692331\n3.3774990747593\t\t0.2327363327755\n3.8971143170300\t\t0.1826025963180\n\n\n\"Time = 1.5000000000000\n-3.3774990747593\t\t0.3323914633580\n-2.8578838324886\t\t0.3434771695274\n-2.3382685902180\t\t0.3545628756967\n-1.8186533479473\t\t0.3518224940152\n-1.2990381056767\t\t0.3388561145445\n-0.7794228634060\t\t0.3273601785689\n-0.2598076211353\t\t0.3222502749204\n0.2598076211353\t\t0.3215500888626\n0.7794228634060\t\t0.3225003946161\n1.2990381056767\t\t0.3212797856467\n1.8186533479473\t\t0.3135314450381\n2.3382685902180\t\t0.2961436290299\n2.8578838324886\t\t0.2684045374036\n3.3774990747593\t\t0.2326635438688\n3.8971143170300\t\t0.1969225503341\n", |
| "wavetoyc/phi_norm2.xg": "\"phi v time\n0.0000000000000\t0.5788320296223\n0.3000000000000\t0.5660032178928\n0.6000000000000\t0.5284445758631\n0.9000000000000\t0.4708343434086\n1.2000000000000\t0.4000545716101\n1.5000000000000\t0.3250180870928\n", |
| "wavetoyc/phi_maximum.xg": "\"phi v time\n0.0000000000000\t0.9914272633971\n0.3000000000000\t0.9579661112536\n0.6000000000000\t0.8612027364528\n0.9000000000000\t0.7117685517780\n1.2000000000000\t0.5256148242419\n1.5000000000000\t0.3795997762551\n", |
| "wavetoyc/phi_x_[7][7].xg": "\n\n\"Time = 0.0000000000000\n-1.9500000000000\t\t0.6121655349981\n-1.6500000000000\t\t0.7025789856683\n-1.3500000000000\t\t0.7880438601280\n-1.0500000000000\t\t0.8638425194741\n-0.7500000000000\t\t0.9254388283880\n-0.4500000000000\t\t0.9689242170281\n-0.1500000000000\t\t0.9914272633971\n0.1500000000000\t\t0.9914272633971\n0.4500000000000\t\t0.9689242170281\n0.7500000000000\t\t0.9254388283880\n1.0500000000000\t\t0.8638425194741\n1.3500000000000\t\t0.7880438601280\n1.6500000000000\t\t0.7025789856683\n1.9500000000000\t\t0.6121655349981\n2.2500000000000\t\t0.5212805821834\n\n\n\"Time = 0.1500000000000\n-1.9500000000000\t\t0.6135914701669\n-1.6500000000000\t\t0.6979857441081\n-1.3500000000000\t\t0.7823800180493\n-1.0500000000000\t\t0.8571856458537\n-0.7500000000000\t\t0.9179475159149\n-0.4500000000000\t\t0.9608299726257\n-0.1500000000000\t\t0.9830167161451\n0.1500000000000\t\t0.9830167161451\n0.4500000000000\t\t0.9608299726257\n0.7500000000000\t\t0.9179475159149\n1.0500000000000\t\t0.8571856458537\n1.3500000000000\t\t0.7823800180493\n1.6500000000000\t\t0.6979857441081\n1.9500000000000\t\t0.6086413417802\n2.2500000000000\t\t0.5192969394522\n\n\n\"Time = 0.3000000000000\n-1.9500000000000\t\t0.6055414469456\n-1.6500000000000\t\t0.6855155965737\n-1.3500000000000\t\t0.7654897462017\n-1.0500000000000\t\t0.8373444108402\n-0.7500000000000\t\t0.8956272553814\n-0.4500000000000\t\t0.9367187954723\n-0.1500000000000\t\t0.9579661112536\n0.1500000000000\t\t0.9579661112536\n0.4500000000000\t\t0.9367187954723\n0.7500000000000\t\t0.8956272553814\n1.0500000000000\t\t0.8373444108402\n1.3500000000000\t\t0.7654897462017\n1.6500000000000\t\t0.6842780644770\n1.9500000000000\t\t0.5982484709263\n2.2500000000000\t\t0.5122188773756\n\n\n\"Time = 0.4500000000000\n-1.9500000000000\t\t0.5928040805217\n-1.6500000000000\t\t0.6654418605129\n-1.3500000000000\t\t0.7380796405041\n-1.0500000000000\t\t0.8048236885429\n-0.7500000000000\t\t0.8590765445755\n-0.4500000000000\t\t0.8972584310651\n-0.1500000000000\t\t0.9169800195261\n0.1500000000000\t\t0.9169800195261\n0.4500000000000\t\t0.8972584310651\n0.7500000000000\t\t0.8590765445755\n1.0500000000000\t\t0.8048236885429\n1.3500000000000\t\t0.7377702574800\n1.6500000000000\t\t0.6617762848825\n1.9500000000000\t\t0.5812197555473\n2.2500000000000\t\t0.5006632262121\n\n\n\"Time = 0.6000000000000\n-1.9500000000000\t\t0.5751559782686\n-1.6500000000000\t\t0.6382055549161\n-1.3500000000000\t\t0.7012551315637\n-1.0500000000000\t\t0.7605229398874\n-0.7500000000000\t\t0.8092686203648\n-0.4500000000000\t\t0.8435338060159\n-0.1500000000000\t\t0.8612027364528\n0.1500000000000\t\t0.8612027364528\n0.4500000000000\t\t0.8435338060159\n0.7500000000000\t\t0.8092686203648\n1.0500000000000\t\t0.7604455941313\n1.3500000000000\t\t0.6998781547497\n1.6500000000000\t\t0.6310122753539\n1.9500000000000\t\t0.5579343907514\n2.2500000000000\t\t0.4848565061489\n\n\n\"Time = 0.7500000000000\n-1.9500000000000\t\t0.5525232015744\n-1.6500000000000\t\t0.6044008000959\n-1.3500000000000\t\t0.6562783986173\n-1.0500000000000\t\t0.7057821595681\n-0.7500000000000\t\t0.7475347133488\n-0.4500000000000\t\t0.7770054583880\n-0.1500000000000\t\t0.7921737555518\n0.1500000000000\t\t0.7921737555518\n0.4500000000000\t\t0.7770054583880\n0.7500000000000\t\t0.7475153769097\n1.0500000000000\t\t0.7053227696380\n1.3500000000000\t\t0.6527200638638\n1.6500000000000\t\t0.5927061586322\n1.9500000000000\t\t0.5289053229326\n2.2500000000000\t\t0.4651044872331\n\n\n\"Time = 0.9000000000000\n-1.9500000000000\t\t0.5251198087521\n-1.6500000000000\t\t0.5647553437433\n-1.3500000000000\t\t0.6043908787345\n-1.0500000000000\t\t0.6423268471807\n-0.7500000000000\t\t0.6755634192336\n-0.4500000000000\t\t0.6994590422732\n-0.1500000000000\t\t0.7117685517780\n0.1500000000000\t\t0.7117685517780\n0.4500000000000\t\t0.6994542081634\n0.7500000000000\t\t0.6754197853194\n1.0500000000000\t\t0.6408258309558\n1.3500000000000\t\t0.5974311709585\n1.6500000000000\t\t0.5477393580014\n1.9500000000000\t\t0.4947623808233\n2.2500000000000\t\t0.4417854036453\n\n\n\"Time = 1.0500000000000\n-1.9500000000000\t\t0.4934407201989\n-1.6500000000000\t\t0.5201070611660\n-1.3500000000000\t\t0.5467734021331\n-1.0500000000000\t\t0.5720967178336\n-0.7500000000000\t\t0.5953912694868\n-0.4500000000000\t\t0.6129579875966\n-0.1500000000000\t\t0.6221287988206\n0.1500000000000\t\t0.6221275902932\n0.4500000000000\t\t0.6129148825101\n0.7500000000000\t\t0.5948203000912\n1.0500000000000\t\t0.5685453576612\n1.3500000000000\t\t0.5353386174995\n1.6500000000000\t\t0.4971288731543\n1.9500000000000\t\t0.4562318840172\n2.2500000000000\t\t0.4153348948801\n\n\n\"Time = 1.2000000000000\n-1.9500000000000\t\t0.4581387204818\n-1.6500000000000\t\t0.4713779130149\n-1.3500000000000\t\t0.4846171055481\n-1.0500000000000\t\t0.4970353029476\n-0.7500000000000\t\t0.5093366683867\n-0.4500000000000\t\t0.5198058089736\n-0.1500000000000\t\t0.5255902776584\n0.1500000000000\t\t0.5255780043667\n0.4500000000000\t\t0.5196034234886\n0.7500000000000\t\t0.5077315553651\n1.0500000000000\t\t0.4902465737623\n1.3500000000000\t\t0.4679140871271\n1.6500000000000\t\t0.4420029927099\n1.9500000000000\t\t0.4141140192623\n2.2500000000000\t\t0.3862250458147\n\n\n\"Time = 1.3500000000000\n-1.9500000000000\t\t0.4198843387248\n-1.6500000000000\t\t0.4195488563772\n-1.3500000000000\t\t0.4192133740297\n-1.0500000000000\t\t0.4189534945974\n-0.7500000000000\t\t0.4198536123248\n-0.4500000000000\t\t0.4225076296018\n-0.1500000000000\t\t0.4246212798371\n0.1500000000000\t\t0.4245566877504\n0.4500000000000\t\t0.4218450526350\n0.7500000000000\t\t0.4162866758000\n1.0500000000000\t\t0.4078174188494\n1.3500000000000\t\t0.3967262070373\n1.6500000000000\t\t0.3835766444884\n1.9500000000000\t\t0.3692610307144\n2.2500000000000\t\t0.3549454169403\n\n\n\"Time = 1.5000000000000\n-1.9500000000000\t\t0.3793012156649\n-1.6500000000000\t\t0.3656424238360\n-1.3500000000000\t\t0.3519836320072\n-1.0500000000000\t\t0.3395307176281\n-0.7500000000000\t\t0.3293450449168\n-0.4500000000000\t\t0.3237077820031\n-0.1500000000000\t\t0.3217834842152\n0.1500000000000\t\t0.3215500888626\n0.4500000000000\t\t0.3220156719838\n0.7500000000000\t\t0.3226884320544\n1.0500000000000\t\t0.3232183207998\n1.3500000000000\t\t0.3234052935154\n1.6500000000000\t\t0.3231281307717\n1.9500000000000\t\t0.3225620793129\n2.2500000000000\t\t0.3219960278540\n", |
| "wavetoyc/phi_norm1.xg": "\"phi v time\n0.0000000000000\t0.5508974853043\n0.3000000000000\t0.5399783644048\n0.6000000000000\t0.5078990337948\n0.9000000000000\t0.4578985048597\n1.2000000000000\t0.3946069569230\n1.5000000000000\t0.3238067187342\n", |
| "wavetoyc/phi_minimum.xg": "\"phi v time\n0.0000000000000\t0.1441096050934\n0.3000000000000\t0.1174050741283\n0.6000000000000\t0.1281964404323\n0.9000000000000\t0.1457551697659\n1.2000000000000\t0.1691461665444\n1.5000000000000\t0.1969225503341\n" |
| }, |
| "doc": { |
| "documentation.tex": "\\documentclass{article}\n\n% Use the Cactus ThornGuide style file\n% (Automatically used from Cactus distribution, if you have a \n% thorn without the Cactus Flesh download this from the Cactus\n% homepage at www.cactuscode.org)\n\\usepackage{../../../../doc/latex/cactus}\n\n\\begin{document}\n\n\\title{Sample (Physical) Boundary Condition}\n\\author{David Rideout}\n\\date{$ $Date$ $}\n\n\\maketitle\n\n% Do not delete next line\n% START CACTUS THORNGUIDE\n\n\\begin{abstract}\nProvides a simple linear extrapolation boundary condition, to serve as\nan example for people who wish to write their own physical boundary conditions.\n\\end{abstract}\n\n\n\\section{Introduction}\n\nThis thorn provides a linear extrapolation boundary condition in three\ndimensions. It is intended as an example for writing physical\nboundary conditions. (See the ThornGuide for\n\\texttt{CactusBase/Boundary} for details on Cactus boundary\nconditions.) It is registered under the name \\texttt{LinearExtrap}.\n\nThe code which actually implements the boundary condition is written\nin fixed form Fortran 90, in the file \\texttt{LinearExtrapBnd.F}.\nThis code was written by Carsten Gundlach, and is taken directly from\nthe thorn \\texttt{AEIThorns/Exact}. As such it illustrates a simple\nway to properly implement a boundary condition using Fortran code\nwhich was written long before the current boundary implementation\nspecification.\n\n\\section{Obtaining This Thorn}\n\nThis thorn is provided within the \\texttt{CactusExamples} arrangement,\nin the standard Cactus distribution.\n\n\\section{Some Details}\n\nThe \\texttt{LinearExtrap} boundary condition registered by this thorn\nonly works in three dimensions. The value on a boundary face is\ndetermined by fitting a straight line through the two points 'inside'\nof the boundary point. For the edges and corners, two points along\nthe diagonal are used to determine the line. In this way the thorn\nalso provides an example of how to handle edges and corners, though\nonly in a dimension specific way.\n\n\\section{Using This Thorn}\n\nTo use this thorn, simply activate it in your parameter file, select\nsome variables for the \\texttt{LinearExtrap} boundary condition, and\nbe sure that \\texttt{ApplyBCs} (as e.g. \\texttt{MyThorn\\_ApplyBCs}) is\nscheduled at an appropriate point.\n\n%\\section{Numerical Implementation}\n%\\subsection{Special Behaviour}\n%\\subsection{Interaction With Other Thorns}\n%\\subsection{Examples}\n%\\subsection{Support and Feedback}\n%\\subsection{Thorn Source Code}\n%\\subsection{Thorn Documentation}\n%\\subsection{Acknowledgements}\n%\\begin{thebibliography}{9}\n%\\end{thebibliography}\n%\\section{History}\n\n% Do not delete next line\n% END CACTUS THORNGUIDE\n\n\\end{document}\n% LocalWords: LinearExtrap LinearExtrapBnd MyThorn\n" |
| } |
| } |