Bjoern Schliessmann wrote:
class Source(object):
Little bug: The __init__ method of class Source should look like
this.
def __init__(self, ID, neighbour = None):
self.connections = []
self.ID = ID
if neighbour: self.connections.append(neighbour)
Regards,
Björn
--
BOFH excuse
Bjoern Schliessmann wrote:
I suspect that this is a dead end though, because in more complex
designs the creation of circuits becomes cumbersome. Also, for the
system I want to model, the circuits are OOH very complex and OTOH
I don't have access to all circuit diagrams. :( So I think I'll
Arnaud Delobelle wrote:
I'm interested! I was tempted to have a go at it after your
initial post, it sounded like a nice little project :)
Here you go, see below (quite long). It works from Python 2.5
and above and should be straightly executable from command line.
(It'll work with lower
Arnaud Delobelle wrote:
I'm interested! I was tempted to have a go at it after your
initial post, it sounded like a nice little project :)
Please stand by a day. I'm momentarily facing problems with currents
that never end (going in a circle). And my code doesn't look that
beatiful and/or clean
On May 11, 10:02 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] wrote:
[...]
P.S.: If anyone happens to be interested in details, just ask, I'll
post some code.
I'm interested! I was tempted to have a go at it after your initial
post, it sounded like a nice little project :)
--
Arnaud
--
Dave Baum wrote:
Sounds reasonable. Depending on the size of your network, I might
not worry too much about precomputing and saving information.
Thanks. Yes, I'm actually testing it presently without any
optimizations and it runs very well.
If your circuit has loops in it (where the
In article [EMAIL PROTECTED],
Bjoern Schliessmann [EMAIL PROTECTED]
wrote:
Sounds more familiar than the analog approach. Maybe I misunderstood
something ... but I can't transfer my problem to this way of
thinking yet. My biggest problem is the fact that relays aren't
really interested in
Stef Mientki wrote:
Bjoern Schliessmann wrote:
- sources (here begin currents)
- ground (here end currents)
that doesn't bring you anywhere ;-)
It does :)
Current doesn't start or end at some location,
current flows through a closed circuit.
The part I omit is the voltage source. All
Dave Baum wrote:
Are you trying to do logic simulation (digital) or analog circuit
simulation?
Mh, a mix of both :) I want to simulate (in principle simple)
magnetic relay circuits. The only evil tricks that are used are
- shortcuts (e. g. a relay coil is bypassed and thus the relay gets
no
Arnaud Delobelle wrote:
When you turn a switch off, it would send a message to the paths
that depend on it (maybe via the controller?) so that they would
be
deactivated. In turn the lightbulbs on these paths would be
informed that they are no longer active.
When you turn a switch on, it
From: Bjoern Schliessmann
Sounds more familiar than the analog approach. Maybe I misunderstood
something ... but I can't transfer my problem to this way of
thinking yet. My biggest problem is the fact that relays aren't
really interested in voltage, but current.
Also, I find it difficult
In article [EMAIL PROTECTED],
Bjoern Schliessmann [EMAIL PROTECTED]
wrote:
Hello all,
I'm trying to simulate simple electric logic (asynchronous)
circuits. By simple I mean that I only want to know if I
have current or no current (it's quite digital) and the only
elements need to be
On May 7, 7:05 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] wrote:
Hello all,
I'm trying to simulate simple electric logic (asynchronous)
circuits. By simple I mean that I only want to know if I
have current or no current (it's quite digital) and the only
elements need to be (with some
Arnaud Delobelle wrote:
On May 7, 7:05 pm, Bjoern Schliessmann usenet-
There is a master current controller object which tells
the source object to start a current by calling its
neighbour. The calls traverse the network until they reach a
ground object. Specifically, the source passes a
Bjoern Schliessmann [EMAIL PROTECTED] wrote
in message news:[EMAIL PROTECTED]
Hello all,
| I'm trying to simulate simple electric logic (asynchronous)circuits.
[snip]
Some network simulators use connection objects in addition to node objects,
with connections joined to nodes but not the same
hi Bjoern,
Bjoern Schliessmann wrote:
Hello all,
I'm trying to simulate simple electric logic (asynchronous)
circuits. By simple I mean that I only want to know if I
have current or no current (it's quite digital) and the only
elements need to be (with some level of abstraction to my
16 matches
Mail list logo