! ! CalculiX - A 3-dimensional finite element program ! Copyright (C) 1998-2007 Guido Dhondt ! ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU General Public License as ! published by the Free Software Foundation(version 2); ! ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ! subroutine dflux(flux,sol,kstep,kinc,time,noel,npt,coords, & jltyp,temp,press,loadtype,vold) ! ! user subroutine dflux ! ! ! INPUT: ! ! sol current temperature value ! kstep step number ! kinc increment number ! time(1) current step time ! time(2) current total time ! noel element number ! npt integration point number ! coords(1..3) global coordinates of the integration point ! jltyp loading face kode: ! 11 = face 1 ! 12 = face 2 ! 13 = face 3 ! 14 = face 4 ! 15 = face 5 ! 16 = face 6 ! temp currently not used ! press currently not used ! loadtype load type label ! vold(0..3,1..nk) solution field in all nodes ! 0: temperature ! 1: displacement in global x-direction ! 2: displacement in global y-direction ! 3: displacement in global z-direction ! ! OUTPUT: ! ! flux(1) magnitude of the flux ! flux(2) not used; please do NOT assign any value ! implicit none ! character*20 loadtype integer kstep,kinc,noel,npt,jltyp real*8 flux(2),time(2),coords(3),sol,temp,press,vold(0:3,*) ! c flux(1)=-100.d0*coords(2) flux(1)=-100.d0 ! return end