On Fri, Aug 24, 2012 at 01:13:36AM -0700, _griv wrote: > > Does anybody know where in the source code of Gnucap i can find the algorithm > used to convert the netlist inserted into nodes in order to take place the > nodal analysis and LU decomposition for analog simulation.
Hi Chris. it roughly looks like this: while the netlist ist parsed, devices are stashed into a CARDLIST, see u_lang.cc, LANGUAGE::new__instance(...). that cardlist reappears in SIM_DATA::init() (u_sim_data.cc), here "expand", "map_nodes" and "*iwant_matrix" are called on all devices. after this, all devices are present and know where to write their matrix contributions. then look at s__solve.cc, solve(). here, evaluate_models() tells the devices to add their contribution to the matrix & right hand side, solve_equations finally does the LU decomposition and calculates the preimage _sim->_v0. there are more things happening, of course. feel free to ask for details. what are you trying to do? regards felix -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments _______________________________________________ Help-gnucap mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-gnucap
