Ascendians, It works! Thank you very much for your help.
While experimenting with one of the models I was unable to generate a plot with observed variables as the "Plot" window turned out bigger than my screen and it did not have a scroll bar. Maybe this issue could receive your attention when the next release is prepared. Regards, DFE On Wed, Jun 20, 2012 at 6:00 PM, Ben Allan <[email protected]> wrote: > All the good and bad features of the basic ODE design in the present > system are documented in the attachment. > The multi-model use (serial or otherwise) is demonstrated thoroughly > in the model library files > models/dyn_flash.a4l, models/dyn_reactor.a4l, models/dyn_column.a4l, etc. > > The basic idea of any chainable set of dynamic models is that each > model should have a set_ode method. > Writing these methods is simple (but tedious, as John elaborates at > every opportunity). > The examples of handling ode_id (and obs_id) are very thorough. > > ben > > > On Tue, Jun 19, 2012 at 5:48 PM, John Pye <[email protected]> wrote: > > Hi DFE, > > > > Thanks for your question about dynamic modelling with ASCEND. The > 'ode_id' > > syntax in ASCEND is something that also causes me annoyance, so you will > be > > pleased to know that we have a student, Ksenija, working on improved > syntax > > for DAE modelling in ASCEND. > > http://ascend4.org/User:Ksenija > > > > Your immediate option here, as a kludge, would be to create the chained > > first-order models in an array, and then to set the ode_id values using a > > FOR loop inside a method. Alternatively, you could set a constant for > each > > chained submodel (:== operator) from which you could locally calculate > the > > needed ode_id. > > > > Our planned new syntax will eliminate this annoying step, hopefully we > will > > have something better by September or so. As well as the new syntax, we > are > > working to add generalised event handling/reinitialisation for DAE > > simulations, which will be helpful for step and ramp responses, etc. > > Currently, reinitialisations must be handled manually or via methods. > > > > Please let me know if I need to expand on how to go about the suggested > > workaround. > > > > Cheers > > JP > > > > On 19/06/12 17:20, Daikokuten Eudaemon wrote: > > > > Ascendians, > > > > There are two files attached to this message: dfe_dyn_FO.a4c and > > dfe_dyn_FO_FO_InSeries.a4c. The dfe_dyn_FO.a4c models a first order > plant > > whereas the dfe_dyn_FO_FO_InSeries.a4c models two such plants > connected in > > series. What I find repelling about the dfe_dyn_FO_FO_InSeries.a4c is > the > > fact that in the "METHOD on_load" it contains the following two lines of > > code: > > > > B2.dy_dt.ode_id := 2; > > B2.y.ode_id := 2; > > > > I have been unable to integrate dfe_dyn_FO_FO_InSeries.a4c without > these > > two lines cited above. IMHO, this is just a kludge as these two > unfortunate > > lines simply manually coerce the dynamics of each of the two first order > > plants into one system. Is there a more elegant way to connect two (not > to > > mention two hundred twenty two, for example) dfe_dyn_FO.a4c in series? > > > > Regards, > > DFE > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > _______________________________________________ > > Ascend-sim-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/ascend-sim-users > > > > > -- #### Daikokuten Fukurokuju Eudaemon mailto:[email protected]
dfe_dyn_FO.a4c
Description: Binary data
dfe_dyn_FO_many_InSeries.a4c
Description: Binary data
dfe_dyn_FO_ManyMany_InSeries.a4c
Description: Binary data
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Ascend-sim-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ascend-sim-users

