Overview
Comment:Uses default constitutive relationship mtt/cr/r
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a45b58af3eb0b97abe64d41804d6d0cee618394a0ad4c3bb1016efe445fdf6e0
User & Date: gawthrop@users.sourceforge.net on 1996-09-10 16:18:37
Other Links: branch diff | manifest | tags
Context
1996-09-10
16:48:21
Changed ar counts in default settings. check-in: 5b25a5294f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:18:37
Uses default constitutive relationship mtt/cr/r check-in: a45b58af3e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:29:47
Removed causality & port info when no constitutive relationship. check-in: 6004cf1aea user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/makecr from [4d2c8927a5] to [4e6a8c84ae].

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
55
56
57
58
59
60
61
62
63
64
65
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






-
+

-
-
-
-
-
-
-
+






+
+
+





-
-
-
-
-
+
+
+
+
-
-
-
-
-
+
-
-
-
-
-
-
-
+
-
-
-
-
-

-
-
-
-
-

-
-
-







#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: mtt
# Bourne shell script: makecr

# Usage: mtt system_name  representation_name
# E.g.: 
# 	mtt dc mtf
# converts dc to matlab transfer function form.
#
# P.J.Gawthrop Oct 1989, Dec 1989, 1990, 1991, Oct 1993, Dec 1993, Jan 1994.
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994.
# Copyright (c) P.J.Gawthrop 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1996/08/24 14:53:06  peter
## Initial revision
##
###############################################################

#Inform user
echo Creating $1_cr.r

cat - > $1_cr.r << EOF
%Default CR file
%File $1_cr.r
%Generated by MTT

echo % Default CR file			>  $1_cr.r
echo % File $1_cr.r			>> $1_cr.r
echo % Generated by MTT on `date`.	>> $1_cr.r
echo					>> $1_cr.r
%Unity CR
OPERATOR Unity;
FOR ALL Causality,Input
LET Unity(Causality,Input) = Input;

echo %This is the linear CR.		>> $1_cr.r
%Linear CR: e = Gain*f (if DefaultCausality = flow) 
%           f = Gain*e (if DefaultCausality = effort)
OPERATOR Lin;
FOR ALL DefaultCausality, Gain, Causality, Input
SUCH THAT Causality = DefaultCausality
LET Lin(DefaultCausality, Gain, Causality, Input) = Gain*Input;

cat $MTTPATH/cr/r/lin.r			>> $1_cr.r
%Linear CR: e = (1/Gain)*f (if DefaultCausality = flow) 
%           f = (1/Gain)*e (if DefaultCausality = effort)
FOR ALL DefaultCausality, Gain, Causality, Input
SUCH THAT Causality NEQ DefaultCausality
LET Lin(DefaultCausality, Gain, Causality, Input) = (1/Gain)*Input;

%Default CR
% -- Unity CR
OPERATOR Default;
FOR ALL Causality,Input
LET Default(Causality,Input) = Unity(Causality,Input);

END;

EOF








MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]