/usr/share/openturns/examples/poutre_files.sh is in openturns-examples 1.2-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #! /bin/sh
# -*- Shell -*-
#
# poutre.sh
#
# Copyright (C) 2005-2013 EDF-EADS-Phimeca
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This library 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# along with this library. If not, see <http://www.gnu.org/licenses/>.
#
# @author dutka
# @date 2007-07-19 17:29:38 +0200 (Thu, 19 Jul 2007)
# Id configure.ac 478 2007-07-19 15:29:38Z dutka
#
# This file implements the 'poutre' model as an external code
#
progname="$0"
infiles="./poutre_external_infile1 ./poutre_external_infile2"
outfile="./poutre_external_outfile"
for file in $infiles
do
if test -f "$file"
then
. $file
else
echo "$progname: ERROR ! Can't find input file '$file'"
exit 1
fi
done
cat <<EOF | bc > $outfile
scale=20
f=$F
l=$L
e=$E
i=$I
d=f*l*l*l/(3*e*i)
print "d=", d, "\n"
EOF
exit 0
|