Overview
Context
Changes
Added mttroot/mtt/bin/mtt_help version [e7b410d67b].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#! /bin/sh
######################################
##### Model Transformation Tools #####
######################################
# Bourne shell script: mtt_help
# P.J.Gawthrop Nov 1996
# Copyright (c) P.J.Gawthrop 1996
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################
topic=$1
subtopic=$2
if [ "$subtopic" = "" ]; then
subtopic='.'
fi;
if [ "$topic" = "comps" ]; then
echo 'Components:'
grep -h '\%SUMMARY' $MTTPATH/comp/compound/*_lbl.txt $MTTPATH/comp/simple/*_cause.m|\
sed 's/\%SUMMARY[ ]*/ /' |\
grep $subtopic |\
sed 's/:[ ]*/ /' |\
sort
elif [ "$topic" = "reps" ]; then
echo 'Representations:'
grep '#REPRESENTATION' $MTTPATH/mtt |\
sed 's/#REPRESENTATION[ ]*/ /' |\
grep $subtopic |\
sort
else
grep -h '\%SUMMARY' \
$MTTPATH/comp/compound/$1_lbl.txt \
$MTTPATH/comp/simple/$1_cause.m 2>/dev/null |\
sed 's/\%SUMMARY[ ]*//' |\
sed 's/:[ ]*/ /'
grep -h '\%DESCRIPTION' \
$MTTPATH/comp/compound/$1_lbl.txt \
$MTTPATH/comp/simple/$1_cause.m 2>/dev/null |\
sed 's/\%DESCRIPTION[ ]*/ /' |\
sed 's/:[ ]*/ /'
fi;
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added mttroot/mtt/lib/comp/simple/C_cause.m version [a12fffd3b5].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
function [bonds,status] = C_cause(bonds);
% C_cause - Unicausal multiport C component
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %%%%% Model Transformation Tools %%%%%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Matlab function C_cause
% [bonds,status] = C_cause(bonds)
%SUMMARY C: elementary C component
%DESCRIPTION Single port dynamic component
%DESCRIPTION Preferred integral causality (flow input)
%DESCRIPTION Cannot be bicausal
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (c) P.J. Gawthrop, 1996.
% Unicausal multiport C component
% Same causal pattern as R component
[bonds,status] = R_cause(bonds);
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |