From: U.S.Bhalla <bh...@nc...> - 2014-06-03 04:43:33
|
Dear Saeed, Unclear what you wish to do. There is a set of access functions from Python to retrieve field values. For a compartment on '/model/compt' you would do x = moose.element( '/model/compt' ) print x.Vm if you want to access the value from the Python shell. The snippets in Demos/snippets have many examples. If on the other hand you want to do a low-level transfer of information between MOOSE objects, you can use the message sending mechanism below, but the data will only go to objects which have been connected up through message creation functions. There are examples of this also in the snippets. Best, Upi On Tuesday 03 June 2014 09:35 AM, Saeed Shariati wrote: > Dear all, > > I'm trying to send Vm to the shell and according to the HSolve > implementation, the value sets via the below mechanism: > > moose::Compartment::VmOut()->send(compartmentId.eref(), newVm); > > In the first glance, I thought that just by calling this method, in any > place, we can change internal representation of Vm in the Shell and the > output mechanism can read it via clock mechanim. > > But, for example when I send an specific value via this message, there is > no change in the output in Python. Would you please guide me about the I/O > mechanism in shell and also that command is the only thing that provides > output? > > Thank you, > Saeed > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > moose-devel mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moose-devel |