Overview
Comment:Now does default CR and args for the basic components only
SS,I,R,C,GY,TF
C now has a default of effort input.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a94d103cda71dc031c957444f186c15aee92e8fc5ebdc89b80f5b00dcd03b44a
User & Date: gawthrop@users.sourceforge.net on 1998-03-02 09:26:18
Other Links: branch diff | manifest | tags
Context
1998-03-02
17:14:06
Added simpar to list check-in: 6ad1c28105 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:26:18
Now does default CR and args for the basic components only
SS,I,R,C,GY,TF
C now has a default of effort input.
check-in: a94d103cda user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-02-26
15:12:26
Removed parameter stuff check-in: 4e927073f2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/abg2lbl_fig2txt from [1400afe9e8] to [bd7dcc77dc].

9
10
11
12
13
14
15



16
17
18
19
20
21
22
# Acausal bond graph to causal bond graph: mfile format

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.3  1997/05/09 14:21:35  peterg
## Default to flow,component_name
##
# Revision 1.2  1997/03/19  12:08:01  peterg
# No longer writes out non-unique names - now done in rbg_fig2m
#
# Revision 1.1  1997/03/18  13:55:01  peterg







>
>
>







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Acausal bond graph to causal bond graph: mfile format

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.4  1998/02/23 16:20:33  peterg
## Summary line just contains the model name
##
## Revision 1.3  1997/05/09 14:21:35  peterg
## Default to flow,component_name
##
# Revision 1.2  1997/03/19  12:08:01  peterg
# No longer writes out non-unique names - now done in rbg_fig2m
#
# Revision 1.1  1997/03/18  13:55:01  peterg
62
63
64
65
66
67
68
69
70

71
72

73
74
75

76













77
78
79
80
81
82
83
84

#Write out non-unique names
#echo 'Non-unique names (if any):'
#diff $1_unique_raw_list  $1_raw_list | grep '>' | sed 's/>/	/'

#Write out the outline lbl file
grep -v  '\[[0-9]*\]'  $1_unique_raw_list | \
awk --field-separator ':' \
 '{ \

   if (($1 !~ "0")&&($1 !~ "1")) \
    { if (Component !~ $1) print "\n% Component type", $1

    if ($1 ~ "SS") \
	print  "\t" $2 "\t\texternal\texternal";
	else \

	print  "\t" $2"\t\tlin\tflow," $2} \













   else {
         if (Component !~ $1) print "\n% Component type", $1; \
	 print  "\t" $2;
	}
        Component=$1\
 }' \
>>$1_lbl.txt








|
<
>
|

>
|

|
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>

|


|
<
|

65
66
67
68
69
70
71
72

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99

100
101

#Write out non-unique names
#echo 'Non-unique names (if any):'
#diff $1_unique_raw_list  $1_raw_list | grep '>' | sed 's/>/	/'

#Write out the outline lbl file
grep -v  '\[[0-9]*\]'  $1_unique_raw_list | \
awk --field-separator ':' '

 { 
   if (($1 !~ "0")&&($1 !~ "1")) 
    { if (Component !~ $1) print "\n% Component type", $1

      if ($1 ~ "SS") 
	print  "\t" $2 "\t\texternal\texternal";

      if ($1 ~ "R") 
	print  "\t" $2"\t\tlin\tflow," $2;

      if ($1 ~ "I") 
	print  "\t" $2"\t\tlin\tflow," $2;

      if ($1 ~ "C") 
	print  "\t" $2"\t\tlin\teffort," $2;

      if ($1 ~ "TF") 
	print  "\t" $2"\t\tlin\tflow," $2;

      if ($1 ~ "GY") 
	print  "\t" $2"\t\tlin\tflow," $2;
    }
   else {
         if (Component !~ $1) print "\n% Component type", $1; 
	 print  "\t" $2;
	}
        Component=$1

 }' >>$1_lbl.txt


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