#!/bin/sh
######################################
##### Model Transformation Tools #####
######################################
# Bourne shell script: makerep_tex
# Makes template for (TeX) system description.
# P.J.Gawthrop July 1998
# Copyright (c) P.J.Gawthrop, 1998.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3 1998/11/18 10:47:39 peterg
## Added transfer function rep
##
## Revision 1.2 1998/11/10 09:16:41 peterg
## Added structure rep
##
## Revision 1.1 1998/07/22 09:14:42 peterg
## Initial revision
##
###############################################################
#Inform user
echo Creating $1_rep.txt
cat <<EOF > $1_rep.txt
## -*-octave-*- Put Emacs into octave-mode
## Outline report file for system $1 ($1_rep.txt)
## Generated by MTT on" `date`.
EOF
cat $MTTPATH/trans/rcs_header.sh >> $1_rep.txt
cat <<EOF >> $1_rep.txt
mtt $1 abg tex # The system description
mtt $1 cbg ps # The causal bond graph
## Uncomment the following lines or add others
## mtt $1 struc tex # The system structure
## mtt $1 dae tex # The system dae
## mtt $1 ode tex # The system ode
## mtt $1 sspar tex # Steady-state parameters
## mtt $1 ss tex # Steady state
## mtt $1 dm tex # Descriptor matrices (of linearised system)
## mtt $1 sm tex # State matrices (of linearised system)
## mtt $1 tf tex # Transfer function (of linearised system)
## mtt $1 lmfr ps # log modulus of frequency response (of linearised system)
## mtt $1 simpar tex # Simulation parameters
## mtt $1 numpar tex # Numerical simulation parameters
## mtt $1 input tex # Simulation input
## mtt $1 odeso ps # Simulation output
EOF