1! 2! CalculiX - A 3-dimensional finite element program 3! Copyright (C) 1998-2021 Guido Dhondt 4! 5! This program is free software; you can redistribute it and/or 6! modify it under the terms of the GNU General Public License as 7! published by the Free Software Foundation(version 2); 8! 9! 10! This program is distributed in the hope that it will be useful, 11! but WITHOUT ANY WARRANTY; without even the implied warranty of 12! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13! GNU General Public License for more details. 14! 15! You should have received a copy of the GNU General Public License 16! along with this program; if not, write to the Free Software 17! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18! 19 subroutine gasmechbc(vold,nload,sideload, 20 & nelemload,xload,mi) 21! 22 implicit none 23! 24 character*20 sideload(*) 25! 26 integer i,nload,node,nelemload(2,*),mi(*) 27! 28 real*8 vold(0:mi(2),*),xload(2,*) 29! 30! updating the boudary conditions in a mechanical 31! calculation coming from a previous thermal calculation 32! 33! updating the pressure boundary conditions 34! 35 do i=1,nload 36 if(sideload(i)(3:4).eq.'NP') then 37 node=nelemload(2,i) 38 xload(1,i)=vold(2,node) 39 endif 40 enddo 41! 42 return 43 end 44 45 46 47 48 49 50 51 52