Convert Component
Note
Source : /src/kicadtoNgspice/Convert.py
- class kicadtoNgspice.Convert.Convert(sourcelisttrack, source_entry_var, schematicInfo, clarg1)
This class has all the necessary function required to convert kicad netlist to ngspice netlist.
- Method List
addDeviceLibrary
addModelParameter
addSourceParameter
addSubcircuit
analysisInsertor
converttosciform
defaultvalue
- addDeviceLibrary(schematicInfo, kicadFile)
This function add the library details to schematicInfo
- addMicrocontrollerParameter(schematicInfo)
This function adds the Microcontroller Model details to schematicInfo
- addModelParameter(schematicInfo)
This function adds the Ngspice Model details to schematicInfo
- addSourceParameter()
This function extracts the source details to schematicInfo
- keywords recognised and parsed -
sine
pulse
pwl
ac
dc
exp
Return updated schematic
- addSubcircuit(schematicInfo, kicadFile)
This function add the subcircuit to schematicInfo
- analysisInsertor(ac_entry_var, dc_entry_var, tran_entry_var, set_checkbox, ac_parameter, dc_parameter, tran_parameter, ac_type, op_check)
This function creates an analysis file in current project
- converttosciform(string_obj)
This function is used for scientific conversion.
- defaultvalue(value)
This function select default value as 0 if Analysis widget do not hold any value.