2
! CalculiX - A 3-dimensional finite element program
3
! Copyright (C) 1998-2015 Guido Dhondt
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);
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.
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.
19
subroutine gasmechbc(vold,nload,sideload,
24
character*20 sideload(*)
26
integer i,nload,node,nelemload(2,*),mi(*)
28
real*8 vold(0:mi(2),*),xload(2,*)
30
! updating the boudary conditions in a mechanical
31
! calculation coming from a previous thermal calculation
33
! updating the pressure boundary conditions
36
if(sideload(i)(3:4).eq.'NP') then
38
xload(1,i)=vold(2,node)