Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f65ef2502df5d40a3f6a67da76afe789adfc120b139d5edb564a6d55fb03b4a4
User & Date: gawthrop@users.sourceforge.net on 1997-07-06 16:20:44
Other Links: branch diff | manifest | tags
Context
1997-07-06
16:35:20
Initial revision check-in: 5bb47c8759 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:20:44
Initial revision check-in: f65ef2502d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1997-06-29
19:05:51
Seascale changes -- mainly to new rep format. check-in: a4d5513358 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_input.txt version [d5caa4fe50].

































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

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

# Set the inputs
u(1) =	1.0; # gravity (Default value)

# Set the switches
bouncingrod_groundl= (x[3]<=0);
bouncingrod_groundr= (x[4]<=0);

Added mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_lbl.txt version [abea90fb0f].













































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
%SUMMARY BouncingRod: <brief description here>
%DESCRIPTION <Detailed description here>
%% Label file for system BouncingRod (BouncingRod_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 CSW
	groundL		lin	effort,epsilon
	groundR		lin	effort,epsilon

% Component type INTF
	intfL
	intfR

% Component type ROD
	rod		none	l;l;j;m

% Component type SS
	aL		0		internal
	aR		0		internal
	gravity		external	internal
	hL		external	0
	hR		external	0
	xC		0		internal
	xL		0		internal
	xR		0		internal

Added mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_numpar.txt version [fc10072c99].



































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
# Numerical parameter file (BouncingRod_numpar.txt)
# Generated by MTT at Fri Jul  4 14:09:11 BST 1997

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

float theta,height;

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


theta = 3.1416/4;
height = 10.0;

# Initial states
x(1) = 	0.0; # Initial state for BouncingRod_groundL (MTT_SWITCH)
x(2) = 	0.0; # Initial state for BouncingRod_groundR (MTT_SWITCH)
x(3) = 	height+l*cos(theta); # Initial state for BouncingRod_intfL (3)
x(4) = 	height-l*cos(theta); # Initial state for BouncingRod_intfR (3)
x(5) = 	0.0; # Initial state for BouncingRod_rod (J)
x(6) = 	0.0; # Initial state for BouncingRod_rod (m_x)
x(7) = 	0.0; # Initial state for BouncingRod_rod (m_y)
x(8) = 	theta; # Initial state for BouncingRod_rod_th (3)


Added mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_odes.h version [8e08760d76].















>
>
>
>
>
>
>
1
2
3
4
5
6
7
/*
%% Parameter file for system BouncingRod (BouncingRod_odes.h)
%% This file provides the params for simulation:
*/
#define DT 0.1 /* Time step (for printing) */
#define LAST 99.9 /* Last time */
#define STEPFACTOR 1000 /* Integration steps per time step */

Added mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_rep.txt version [aa6fa411cb].





































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Outline report file for system BouncingRod (BouncingRod_rep.txt)

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

mtt -s -o -c BouncingRod abg tex
mtt -s -o -c BouncingRod struc tex
mtt -s -o -c BouncingRod ode tex
mtt -s -o -c BouncingRod odes h
mtt -s -o -c BouncingRod numpar txt
mtt -s -o -c BouncingRod input txt
mtt -s -o -c BouncingRod odeso ps



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