349

edits

Jump to navigation
Jump to search
##
Ocs package
(edit)

###
Revision as of 00:16, 22 September 2015

1,283 bytes added
, 00:16, 22 September 2015

→CIR file

Line 61:
Line 61:
+
+
+
+

* n_parnames" Is the number of parameter names for the elements of a block, it corresponds to the number of par name entries. If "n_parnames" is 0 the line with the "par_names" is missing.

* n_parnames" Is the number of parameter names for the elements of a block, it corresponds to the number of par name entries. If "n_parnames" is 0 the line with the "par_names" is missing.

* "pv_matrix" Is a list of n_rows x n_par numbers separated by any character the Octave command "s=fscanf(file,%g)" would consider whitespace (including "\n"). Every row (a set of n par contiguous entries) in "pv_matrix" refers to an element of the circuit. The "n_par" numbers in a row represent the values of the parameters to be passed to the function that evaluates that element.

* "pv_matrix" Is a list of n_rows x n_par numbers separated by any character the Octave command "s=fscanf(file,%g)" would consider whitespace (including "\n"). Every row (a set of n par contiguous entries) in "pv_matrix" refers to an element of the circuit. The "n_par" numbers in a row represent the values of the parameters to be passed to the function that evaluates that element.

−* "vnum_matrix" Is a list of "n_rows" x "n_extvar" numbers separated by any character the Octave command "s=fscanf(file,%g)" would consider white-space (including \n).

+* "vnum_matrix" Is a list of "n_rows" x "n_extvar" numbers separated by any character the Octave command "s=fscanf(file,%g)" would consider white-space (including \n). Every row (a set of "n_extvar" contiguous entries) in "vnum_matrix" refers to an element of the circuit. The "n_extvar" numbers in the row represent the global numbering of the element external variables.

−Every row (a set of "n_extvar" contiguous entries) in "vnum_matrix" refers to an element of the circuit. The "n_extvar" numbers in the row represent the global numbering of the element external variables.

+==== NMS files ====

+NMS files are meant to contain the names of the circuit variables, the format of NMS is

+just a list of variable names one on each row preceded by the variable number:

+{{Code|CIR file format |<syntaxhighlight lang="text" style="font-size:13px">

+nms := version id ’\n’ comment∗ line∗ ; line := var number var name ;

+var number := number ;

+var name := string ;

+</syntaxhighlight>}}

+the variable are ordered as follows:

+* first all external variables of all elements in the order given by the global numbering of external variables as explicitly written in the CIR files

+* then the internal variables of the elements in the same order as the corresponding elements appear in the CIR file ( internal variables of non-linear elements first, then those of linear elements)

+Notice that the number of internal variables of each element is not included in the IFF files. This is because elements with a number of internal variables that is huge, that depends on the value of some parameter, or even that changes in time (for example distributed elements treated with a FEM with adaptive meshing, a large linear sub- circuit that is reduce via MOR...) and therefore it is more convenient to compute the number of internal variables when initializing the system.

=== SPICE netlists ===

=== SPICE netlists ===

349

edits

Retrieved from "https://wiki.octave.org/Special:MobileDiff/6635"