sgreen-outputoutput format of sgreen(1) results

The type of the data that are generated depends on the options used when sgreen(1) is invoked. When invoked with option -a, sgreen(1) outputs Monte Carlo results, either in extended or compact format, whether option -e is used or not.

When invoked with the -s option, sgreen(1) silently creates an HTML file containing a summary of the Green function used. As it conforms to the HTML format found in the HTML specification documents, these will not be described in further detail below. This summary HTML file contains the following sections:

  • List of variables
  • Formula of the Monte Carlo estimate
  • Counts
  • Solids
  • Fluids
  • T boundaries for solids
  • T boundaries for fluids
  • H boundaries for solids
  • H boundaries for fluids
  • F boundaries for solids
  • Solid-Fluid connections
  • Solid-Solid connections
  • Radiative temperatures

In what follows, some lines end with a backslash (\). This is used as a convenience to continue a description next line. However, this trick cannot be used in actual description files and actual description lines must be kept single-line. Text introduced by the sharp character (#) in descriptions is a comment and is not part of the description.

The file format for Monte Carlo results is as follows:

results ::= results-raw⟩ | ⟨results-ext
results-raw ::= estimate-raw
results-ext ::= time
estimate-raw ::= expected-value⟩ ⟨standard-error
estimate-ext ::= expected-valueK +/-standard-error⟩ \
expected-value ::= real
standard-error ::= real
time :: [⟨hhour] [⟨mmin] [⟨ssec] \
[⟨msmsec] [⟨ususec]
h ::= integer # In [1, INF]
m ::= integer # In [1, 59]
s ::= integer # In [1, 59]
ms ::= integer # In [1, 999]
us ::= integer # In [1, 999]
applied-settings ::= string # Verbatim from the settings file


Web Hypertext Application Technology Working Group, HTML Living Standard,

April 26, 2024 UNIX