Overview
Comment:New way of computing Euler
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 76bdb5bcaa932f561849593ba1cb0cf8f4259ddeb5d66e3a3270fa961cfff53d
User & Date: gawthrop@users.sourceforge.net on 1998-08-15 13:48:11
Other Links: branch diff | manifest | tags
Context
1998-08-15
13:48:35
New update methods check-in: 6f4b578e7c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:48:11
New way of computing Euler check-in: 76bdb5bcaa user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:47:36
Initial revision check-in: 34e5e7402c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/mtt_update.m from [37893fe9f3] to [d664b9210d].

1
2


3





4
5
function [x] = mtt_update(dx,x,dt,Nx,METHOD);



  x = x + dx*dt;






endfunction;
|

>
>
|
>
>
>
>
>


1
2
3
4
5
6
7
8
9
10
11
12
function [x] = mtt_update(dx,x,AAx,AA,dt,STEPFACTOR,Nx,METHOD);

  if (METHOD==1)		#Euler
    ddt = dt/STEPFACTOR;
      x = x + dx*ddt;
  elseif ((METHOD==2)||(METHOD==3))#Linear implicit or Implicit
    x = AA\(AAx + dx*dt);
  else
    error("Method %i is not defined", METHOD);
  endif;

endfunction;


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