Overview
Comment:Updated for new mtt features - input.txt etc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: e3494a999422d33025c8e02333fe82c29236719e28ea2399069d6e791834e8a6
User & Date: gawthrop@users.sourceforge.net on 2001-10-05 11:24:35
Other Links: branch diff | manifest | tags
Context
2001-10-05
23:37:32
Fixed assignment statement in ae.r when RHS=0. check-in: 076163fdd2 user: geraint@users.sourceforge.net tags: origin/master, trunk
11:24:35
Updated for new mtt features - input.txt etc check-in: e3494a9994 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:41:26
Reserved words check-in: 0f078e6367 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/examples/Hybrid/Bounce/Bounce_input.txt from [ea3d9719b3] to [31e311af15].

1
2
3
4
5
6
7
8



9
10
11
12
13
14
15
16
17
18
19
20

# Numerical parameter file (Bounce_input.txt)
# Generated by MTT at Wed Jul  2 10:47:49 BST 1997

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



# %% Revision 1.2  1998/10/01 19:20:33  peterg
# %% Cahged switch function
# %%
# %% Revision 1.1  1998/07/25 18:35:02  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Set the inputs
mttu(1) = 9.81;











>
>
>









|


>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Numerical parameter file (Bounce_input.txt)
# Generated by MTT at Wed Jul  2 10:47:49 BST 1997

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.3  2000/05/18 11:30:14  peterg
# %% Moved switch logic to logic.txt
# %%
# %% Revision 1.2  1998/10/01 19:20:33  peterg
# %% Cahged switch function
# %%
# %% Revision 1.1  1998/07/25 18:35:02  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Set the inputs
## Removed by MTT on Fri Oct  5 10:37:56 BST 2001: mttu(1) = 9.81;


bounce_gravity	= 9.81; # Added by MTT on Fri Oct 05 10:37:59 BST 2001

