| 1 |
C Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
C NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
C |
| 5 |
C See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
SUBROUTINE INIELT(SOLEB,IVAR,TIMES,ISTP,IDBLK,CENTER,DUME) |
| 8 |
|
| 9 |
C ********************************************************************* |
| 10 |
|
| 11 |
C INIELT initializes element variable values based on TIME, ELEMENT |
| 12 |
C BLOCK, VARIABLE NAME, COORDINATE, etc. By default, element variable |
| 13 |
C values are set to zero. It is intended that the user rewrite this |
| 14 |
C subroutine to provide values that are appropriate to the problem |
| 15 |
C being solved. This is the preferred method to handle element variable |
| 16 |
C assignment for recipient mesh nodes that lie outside the boundary |
| 17 |
C of the donor mesh. |
| 18 |
|
| 19 |
C Called by INTRPE, SINTPE, TRANAB, STRAN |
| 20 |
|
| 21 |
C ********************************************************************* |
| 22 |
|
| 23 |
C SOLEB REAL Array of element variable values |
| 24 |
C (1:numebb,1:nvarel) |
| 25 |
C TIMES REAL Array of times (1:ntimes) |
| 26 |
C IDBLK INT The element block I. D. |
| 27 |
C CENTER REAL Array of element centroid coordinates |
| 28 |
C (1;numebb,1:3) |
| 29 |
|
| 30 |
C ********************************************************************* |
| 31 |
|
| 32 |
include 'exodusII.inc' |
| 33 |
|
| 34 |
include 'aexds1.blk' |
| 35 |
include 'ebbyeb.blk' |
| 36 |
include 'inival.blk' |
| 37 |
|
| 38 |
DIMENSION SOLEB(NUMEBB,NVAREL), TIMES(*), CENTER(NUMEBB,*) |
| 39 |
DIMENSION DUME(*) |
| 40 |
|
| 41 |
C ********************************************************************* |
| 42 |
|
| 43 |
C Code to help you find some potentially useful stuff |
| 44 |
C The actual time (real number) |
| 45 |
C TIME = TIMES(ISTP) |
| 46 |
|
| 47 |
C The pointer into VARNAM to get the variable name being processed |
| 48 |
C INAM = IVAR + NVARGP |
| 49 |
|
| 50 |
C The name of the variable (character) being processed |
| 51 |
C NAME = NAMVAR(INAM) |
| 52 |
|
| 53 |
C The coordinates of the point (element centroid) |
| 54 |
|
| 55 |
C XP = CENTER(IELT,1) |
| 56 |
C YP = CENTER(IELT,2) |
| 57 |
C ZP = CENTER(IELT,3) |
| 58 |
|
| 59 |
C By default, set value to 0. |
| 60 |
C User to replace this with whatever code he wishes. |
| 61 |
|
| 62 |
DO 10 IELT = 1, NUMEBB |
| 63 |
SOLEB(IELT,IVAR) = VALINI |
| 64 |
10 CONTINUE |
| 65 |
|
| 66 |
RETURN |
| 67 |
END |