multiple node models

38 views
Skip to first unread message

David Silverstein

unread,
Jun 4, 2020, 8:25:21 AM6/4/20
to TVB Users
Hi,

I'd like to try one of two different and fairly simple models on each
node, but simulator.Simulator() only takes one model and not a list.
Perhaps a single model can be extended to include multi-model
functionality. But then that model code would seem to need access to the
current node number or label to determine what initial conditions, state
variables and/or dfun() would apply.  During each timestep, is dfun()
called independently for each node? Is there some way to get the current
node number or label in the model code?

Thanks,
David


WOODMAN Michael

unread,
Jun 4, 2020, 9:19:15 AM6/4/20
to tvb-...@googlegroups.com

hi


We appreciate the scientific use case, and it can be done but haven't had time to implement the infrastructure to make this turn key.  What can be done is to implement yourself another model class which delegates different node derivatives to different submodels.



> During each timestep, is dfun()
> called independently for each node? Is there some way to get the current
> node number or label in the model code?


No, the dfun is evaluated in a vectorized fashion, which means the implementation receives node states for all nodes and returns node diff eq derivatives for all nodes.  It would be possible to evaluate different derivatives for different nodes this way.


cheers,



Marmaduke Woodman, TVB Engineer, INS AMU; +33 7 67 77 84 72


From: tvb-...@googlegroups.com <tvb-...@googlegroups.com> on behalf of David Silverstein <dnsi...@gmail.com>
Sent: Thursday, June 4, 2020 2:25:18 PM
To: TVB Users
Subject: [TVB] multiple node models
 
--
You received this message because you are subscribed to the Google Groups "TVB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvb-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tvb-users/15bf1491-8629-a0aa-8407-9f6b097362a2%40gmail.com.

Julie Courtiol

unread,
Jun 4, 2020, 10:10:40 AM6/4/20
to tvb-...@googlegroups.com
Hi David,

I advise you to have a look at this thread:

This topic was already discussed in the group.

Hope that helps!

Best,
Julie



--
---
Best regards,

Julie


Reply all
Reply to author
Forward
0 new messages