nns.c  1.0.1
Nanowire Network simulator
update.h File Reference

Defines the update_conductance function. More...

#include "device/network.h"
#include "util/components.h"

Go to the source code of this file.

Functions

void update_conductance (network_state ns, connected_component cc)
 Update the weight of the nanowires junctions (i.e., their conductance) according to the current stimulation (i.e., voltage distribution in the network). The only weights updated are the ones belonging to the Connected Component. As the ‘cc’ references the data in ‘ns’, also this latter one is modified by the function. The original model of this function was proposed by Enrique Miranda. More...
 

Detailed Description

Defines the update_conductance function.

This file provides the declaration of the update_conductance function, which updates the conductance (or weights) of the nanowire junctions in a network according to the current voltage stimulation. The update is applied only to junctions belonging to the Connected Component (CC) of the network, and modifies both the network's electrical state and the connected component data structures.

The underlying model for this function was originally proposed by Enrique Miranda.

Function Documentation

◆ update_conductance()

void update_conductance ( network_state  ns,
connected_component  cc 
)

Update the weight of the nanowires junctions (i.e., their conductance) according to the current stimulation (i.e., voltage distribution in the network). The only weights updated are the ones belonging to the Connected Component. As the ‘cc’ references the data in ‘ns’, also this latter one is modified by the function. The original model of this function was proposed by Enrique Miranda.

Parameters
[in,out]nsThe Nanowire Network electrical state that contains the junctions to be updated.
[in,out]ccThe Connected Component specifying the junctions to be update.