function Fzx=yzSfzv(x,a,Fx,Fz)
#
# computed a loading vector for the point load
# for a three-hinged frame
# Fx -- point load acts in the x direction
# Fz -- point load acts in the z direction
# a -- distance of a load point from a start point
#
##=========================================================================
## This Program is written by Andres Lahe,   1998-05-20
##                    e-mail: andres.lahe@ttu.ee
## LAST MODIFIED: Andres Lahe,    2009-02-13
## Copyright (c)  2004  by Tallinn University of Technology 
##                Department of Mechanics
##                http://www.ttu.ee/
##
## 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; either version 2
## of the License, or (at your option) any later version.

## 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
## http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
##=========================================================================
#
  xp=x-a;
 if xp>=0
 #% Fzx(1,1)=-baasi0*Fx*xp/EA;
 #% Fzx(2,1)=baasi0*Fz*xp^3/(6*EJ);
 #% Fzx(3,1)=-baasi0*Fz*xp^2/(2*EJ);
  Fzx(1,1)=-Fx;
  Fzx(2,1)=-Fz;
  Fzx(3,1)=-Fz*xp;
 else
  Fzx(1,1)=0;
  Fzx(2,1)=0;
  Fzx(3,1)=0;
 #% Fzx(4,1)=0;
 #% Fzx(5,1)=0;
 #% Fzx(6,1)=0;
 endif
 endfunction


