!*********************************************************************************************************************************************************!
!* Copyright (c) <2015> <Purdue University> All rights reserved.																					     *!
!*                                                                      																			     *!
!* Developed by:  Fang Jiang, Wenbin Yu                                                                                                                  *!
!*        <Prof. Yu’s Research Group>,                                                                                                                   *!
!*        <School of Aeronautics and Astronautics, Purdue University>                                                                                    *!
!*        <https://cdmhub.org/projects/ansysvabsgui2015>                                                                                                 *!
!*                                                                      																			     *!
!* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),    *!
!* to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,  *!
!* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:            *!
!*                                                                      																			     *!
!* •Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.                        *!
!*                                                                      																			     *!
!* •Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation *!
!*  and/or other materials provided with the distribution.                                                                                               *!
!*                                                                      																			     *!
!* •Neither the names of < Prof. Yu’s Research Group, School of Aeronautics and Astronautics, Purdue University >,                                       *!
!*  nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.   *!
!*                                                                      																			     *!
!* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   *!
!* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *!
!* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER     *!
!* DEALINGS WITH THE SOFTWARE. 																															 *!
!*********************************************************************************************************************************************************!
! part #6
!=================================================================================
! elemant-node connectivity relations block      Done
!---------------------------------------------------------------------------------
! elem_no; node_1; node_2; node_3; node_4; node_5; node_6; node_7; node_8; node_9;
!---------------------------------------------------------------------------------
! If a node is not present in the element, the value is 0.
!Although the arrangement of elem_no is not necessary to be consecutive, 
!every element starting from 1 to nelem should be present.


!!---------------------------------------------------------------------------------
!*CFOPEN,VABSGen_6_elemno_nodeno,dat
!*VWRITE, e3_LST(1), e3_NODE_1(1), e3_NODE_2(1), e3_NODE_3(1), e3_NODE_4(1), e3_NODE_5(1), e3_NODE_6(1), e3_NODE_7(1), e3_NODE_8(1), e3_NODE_9(1)
!(F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ',$, 2X, F9.0,TL1,' ')
!*VWRITE 
!(' ')
!*CFCLOS

!---------------------------------------------------------------------------------
*CFOPEN, VABS_Check/VABSGen_6_elemno_nodeno, dat
*IF, nelem1, NE, 0, THEN
*VWRITE, e1_LST(1), e1_NODE_1(1), e1_NODE_2(1), e1_NODE_3(1), e1_NODE_4(1), e1_NODE_5(1), e1_NODE_6(1), e1_NODE_7(1), e1_NODE_8(1), e1_NODE_9(1)
(F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ',$, 2X, F9.0,TL1,' ')
*ENDIF
*IF, nelem2, NE, 0, THEN
*VWRITE, e2_LST(1), e2_NODE_1(1), e2_NODE_2(1), e2_NODE_3(1), e2_NODE_4(1), e2_NODE_5(1), e2_NODE_6(1), e2_NODE_7(1), e2_NODE_8(1), e2_NODE_9(1)
(F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ',$, 2X, F9.0,TL1,' ')
*ENDIF
*IF, nelem3, NE, 0, THEN
*VWRITE, e3_LST(1), e3_NODE_1(1), e3_NODE_2(1), e3_NODE_3(1), e3_NODE_4(1), e3_NODE_5(1), e3_NODE_6(1), e3_NODE_7(1), e3_NODE_8(1), e3_NODE_9(1)
(F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ',$, 2X, F9.0,TL1,' ')
*ENDIF
*IF, nelem4, NE, 0, THEN
*VWRITE, e4_LST(1), e4_NODE_1(1), e4_NODE_2(1), e4_NODE_3(1), e4_NODE_4(1), e4_NODE_5(1), e4_NODE_6(1), e4_NODE_7(1), e4_NODE_8(1), e4_NODE_9(1)
(F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ', 2X, F9.0,TL1,' ',$, 2X, F9.0,TL1,' ')
*ENDIF
*VWRITE 
(' ')
*CFCLOS