Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f4aff77
AI-agent driven edits based on this initial prompt:
willend Aug 6, 2026
d40a390
AI-driven manual-edits
willend Aug 6, 2026
6c019b1
Fix to instr .tex snippet function
willend Aug 6, 2026
7d0efa7
Fixes for non-UTF8 locales / raw chars making it to TeX
willend Aug 6, 2026
f8a08d7
lstlisting -> verbatim
willend Aug 6, 2026
2578e21
Alternative to verbatim parm enviroments
willend Aug 6, 2026
542db15
Fix to html-link-rendering
willend Aug 6, 2026
9c600c1
Add dependencies for \htmladdnormallink{}{}
willend Aug 6, 2026
0866712
Add unit-formatting for mcdoc headers
willend Aug 6, 2026
292d9c6
Soltion for AA->\AA in LaTeX
willend Aug 6, 2026
55c0faf
Add utiltity script for exponent correction in comp header unit fields
willend Aug 6, 2026
e66711f
Ran the header fix across mcstas-comps
willend Aug 6, 2026
c1e03f4
Use AA
willend Aug 6, 2026
a19b889
Update for replacement of various Angstrom unit variants -> \AA
willend Aug 6, 2026
2ddde65
Update headers for AA
willend Aug 6, 2026
0e3bdc4
Another formatting fix:
willend Aug 6, 2026
670f5aa
Fixes mcdoc -> mxdoc
willend Aug 6, 2026
d9dee81
Phletora of McXtrace manual edits
willend Aug 6, 2026
bfd804c
Updated McXtrace manuals
willend Aug 6, 2026
0abe505
Updated McStas manuals
willend Aug 6, 2026
ab234a3
Fix to properly include existing _static snippets
willend Aug 9, 2026
ad1bcd8
Align static snippets with generated TeX from the comps
willend Aug 9, 2026
7a94641
Updated draft manuals
willend Aug 9, 2026
325bea5
Add the 'static' snippets for McXtrace
willend Aug 9, 2026
7daff1e
Add _static snippets for McXtrace
willend Aug 9, 2026
b12a86c
Add updated manuals for McXtrace
willend Aug 9, 2026
bc3dfb1
[Ref] move static comparison out of hot TRACE path
g5t Aug 7, 2026
a8cfd25
[Fix] NAME_CURRENT_COMP is not available in an Instrument initializat…
g5t Aug 7, 2026
e55cf02
Ensure to add _static.tex files as subsubsections, remove superfluous…
willend Aug 10, 2026
4488a14
Include _static.tex comp-snippets as subsubsections
willend Aug 10, 2026
c4dbee3
Correct constant-definitions to match those of the actual code.
willend Aug 10, 2026
ee30d75
Add updated PDF dumps
willend Aug 10, 2026
7cad57f
Revision of McXtrace kernelcalls.tex, obsolete component list, revise…
willend Aug 10, 2026
b5036b2
Fix description of MC engine KISS (default) and MT (optional)
willend Aug 10, 2026
bb40c00
Align McXtrace "running" with that of McStas and update RNG section
willend Aug 10, 2026
9e7aa07
Cut away ancient, stale contribution section
willend Aug 10, 2026
c85ec7e
Update standard refs
willend Aug 10, 2026
6211bf2
Kill stale info block from old release
willend Aug 10, 2026
149f7a9
Add updated mcgui graphic
willend Aug 10, 2026
af7f8b6
Update choose_backend figs
willend Aug 10, 2026
2a4da41
Update gui-run figs
willend Aug 10, 2026
1e12b91
Update comp_dialog graphic
willend Aug 10, 2026
30a0a2f
http->https
willend Aug 10, 2026
9735ac7
http->https
willend Aug 10, 2026
2441829
Remove deprecated env var
willend Aug 10, 2026
87c19f4
Fix URL-syntaxing, \verb on openacc keyword
willend Aug 10, 2026
0d62cde
Add updated McStas manuals
willend Aug 10, 2026
403c019
Swap Samples_vanadium for BNL_H8 and update PDFs
willend Aug 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified docpkg/manuals/mcstas/Component_manual.pdf
Binary file not shown.
Binary file modified docpkg/manuals/mcstas/manual.pdf
Binary file not shown.
Binary file modified docpkg/manuals/mcxtrace/Component_manual.pdf
Binary file not shown.
Binary file modified docpkg/manuals/mcxtrace/manual.pdf
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/manuals/mcstas/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ include(CPack)

message( "LaTeX configuration" )
# set(LATEX_OUTPUT_PATH ".")
file(GLOB LIST RELATIVE "${CMAKE_CURRENT_LIST_DIR}" "*.tex" "*.sty" "*.bib" "*.bst" "[m-s]*/*.tex" "[m-s]*/*.parms" "figures/*")
file(GLOB LIST CONFIGURE_DEPENDS RELATIVE "${CMAKE_CURRENT_LIST_DIR}" "*.tex" "*.sty" "*.bib" "*.bst" "[a-z]*/*.tex" "[a-z]*/*.parms" "figures/*")