Modified mttroot/mtt/lib/examples/Hybrid/Bounce/Bounce_lbl.txt from [a950799cc2] to [3c29396b81].

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
%SUMMARY Bounce: Bouncing ball example (hybrid)
%DESCRIPTION <Detailed description here>
%% Label file for system Bounce (Bounce_lbl.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Each line should be of one of the following forms:
%	a comment (ie starting with %)
%	Component-name	CR_name	arg1,arg2,..argn
%	blank



% Component type INTF
	intf

% Component type CSW
	ground		lin	state,k

% Component type I
	ball_mass		lin	flow,m

% Component type R
	air_resistance		lin	flow,r

% Component type SS
	gravity			external	internal
	x			external	0










>
>
>













|








|
|

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
%SUMMARY Bounce: Bouncing ball example (hybrid)
%DESCRIPTION <Detailed description here>
%% Label file for system Bounce (Bounce_lbl.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.1  1997/09/11 09:54:22  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Each line should be of one of the following forms:
%	a comment (ie starting with %)
%	Component-name	CR_name	arg1,arg2,..argn
%	blank



% Component type INTF
	intf

% Component type CSW
	ground		lin	state,k_g

% Component type I
	ball_mass		lin	flow,m

% Component type R
	air_resistance		lin	flow,r

% Component type SS
	gravity			SS	external,internal
	x			SS	external,0

Modified mttroot/mtt/lib/examples/Hybrid/Bounce/Bounce_numpar.txt from [3811c0ef3d] to [3190429a19].

1
2
3
4
5
6
7
8



9
10
11
12
13
14
# Numerical parameter file (Bounce_numpar.txt)
# Generated by MTT at Wed Jul  2 10:47:47 BST 1997

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



# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Parameters
k = 	100.0; # Ground stiffness
m = 	1.0; # Ball mass
r = 	1.0; # Air resistance








>
>
>



|


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Numerical parameter file (Bounce_numpar.txt)
# Generated by MTT at Wed Jul  2 10:47:47 BST 1997

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.1  2000/12/28 17:45:24  peterg
# %% To RCS
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Parameters
k_g = 	100.0; # Ground stiffness
m = 	1.0; # Ball mass
r = 	1.0; # Air resistance

Modified mttroot/mtt/lib/examples/Hybrid/Bounce/Bounce_rep.txt from [3af74a37f9] to [d2abad5353].

1
2
3
4
5
6
7



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Outline report file for system Bounce (Bounce_rep.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mtt Bounce abg tex
mtt Bounce struc tex
mtt Bounce ode tex


mtt Bounce simpar txt
mtt Bounce input txt
mtt Bounce logic txt
mtt Bounce numpar txt

mtt -c Bounce odeso ps

mtt Bounce rep txt







>
>
>












|


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
# Outline report file for system Bounce (Bounce_rep.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.1  2000/05/19 07:09:19  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mtt Bounce abg tex
mtt Bounce struc tex
mtt Bounce ode tex


mtt Bounce simpar txt
mtt Bounce input txt
mtt Bounce logic txt
mtt Bounce numpar txt

mtt Bounce odeso ps

mtt Bounce rep txt

Modified mttroot/mtt/lib/examples/Hybrid/Bounce/Bounce_state.txt from [d16735ab7d] to [340ae7b854].

1
2
3
4
5
6
7



8
9
10
11
12
13
14
15
16
17



# Initial state  file (Bounce_state.txt)
# Generated by MTT at Sat Jul 25 15:56:57 BST 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.1  1998/07/25 14:59:11  peterg
## Initial revision
##
###############################################################

# Set the states
mttx(1) 	= 10.0;	# 3 (Bounce_intf)
mttx(2) 	= 0.0; 	# MTT_SWITCH (Bounce_ground)
mttx(3) 	= 0.0; 	# ball_mass (Bounce)











>
>
>






|
|
|

>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Initial state  file (Bounce_state.txt)
# Generated by MTT at Sat Jul 25 15:56:57 BST 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1998/07/25 20:34:05  peterg
## *** empty log message ***
##
## Revision 1.1  1998/07/25 14:59:11  peterg
## Initial revision
##
###############################################################

# Set the states
## Removed by MTT on Fri Oct  5 10:38:29 BST 2001: mttx(1) 	= 10.0;	# 3 (Bounce_intf)
## Removed by MTT on Fri Oct  5 10:38:29 BST 2001: mttx(2) 	= 0.0; 	# MTT_SWITCH (Bounce_ground)
## Removed by MTT on Fri Oct  5 10:38:29 BST 2001: mttx(3) 	= 0.0; 	# ball_mass (Bounce)

bounce_ball_mass	= 0.0; # Added by MTT on Fri Oct 05 10:38:33 BST 2001
bounce_ground_1_mtt_switch	= 0.0; # Added by MTT on Fri Oct 05 10:38:33 BST 2001
bounce_intf_1_mtt3	= 10.0; # Added by MTT on Fri Oct 05 10:38:33 BST 2001

Modified mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_lbl.txt from [62ac26c69f] to [60967407da].

1
2
3
4
5
6
7
8
9
10
11
12
13



14
15
16
17
18
19
20
%SUMMARY BouncingRod: Two-dimensional bouncing rod (hybrid)
%DESCRIPTION A uniform rod bounces on a compliant surface -- the
%DESCRIPTION CSW component is used.

#PAR pi

%% Label file for system BouncingRod (BouncingRod_lbl.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %% Revision 1.4  2000/05/18 10:30:39  peterg
% %% New SS form
% %%
% %% Revision 1.3  1997/09/11 09:55:25  peterg
% %% Added documentation
% %%
% %% Revision 1.2  1997/09/11 08:37:29  peterg




<
<







>
>
>







1
2
3
4


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%SUMMARY BouncingRod: Two-dimensional bouncing rod (hybrid)
%DESCRIPTION A uniform rod bounces on a compliant surface -- the
%DESCRIPTION CSW component is used.



%% Label file for system BouncingRod (BouncingRod_lbl.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.5  2000/12/04 08:36:23  peterg
% %% Declare pi
% %%
% %% Revision 1.4  2000/05/18 10:30:39  peterg
% %% New SS form
% %%
% %% Revision 1.3  1997/09/11 09:55:25  peterg
% %% Added documentation
% %%
% %% Revision 1.2  1997/09/11 08:37:29  peterg

Modified mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_numpar.txt from [348ad3662b] to [653e854f15].

1
2
3
4
5
6
7
8



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Numerical parameter file (BouncingRod_numpar.txt)
# Generated by MTT at Fri Jul  4 14:09:11 BST 1997

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



# %% Revision 1.1  1997/07/06 16:17:27  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Parameters
epsilon = 	0.01; 
l = 	1.0; # Default value
m = 	1.0; # Default value
j = 	l*l*m/3;

## Declare pi
pi = 3.142;











>
>
>











<
<


<
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


23
24

# Numerical parameter file (BouncingRod_numpar.txt)
# Generated by MTT at Fri Jul  4 14:09:11 BST 1997

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.2  2000/12/28 17:45:59  peterg
# %% To RCS
# %%
# %% Revision 1.1  1997/07/06 16:17:27  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Parameters
epsilon = 	0.01; 
l = 	1.0; # Default value
m = 	1.0; # Default value
j = 	l*l*m/3;






Modified mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_rep.txt from [79b12196f0] to [1e32455526].

1
2
3
4
5
6
7



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Outline report file for system BouncingRod (BouncingRod_rep.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %% Revision 1.1  1997/07/06 16:20:44  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mtt BouncingRod abg tex
mtt BouncingRod struc tex
mtt BouncingRod ode tex
mtt BouncingRod numpar txt
mtt BouncingRod input txt
mtt BouncingRod logic txt
mtt -c  BouncingRod odeso ps










>
>
>











|



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
# Outline report file for system BouncingRod (BouncingRod_rep.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2  2000/12/28 17:45:59  peterg
% %% To RCS
% %%
% %% Revision 1.1  1997/07/06 16:20:44  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mtt BouncingRod abg tex
mtt BouncingRod struc tex
mtt BouncingRod ode tex
mtt BouncingRod numpar txt
mtt BouncingRod input txt
mtt BouncingRod logic txt
mtt BouncingRod odeso ps



Modified mttroot/mtt/lib/examples/Hybrid/Clutch/Clutch_logic.txt from [ec7ea35f92] to [23dc34e214].

1
2
3
4
5
6
7
8



9
10
11
12
13
14
15
16

# -*-octave-*- Put Emacs into octave-mode
# Simulation parameters for system Clutch (Clutch_logic.txt)
# Generated by MTT on Thu May 18 12:29:15 BST 2000.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.1  2000/05/18 11:29:58  peterg
## Initial revision
##
###############################################################

# Set the switches
clutch_drive_clutch= (t>=5)&&(t<15);










>
>
>






|

>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*-octave-*- Put Emacs into octave-mode
# Simulation parameters for system Clutch (Clutch_logic.txt)
# Generated by MTT on Thu May 18 12:29:15 BST 2000.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  2000/05/19 07:11:36  peterg
## Initial revision
##
## Revision 1.1  2000/05/18 11:29:58  peterg
## Initial revision
##
###############################################################

# Set the switches
## Removed by MTT on Fri Oct  5 11:47:34 BST 2001: clutch_drive_clutch= (t>=5)&&(t<15);

clutch_drive_1_clutch_1_mtt_switch_logic	= (t>=5)&&(t<15); # Added by MTT on Fri Oct 05 11:47:40 BST 2001

Modified mttroot/mtt/lib/examples/Hybrid/Clutch/Clutch_rep.txt from [36f6579b09] to [334e6789c3].

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
# Outline report file for system Clutch (Clutch_rep.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %% Revision 1.1  1999/02/21 08:18:25  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mtt  Clutch abg tex
mtt  Clutch struc tex
mtt  Clutch ode tex
mtt  Clutch dm tex

mtt  Clutch simpar txt
mtt  Clutch input txt
mtt  Clutch logic txt
mtt  Clutch numpar txt

mtt  -c  Clutch odeso ps

mtt  Clutch rep txt







>
>
>















|


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
# Outline report file for system Clutch (Clutch_rep.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2  2000/05/19 07:16:07  peterg
% %% Added logic
% %%
% %% Revision 1.1  1999/02/21 08:18:25  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mtt  Clutch abg tex
mtt  Clutch struc tex
mtt  Clutch ode tex
mtt  Clutch dm tex

mtt  Clutch simpar txt
mtt  Clutch input txt
mtt  Clutch logic txt
mtt  Clutch numpar txt

mtt  Clutch odeso ps

mtt  Clutch rep txt

Modified mttroot/mtt/lib/examples/Hybrid/Clutch/Clutch_simpar.txt from [127677182b] to [e28a1ca3b7].

1
2
3
4
5
6
7



8
9
10
11
12
13
# Simulation parameters for system Clutch (Clutch_simpar.txt)
# Generated by MTT on Sun Jul 26 13:26:44 BST 1998.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



###############################################################

LAST=20.0;
DT=0.01;
STEPFACTOR=10;








>
>
>



|
|

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Simulation parameters for system Clutch (Clutch_simpar.txt)
# Generated by MTT on Sun Jul 26 13:26:44 BST 1998.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1999/12/21 09:13:19  peterg
## Initial revision
##
###############################################################

LAST=20.0;
DT=0.1;
STEPFACTOR=1;

Modified mttroot/mtt/lib/examples/Hybrid/Weirs/Weir_lbl.txt from [b0eb4aae3e] to [17d01f59e7].

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
%SUMMARY Weir: Tank with weirs (hybrid)
%DESCRIPTION Each weir is modeled by two {\bf ISW} components: 
%DESCRIPTION one for flow left-right 
%DESCRIPTION one for flow right-left. 
%DESCRIPTION The switching is such that they become non-return valves 
%DESCRIPTION when the left hand (respectively right-hand) level reaches 
%DESCRIPTION an appropriate value

%% Label file for system Weir (Weir_lbl.txt)





% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% %% $Id$
% %% $Log$
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





%% Each line should be of one of the following forms:
%	a comment (ie starting with %)
%	Component-name	CR_name	arg1,arg2,..argn

%	blank











% Component type C
	tank1		lin	effort,c_1
	tank2		lin	effort,c_2
	tank3		lin	effort,c_3

% Component type ISW
	weir1L		lin	flow,epsilon
	weir1R		lin	flow,epsilon
	weir2L		lin	flow,epsilon
	weir2R		lin	flow,epsilon

% Component type R


	leak		lin	flow,r_l

% Component type SS
	f		internal	external

	p1		external	0
	p2		external	0
	p3		external	0

|
<
|
|
<
<
<
>
|
>

>
>
>
|
>
|
<
>
|
|
<
>
>
>
>

<
<
<
>
|
>

>
>
>

>
>
>
>

|
<
<
<

|
|
|
|
|

|
>
>
|

|
|

|
|
|

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
#SUMMARY Weir

#DESCRIPTION Detailed description here




## System Weir, representation lbl, language txt
## File Weir_lbl.txt
## Generated by MTT on Fri Oct  5 10:50:46 BST 2001

  ###################################### 
  ##### Model Transformation Tools #####
  ######################################
  
  ###############################################################
  ## Version control history

  ###############################################################
  ## $Id$
  ## $Log$

  ## Revision 1.2  2001/07/03 22:59:10  gawthrop
  ## Fixed problems with argument passing for CRs
  ##
  ###############################################################




## Port aliases
#ALIAS	in	in
#ALIAS	out	out

## Argument aliases
#ALIAS	$1	i_s
#ALIAS	$2	r

## Each line should be of one of the following forms:
##	     a comment (ie starting with #)
##	     component-name	cr_name	arg1,arg2,..argn
##	     blank

## ---- Component labels ----




## Component type ISW
	isw	lin		flow,i_s

## Component type R
	r	lin		flow,r		

## Component type R
	[in]	SS		external,external		
	[out]	SS		external,external		









Modified mttroot/mtt/lib/examples/Hybrid/Weirs/Weirs_input.txt from [f586e4fcd3] to [bae53c5591].

1
2
3
4
5
6
7
8



9
10
11
12
13
14
15



# -*-octave-*- Put Emacs into octave-mode
# Input specification (Weirs_input.txt)
# Generated by MTT at Tue Mar  2 07:48:04 GMT 1999
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



###############################################################

# Set the inputs
mttu(1) = 1.0*(t<10); 	# f (Weirs)














>
>
>



|



>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*-octave-*- Put Emacs into octave-mode
# Input specification (Weirs_input.txt)
# Generated by MTT at Tue Mar  2 07:48:04 GMT 1999
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  2000/05/19 07:12:04  peterg
## Initial revision
##
###############################################################

# Set the inputs
## Removed by MTT on Fri Oct  5 10:47:20 BST 2001: mttu(1) = 1.0*(t<10); 	# f (Weirs)



weirs_f	= 1.0*(t<10); # Added by MTT on Fri Oct 05 10:48:01 BST 2001


Modified mttroot/mtt/lib/examples/Hybrid/Weirs/Weirs_lbl.txt from [0ef710d74f] to [2f0e26ecdf].

1
2
3
4
5
6
7
8
9



10
11
12
13
14
15
16
%% Label file for system Weirs (Weirs_lbl.txt)
%SUMMARY Weirs Double-weir tanks system (hybrid)
%DESCRIPTION <Detailed description here>

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Port aliases

% Argument aliases
%ALIAS	$1	tank1









>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%% Label file for system Weirs (Weirs_lbl.txt)
%SUMMARY Weirs Double-weir tanks system (hybrid)
%DESCRIPTION <Detailed description here>

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.1  1999/03/09 00:12:12  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Port aliases

% Argument aliases
%ALIAS	$1	tank1
36
37
38
39
40
41
42
43
44
% Component type SS
	f	SS		internal,external
	p1	SS		external,0
	p2	SS		external,0
	p3	SS		external,0

% Component type Weir
	w1
	w2







|
|
39
40
41
42
43
44
45
46
47
% Component type SS
	f	SS		internal,external
	p1	SS		external,0
	p2	SS		external,0
	p3	SS		external,0

% Component type Weir
	w1      none		epsilon_i;epsilon_r
	w2      none		epsilon_i;epsilon_r

Modified mttroot/mtt/lib/examples/Hybrid/Weirs/Weirs_logic.txt from [0c8ff76708] to [e3936533e3].

1
2
3
4
5
6
7
8



9
10
11
12
13
14
15
16
17


# -*-octave-*- Put Emacs into octave-mode
# Simulation parameters for system Weirs (Weirs_logic.txt)
# Generated by MTT on Thu May 18 12:29:15 BST 2000.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.1  2000/05/18 11:29:58  peterg
## Initial revision
##
###############################################################


# Set the switches
weirs_w1_isw = (mttx(1)>1)|(mttx(2)>1);	# First weir - height 1
weirs_w2_isw = (mttx(2)>2)|(mttx(3)>2);	# Second weir - height 2










>
>
>







|
|
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*-octave-*- Put Emacs into octave-mode
# Simulation parameters for system Weirs (Weirs_logic.txt)
# Generated by MTT on Thu May 18 12:29:15 BST 2000.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  2000/05/19 07:13:29  peterg
## Initial revision
##
## Revision 1.1  2000/05/18 11:29:58  peterg
## Initial revision
##
###############################################################


# Set the switches
## Removed by MTT on Fri Oct  5 11:28:40 BST 2001: weirs_w1_isw = (mttx(1)>1)|(mttx(2)>1);	# First weir - height 1
## Removed by MTT on Fri Oct  5 11:28:40 BST 2001: weirs_w2_isw = (mttx(2)>2)|(mttx(3)>2);	# Second weir - height 2
weirs_w1_1_isw_1_mtt_switch_logic	= (mttx(1)>1)|(mttx(2)>1); # First weir - height 1
weirs_w2_1_isw_1_mtt_switch_logic	= (mttx(2)>2)|(mttx(3)>2); # Second weir - height 2

Modified mttroot/mtt/lib/examples/Hybrid/Weirs/Weirs_rep.txt from [2647b6e909] to [9f4c394b93].

1
2
3
4
5
6
7
8
9



10
11
12
13
14
15
16
## -*-octave-*- Put Emacs into octave-mode
## Outline report file for system Weirs (Weirs_rep.txt)
## Generated by MTT on" Tue Mar  2 22:02:59 GMT 1999.

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



## Revision 1.4  1999/12/21 09:24:26  peterg
## Euler integration - compiled
##
## Revision 1.3  1999/03/02 22:19:22  peterg
## Added switch rep
##
## Revision 1.2  1999/03/02 22:09:49  peterg









>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## -*-octave-*- Put Emacs into octave-mode
## Outline report file for system Weirs (Weirs_rep.txt)
## Generated by MTT on" Tue Mar  2 22:02:59 GMT 1999.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5  2000/05/19 07:15:04  peterg
## Added logic
##
## Revision 1.4  1999/12/21 09:24:26  peterg
## Euler integration - compiled
##
## Revision 1.3  1999/03/02 22:19:22  peterg
## Added switch rep
##
## Revision 1.2  1999/03/02 22:09:49  peterg
34
35
36
37
38
39
40
41
42
43
## mtt Weirs sm tex		# State matrices (of linearised system)
## mtt Weirs tf tex		# Transfer function (of linearised system)
## mtt Weirs lmfr ps		# log modulus of frequency response (of linearised system)
mtt Weirs simpar tex		# Simulation parameters
mtt Weirs numpar tex		# Numerical simulation parameters
mtt Weirs input tex		# Simulation input
mtt Weirs logic tex		# Switch logic
mtt -c Weirs odeso ps		# Simulation output

mtt Weirs rep txt







|


37
38
39
40
41
42
43
44
45
46
## mtt Weirs sm tex		# State matrices (of linearised system)
## mtt Weirs tf tex		# Transfer function (of linearised system)
## mtt Weirs lmfr ps		# log modulus of frequency response (of linearised system)
mtt Weirs simpar tex		# Simulation parameters
mtt Weirs numpar tex		# Numerical simulation parameters
mtt Weirs input tex		# Simulation input
mtt Weirs logic tex		# Switch logic
mtt Weirs odeso ps		# Simulation output

mtt Weirs rep txt

Modified mttroot/mtt/lib/examples/Hybrid/Weirs/Weirs_simpar.txt from [eb0aa7bbb9] to [9ebb65f3fe].

1
2
3
4
5
6
7



8
9
10
11
12
13
14
# Simulation parameters for system Weirs (Weirs_simpar.txt)
# Generated by MTT on Sun Jul 26 13:55:27 BST 1998.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



###############################################################


LAST=20;
DT=0.01;
STEPFACTOR=100;








>
>
>



|

|
<
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# Simulation parameters for system Weirs (Weirs_simpar.txt)
# Generated by MTT on Sun Jul 26 13:55:27 BST 1998.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1999/12/21 09:22:43  peterg
## Initial revision
##
###############################################################


LAST=19.9;
DT=0.01;
STEPFACTOR=1;


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