Overview
Comment:New input definition.
NB Needs to handle mutiports properly and state.txt modified accordingly
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: cd6582910891120b7db739aa84e4492cd1478c48abcf3e3ad896c7e5696ffbca
User & Date: gawthrop@users.sourceforge.net on 2000-12-28 18:42:18
Other Links: branch diff | manifest | tags
Context
2000-12-28
18:52:25
Updated for new formats check-in: be97ec0abc user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:42:18
New input definition.
NB Needs to handle mutiports properly and state.txt modified accordingly
check-in: cd65829108 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:17:57
To RCS check-in: cf57d50cce user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/examples/Thermal/ThermodynamicCycles/OttoCycle/OttoCycle_input.txt from [34a972c0cb] to [e370e89133].

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
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








+
+
+








-
-
+
+



-
-
+
+



-
-
+
+



-
-
+
+





# Numerical parameter file (OttoCycle_input.txt)
# Generated by MTT at Thu Dec  4 11:17:09 GMT 1997

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.2  2000/12/28 18:15:52  peterg
# %% To RCS
# %%
# %% Revision 1.1  1998/08/10 14:42:13  peterg
# %% Initial revision
# %%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Set the inputs

if ((t>=0.0)&&(t<1.0))		#Compression
  u(1) = 0.0;			# Entropy flow
  u(2) = -0.8;			# Volume rate-of-change
  OttoCycle_Heat = 0.0;		# Entropy flow
  OttoCycle_Work = -0.8;	# Volume rate-of-change
endif;

if ((t>=1.0)&&(t<2.0))		#Heating
  u(1) = 1000;			# Entropy flow
  u(2) = 0.0;			# Volume rate-of-change
  OttoCycle_Heat = 1000;	# Entropy flow
  OttoCycle_Work = 0.0;		# Volume rate-of-change
endif;

if ((t>=2.0)&&(t<3.0))		#Expansion
  u(1) = 0.0;			# Entropy flow
  u(2) = 0.8;			# Volume rate-of-change
  OttoCycle_Heat = 0.0;		# Entropy flow
  OttoCycle_Work = 0.8;		# Volume rate-of-change
endif;

if (t>=3.0)			#Cooling
  u(1) = -1000;			# Entropy flow
  u(2) = 0.0;			# Volume rate-of-change
  OttoCycle_Heat = -1000;	# Entropy flow
  OttoCycle_Work = 0.0;		# Volume rate-of-change
endif;




Modified mttroot/mtt/lib/examples/Thermal/ThermodynamicCycles/OttoCycle/OttoCycle_lbl.txt from [8c8db18e48] to [141af0a637].

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
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








-
-
-
+
+
+
+
+








+
+
+







%SUMMARY OttoCycle: a simple closed thermodynamic cycle
%DESCRIPTION The Otto cycle is a simple closed thermodynamic cycle
%DESCRIPTION with four parts:
%DESCRIPTION o Isentropic compression
%DESCRIPTION o Heating at constant volume
%DESCRIPTION o Isentropic expansion
%DESCRIPTION o Cooling at constant volume
  
%VAR P_0
%VAR T_0
%VAR V_0
%PAR P_0
%PAR T_0
%PAR V_0
%NOTPAR ideal_gas


%% Label file for system OttoCycle (OttoCycle_lbl.txt)

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.3  1998/08/10 16:05:52  peterg
% %% Added VARs and parameters
% %%
% %% Revision 1.2  1998/07/21 15:15:27  peterg
% %% Documentation + new format
% %%
% %% Revision 1.1  1998/07/21 15:12:21  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Added mttroot/mtt/lib/examples/Thermal/ThermodynamicCycles/OttoCycle/OttoCycle_state.txt version [db69719b4e].














1
2
3
4
5
6
7
8
9
10
11
12
13
+
+
+
+
+
+
+
+
+
+
+
+
+
## -*-octave-*- Put Emacs into octave-mode ##
 
## 
## System OttoCycle, representation state, language txt; 
## File OttoCycle_state.txt; 
## Generated by MTT on Thu Dec 28 18:37:57 GMT 2000; 



OttoCycle_cycle_1_entropy_1_mtt3	= 0.0; # Default
OttoCycle_cycle_1_gas_1_c	= 0.0; # Default
OttoCycle_cycle_1_gas_1_c	= 0.0; # Default
OttoCycle_cycle_1_volume_1_mtt3	= 0.0; # Default


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