File: sim_out.html

package info (click to toggle)
sch-rnd 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,696 kB
  • sloc: ansic: 119,120; awk: 1,502; makefile: 1,421; sh: 1,404; yacc: 905; lex: 172; xml: 160
file content (93 lines) | stat: -rw-r--r-- 4,085 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title> pcb-rnd - list of file formats </title>
	<meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
	<link rel="stylesheet" type="text/css" href="../default.css">
</head>
<body>

<h1> pcb-rnd User Manual: Appendix </h1>
<p>
<h2> SimRun() output file format </h2>
<p>
The file format is a simple line based plain text format with no limit on
line lengths. The file is indented with spaces to indicate the tree
structure. Indentation is stable in the export code, so parsers may depend
on it. However, it's probably more practical to depend on the fact that
the first 1 or 2 words in each line is a string literal that determines the
meaning of the line. Long blocks of embedded data are packed in between
begin/end markers. Begin marks often have human readable explanation at the
end of the line, those shall be ignored by parsers. Other than these, there
are no comments in the file. Empty lines shall be ignored. String literals
are written in <b>bold</b> in this document.
<p>
The first line of the file is <b>Simulation setup:</b> followed by the user
assigned name of the simulation setup being exported. There is exactly one
simulation setup exported per file.
<p>
Then comes one or more output trees. The output starts with an
<b>Output:</b> line conaining the user assigned name of the output.
Each output tree has three subtrees: analysis, presentation and data.
<p>
The analysis subtree is introduced by the <b>analysis</b> line. A config
subtree follows, to describe the analysis configuration. 
<p>
The presentation subtree is introduced by the <b>presentation</b> line.
A config subtree follows, to describe the presentation configuration,
then a props subtree lists the columns of data.
<p>
The props subtree is ontriduced by a <b>props begin</b> line, followed
by 1 or more props, terminated by a <b>props end</b> line. The first prop is
always <b>x:</b> followed by the human readable label of the X axis. The
rest of the props are names of the data columns (y coords).
<p>
A config subtree is specified in between a pair of <b>config begin</b> and a
<b>config end</b> lines and contains zero or more key=value lines.
<p>
The data subtree starts with <b>data begin</b> and ends with <b>data end</b>.
It contains an arbitrary number of ordered data rows in between. Each row has
exactly as many columns (words) as many props got defined for the presentation.
The first column is always the X coordinate on a two-dimensional plot, the
rest of the columns are Y coordinates for each property (trace). Cells
are in the usual numeric format, without unit.


<pre>
<b>Simulation setup:</b> dc transition

 <b>Output:</b> time plot all
  <b>analysis</b>
   <b>config begin</b>
    type=tran_lin
    incr=1ms
    stop=200ms
   <b>config end</b>
  <b>presentation</b>
   <b>config begin</b>
    type=plot
   <b>config end</b>
   <b>props begin</b> (columns)
    <b>x:</b> time [s]
    in
    mid
    out
  <b>props end</b>
  <b>data begin</b> (first column is position on the x axis, the remaining columns are y values)
    0.00000000e+00	0.00000000e+00	0.00000000e+00	0.00000000e+00
    1.00000000e-08	0.00000000e+00	0.00000000e+00	0.00000000e+00
    2.00000000e-08	0.00000000e+00	0.00000000e+00	0.00000000e+00
    4.00000000e-08	0.00000000e+00	0.00000000e+00	0.00000000e+00
    8.00000000e-08	0.00000000e+00	0.00000000e+00	0.00000000e+00
    1.60000000e-07	0.00000000e+00	0.00000000e+00	0.00000000e+00
    3.20000000e-07	0.00000000e+00	0.00000000e+00	0.00000000e+00
    6.40000000e-07	0.00000000e+00	0.00000000e+00	0.00000000e+00
    1.00000000e-06	0.00000000e+00	0.00000000e+00	0.00000000e+00
    1.00512483e-06	2.56241633e-02	1.31319437e-08	3.73883304e-15
    1.01537450e-06	7.68724899e-02	6.56596959e-08	2.61718227e-14
    1.03587383e-06	1.79369143e-01	3.28298121e-07	2.50501430e-13
    1.06134248e-06	3.06712393e-01	9.47287438e-07	1.15292938e-12
    1.11227978e-06	5.61398892e-01	3.15823226e-06	6.96192034e-12
 <b>data end</b>
</pre>