Overview
Comment:Set open-switch states to zero
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 2865e210b689a7ebc5e962f61132d7637105041abc79cc238154ded734538cad
User & Date: gawthrop@users.sourceforge.net on 1999-04-20 00:58:22
Other Links: branch diff | manifest | tags
Context
1999-04-20
06:13:14
Set open-switch states to zero check-in: d8a4e84ed6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
00:58:22
Set open-switch states to zero check-in: 2865e210b6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
00:55:40
Changed <= to < in switchopen.m
Removed switch.m generation - redundant
check-in: 829afee0b8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/mtt_implicit.m from [a7ae1d8e31] to [7d16dae29a].

1
2
3
4
5
6
7



8
9
10
11


12
13

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

18
19
20







+
+
+




+
+

-
+


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

## ###############################################################
## ## Version control history
## ###############################################################
## ## $Id$
## ## $Log$
## ## Revision 1.1  1999/04/02 06:23:20  peterg
## ## Initial revision
## ##
## ###############################################################

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

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

endfunction


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