Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Xcos > Batch functions > scicosim

scicosim

xcos (batch) simulation function

Calling Sequence

[state,t] = scicosim(state,tcur,tf,sim,str,tol)

Module

Description

Simulator for xcos compiled diagram.

Usually scicosim is called by xcos to perform simulation of a diagram.

But scicosim may also be called outside xcos. Typical usage in such a case may be :

For advanced user it is possible to "manually" change some parameters or state values.

[state,t] = scicosim(state,tcur,tf,sim,str,tol)

Arguments

  • state : Scilab tlist containing initial state. Usually generated by xcos Compile. After loading a compiled .cos file, it can be found in %cpr.state.

  • tcur : starting time of simulation. At the beginning it must be zero.

  • tf : final simulation time.

  • sim : Scilab tlist containing compilation results. Usually generated by xcos Compile. After loading a compiled .cos file, it can be found in %cpr.sim.

  • str : 'start' , 'run' or 'finish'. Function must be first called with 'start', then with 'run' one or more times, and finally with 'finish'.

  • tol : vector [atol,rtol,ttol,deltat,realtimescale,solver,hmax] where atol, rtol are respectively the absolute and relative tolerances for ode or dae solver, ttol is the precision on event dates (must be very small), deltat is maximum integration interval for each call to ode solver (sometimes needed to force restaring the call to solver), realtimescale is the correspondance between simulation time and real time (0 means no slowing down), solver is the choice of solver (0: lsodar, 100: daskr), hmax: max step size used by solver. Default: [0.0001,1.000E-06,1.000E-10,100001,0,0]

  • state : state after simulation

  • t: final reached time. Usually tf but not always.

Report an issue
<< scicos_simulate Batch functions steadycos >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:19:42 CEST 2014