| 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 |
C======================================================================= |
| 8 |
SUBROUTINE TRNXYZ (XN, YN, XN3, YN3, ZN3, ATRIB) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** TRNXYZ *** (GENSHELL) Calculate 3D coordinates for translation |
| 12 |
C -- |
| 13 |
C --TRNXYZ calculates the coordinate array for the 3D database. |
| 14 |
C -- |
| 15 |
C --Parameters: |
| 16 |
C -- XN, YN - IN - the 2D coordinates, destroyed |
| 17 |
C -- XN3, YN3, ZN3 - OUT - the 3D coordinates |
| 18 |
C -- |
| 19 |
C --Common Variables: |
| 20 |
C -- Uses NDIM, NUMNP of /DBNUMS/ |
| 21 |
C -- Uses NDIM3, NUMNP3 of /DBNUM3/ |
| 22 |
C -- Uses DOTRAN, NNREPL, DIM3, NRTRAN, D3TRAN, ZGRAD, |
| 23 |
C -- CENTER, NUMCOL, NUMROW of /PARAMS/ |
| 24 |
C -- Uses XOFFS, YOFFS, ZOFFS of /XYZOFF/ |
| 25 |
C -- Uses ROT3D, ROTMAT of /XYZROT/ |
| 26 |
|
| 27 |
INCLUDE 'gs_dbnums.blk' |
| 28 |
INCLUDE 'gs_dbnum3.blk' |
| 29 |
INCLUDE 'gs_params.blk' |
| 30 |
|
| 31 |
REAL XN(NUMNP), YN(NUMNP), |
| 32 |
& XN3(NUMNP3), YN3(NUMNP3), ZN3(NUMNP3) |
| 33 |
REAL ATRIB(NUMEL) |
| 34 |
|
| 35 |
C --Copy X and Y coordinates from original, set Z equal to 0.0 |
| 36 |
|
| 37 |
DO 10 INP = 1, NUMNP |
| 38 |
XN3(INP) = XN(INP) |
| 39 |
YN3(INP) = YN(INP) |
| 40 |
ZN3(INP) = 0.0 |
| 41 |
10 CONTINUE |
| 42 |
|
| 43 |
C --Set the element attributes equal to the thickness |
| 44 |
|
| 45 |
DO 20 IEL = 1, NUMEL |
| 46 |
ATRIB(IEL) = DIM3 |
| 47 |
20 CONTINUE |
| 48 |
|
| 49 |
RETURN |
| 50 |
END |