Overview
Comment:Redocumented
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 09a67e8576f760cddb0a380dd54a283f6ff1379f4588c182b9cfdb22c4678984
User & Date: gawthrop@users.sourceforge.net on 2000-11-09 16:23:46
Other Links: branch diff | manifest | tags
Context
2000-11-09
17:06:39
Now does euler for cc check-in: 8348c15b39 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:23:46
Redocumented check-in: 09a67e8576 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:09:46
Declare dummy variables (mtt_s1 etc) check-in: bd23fffb08 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/mtt_implicit.m from [2109324cfc] to [d63b98c98d].

1



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















15
16

17
18
19
20
21
22
23

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

-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
+







function [x] = mtt_implicit(x,dx,AA,AAx,dt,Nx,open); # Implicit update
function [x] = mtt_implicit(x,dx,AA,AAx,dt,Nx,open); 
  ## x = mtt_implicit(x,dx,AA,AAx,dt,Nx,open); 
  ## Implicit integration update

## ###############################################################
## ## Version control history
## ###############################################################
## ## $Id$
## ## $Log$
## ## Revision 1.2  1999/04/20 00:58:22  peterg
## ## Set open-switch states to zero
## ##
## ## Revision 1.1  1999/04/02 06:23:20  peterg
## ## Initial revision
## ##
## ###############################################################
  ## ###############################################################
  ## ## Version control history
  ## ###############################################################
  ## ## $Id$
  ## ## $Log$
  ## ## Revision 1.3  1999/04/20 06:14:53  peterg
  ## ## Reorder to make equivalent to .p version
  ## ##
  ## ## Revision 1.2  1999/04/20 00:58:22  peterg
  ## ## Set open-switch states to zero
  ## ##
  ## ## Revision 1.1  1999/04/02 06:23:20  peterg
  ## ## Initial revision
  ## ##
  ## ###############################################################

## Copyright (C) 1999 by P.J. Gawthrop
  ## Copyright (C) 1999 by P.J. Gawthrop

  I = nozeros(!open.*[1:Nx]');	# Indices of states to update
  x(I) = AA(I,I)\(AAx(I) + dx(I)*dt);	# Implicit update (except open switches);
  I_open = nozeros(open.*[1:Nx]'); # Indices of open switches
  x(I_open) = 0.0;		# Open switches have zero state

endfunction


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