# TeX snippets
foreach(NAME sources samples optics monitors misc)
foreach(NAME sources samples optics monitors misc union sasmodels contrib obsolete)
# PWFIXME: ONLY SEMI-FUNCTIONAL
add_custom_command(
OUTPUT "${NAME}.done"
Expand All @@ -67,7 +67,7 @@ foreach(NAME sources samples optics monitors misc)
endforeach()

# MD files
foreach(NAME sources samples optics monitors misc)
foreach(NAME sources samples optics monitors misc union sasmodels contrib obsolete)
# PWFIXME: ONLY SENMI-FUNCTIONAL
add_custom_command(
OUTPUT "${NAME}.mddone"
Expand All @@ -88,7 +88,7 @@ add_latex_document(
add_latex_document(
Component_manual.tex
INPUTS ${LIST}
DEPENDS sources.done samples.done optics.done monitors.done misc.done
DEPENDS sources.done samples.done optics.done monitors.done misc.done union.done sasmodels.done contrib.done obsolete.done
BIBFILES "mcstas.bib"
USE_INDEX
FORCE_PDF
Expand Down
4 changes: 4 additions & 0 deletions docs/manuals/mcstas/Component_manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
\include{samples/samples}
\include{monitors/monitors}
\include{misc/misc}
\include{union/union}
\include{sasmodels/sasmodels}
\include{contrib/contrib}
\include{obsolete/obsolete}

\appendix
\include{polarisation}
Expand Down
2 changes: 1 addition & 1 deletion docs/manuals/mcstas/changes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ \chapter{New features in \MCS \version\ }

The complete listing of changes related to the version \MCS \version
is available in CHANGES document of the relevant download folder at
\url{http://download.mcstas.org/}.
\url{https://download.mcstas.org/}.
41 changes: 23 additions & 18 deletions docs/manuals/mcstas/comp.tex
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,12 @@ \section{About data files}\index{Data files}\index{Library!read\_table-lib (Read

\section{Component source code}
Source code for all components may be found in the \verb+MCSTAS+ library
subdirectory of the McStas installation;
the default is \verb+/usr/local/lib/mcstas/+
on Unix-like systems and \verb+C:\mcstas\lib+ on Windows systems, but it may be
changed using the \verb+MCSTAS+ environment variable.
subdirectory of the McStas installation; the recommended installation route
is via the \texttt{conda-forge} channel (see the User Manual, section on
installation), in which case the library lives under the conda environment's
resource tree. The library location may be queried with
\verb+mcrun --showcfg=resourcedir+, or overridden using the
\verb+MCSTAS+ environment variable.
\index{Environment variable!MCSTAS}

In case users only require to add new features, preserving the existing features of a component,
Expand All @@ -256,11 +258,11 @@ \section{Documentation}
\end{lstlisting}
as well as the documentation of specific components, e.g with:
\begin{lstlisting}
mcdoc --text <name>
mcdoc <file.comp>
mcdoc searchterm
mcdoc file.comp
\end{lstlisting}
The first line will search for all components matching the \textit{name},
and display their help section as text. For instance, \verb+mcdoc .laz+ will list all available Lazy data files, whereas \verb+mcdoc --text Monitor+ will list most Monitors.
The first line will search for all components matching \textit{searchterm},
and open (or list, if \texttt{BROWSER} is unset) their documentation. For instance, \verb+mcdoc laz+ will list all available Lazy data files, whereas \verb+mcdoc Monitor+ will list most Monitors.
The second example will display the help corresponding to
the \textit{file.comp} component, using your
BROWSER\index{Environment variable!BROWSER} setting, or as text if unset.
Expand All @@ -270,16 +272,19 @@ \section{Documentation}

\section{Component validation}

Some components were checked for release 1.9: the Fermi choppers, the velocity selectors, 2 of the guide components and Source\_gen. The results are sumarized in a talk available online (\verb+http://www.ill.fr/tas/mcstas/doc/ValMcStas.pdf+).

Velocity selector and Fermi chopper were treated as black boxes and the resulting line shapes cross-checked against analytical functions for some cases.
The component 'Selector' showed no dependence on the distance between guide and selector axe. This is corrected at the moment. Apart from that the component yielded correct results.
That was different with the Fermi chopper components. The component 'Chopper\_Fermi', which has been part of the \MCS distribution for a long time, gave wrong results and was removed from the package. The new 'Vitess\_ChopperFermi' (transferred from the VITESS package) showed mainly correct behaviour. Little bugs were corrected after the first tests. At the moment, there is only the problem left that it underestimates the influence of a shadowing cylinder. With the contributed 'FermiChopper' component, there were also minor problems, which are all corrected in the meantime.

For the guides, several trajectories through different kinds of guides (straight, convergent, divergent) were calculated analytically and positions, directions and losses of reflections compared to the values calculated in the components. This was done for 'Guide' and 'Guide\_gravity'; in the latter case calculations were performed with and without gravity. Additionally a cross-check against the VITESS guide module was performed. Waviness, chamfers and channels were not checked.
After correction of a bug in 'Guide\_gravity', both components worked perfectly (within the conditions tested).

'Source\_gen' was cross-checked against the VITESS source module for the case of 3 Maxwellians describing the moderator characteristic and typical sizes the guide and its distance to the moderator. It showed the same line shape as a functions of wavelength and divergence and the same absolute values.
Components are continuously exercised by the \texttt{mctest}/\texttt{mcviewtest}
regression suite (see the User Manual, section~\ref{s:mctest}), which
compiles and runs the example instrument library and compares results
across platforms, CPU vs.\ GPU, and \MCS versions using \texttt{mcplotdiff-html}.
Some components additionally underwent dedicated, published validation
against analytical models and/or measurements; velocity selectors and Fermi
choppers were treated as black boxes and their line shapes cross-checked
against analytical functions, and \texttt{Guide}/\texttt{Guide\_gravity}
trajectories were checked (with and without gravity) against
analytically-computed reflection positions, directions and losses.
\texttt{Source\_gen} was cross-checked against an independent source module
for a 3-Maxwellian moderator model, in wavelength/divergence line shape and
absolute flux.

\section{Disclaimer, bugs}\index{Bugs}

Expand Down
Loading
Loading