Class CdfRespTTwins
python/examples/advanced/cdfRespT/: the response-time CDF, not the
mean.
Every entry reads its law off getCdfRespT, under the solver the
reference uses -- SolverFluid for the analytical curve and
SolverJMT for the simulated one. The mean and SCV are recomputed from
the curve exactly as the reference does,
sum_j (F_{j+1} - F_j) t_{j+1} and the same sum against
t^2, so the codebases summarize the same object the same way.
WHAT THE PARSER READS is the labelled nested list, not the readable table
beside it: parse_cdf_statistics keys on
Average Response Time from CDF (<solver>): followed by a nested list,
where the label NAMES THE ENGINE -- (LDES), (Fluid) -- and an
unlabelled line is read as FLD. (Simulation) names no engine and
survives only in the three examples that still simulate with JMT, which is
what the parser resolves it to. EVERY station is PRINTED, a Source included,
because the reference loops over getNumberOfStations() and stores a
zero where the law is empty.
WHAT IS RECORDED IS NOT INDEXED THE SAME WAY. The scraper that wrote the
goldens read that printed matrix and, in _store_matrix, DROPPED every
all-zero row before numbering what was left from 1, skipped any individual
zero or NaN cell, and keyed the column by POSITION (Class<j+1>) rather
than by the class's own name. So on an open model the golden's
Station1 is the first station that has a law, not the Source, and a
twin that records the raw station index files the Source's zeros under
Station1 and shifts every real station one place down.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidcdf_respt_populations.py: the same ring at three populations.static voidtut08_respt_cdf.py: one closed ring, its response-time CDF two ways.
-
Method Details
-
tut08ResptCdf
tut08_respt_cdf.py: one closed ring, its response-time CDF two ways.The golden holds the SIMULATED means and SCVs derived from the CDF; the fluid curve beside them is what the reference plots against.
- Throws:
Exception
-
cdfResptClosed
- Throws:
Exception
-
cdfResptClosedThreeclasses
- Throws:
Exception
-
cdfResptDistrib
- Throws:
Exception
-
cdfResptOpenTwoclasses
- Throws:
Exception
-
cdfResptPopulations
cdf_respt_populations.py: the same ring at three populations.The ONE line the parity parser reads here is
FLD getAvgRespT N=<k>: v1 v2 ...(parser.parse_direct_respt), the per-station fluid mean response time. The example's own CDF-derived means are a grid-dependent right-endpoint quadrature and are NOT comparable across codebases, which is why only the direct means are goldened.- Throws:
Exception
-