Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); GitHub - norberto-schmidt/McCode: The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes. · GitHub
Skip to content

Latest commit

History

8,543 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

/*******************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright 1997-2018, All rights reserved
* Technical University of Denmark, Kongens Lyngby, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Documentation: README
*
* %Identification
* Written by: KN, KL, PEO, EF, PW
* Date: 2008
* Origin: Risoe
* Release: all McStas
*
* This file is part of McStas.
*
* %Link
* <a href="http://www.mcstas.org">Official McStas website</a>
*
* %End
*******************************************************************************/
This is McStas 2.x
Copyright (C) Technical University of Denmark, 1997-2018. All rights reserved.
See the file COPYING for conditions on use.
This software is covered by the GNU General Public License. User instrument
files generated by McStas, output data or papers based on these use is NOT
considered "derived work" but is considered normal usage of the software.
The random number algorithm used by default in McStas is the "Mersenne Twister",
by Makoto Matsumoto and Takuji Nishimura
(see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in
the file lib/mcstas-r.c and is distributed under the terms of the GNU
Library General Public License, see the file lib/LGPL.
If you wish to use McStas in ways that contradict the conditions,
contact us and chances are that we will be able to make a suitable
arrangement.
Installation instructions are in the doc/install_docs directory.
Changes from previous versions are in the file CHANGES. Please read that !
To get started, some example instrument definitions have been supplied
in the mcstas-comps/examples/ directory. To run a simulation, the command `mcrun' is
used. For example:
mcrun ISIS_Prisma2.instr -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44
This will first compile the instrument definition (if necessary) and
subsequently run it. It is also possible to run simulations from the
graphical user interface `mcgui', or to compile and run simulations
manually.
The output files will be put in the current directory by default. The
file tas1-scans in the example directory is a script that will run a
series of simulations that constitute a line-up experiment of the TAS1
spectrometer at Ris.
To fully utilize McStas, you will need a copy of the McStas manual. It
may be found in the lib/doc directory of the distribution.
The manual, along with much other information, is
available from the McStas WWW home page:
http://www.mcstas.org
Contacts for McStas are:
Kim Lefmann <lefmann@nbi.dk> (KL)
Emmanuel Farhi <farhi@ill.fr> (EF)
Peter Kjaer Willendrup <pkwi@fysik.dtu.dk> (PW)
Erik Knudsen <erkn@fysik.dtu.dk> (EK)
Previous authors are:
Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN)
Per-Olof �trand <per-olof.aastrand@risoe.dk> (PEO)
Klaus Lieutenant <lieutena@ill.fr> (KL2)
Peter Christiansen <peter.christiansen@risoe.dk> (PC)
Feel free to direct any comments or questions
to this address. It is an important goal of the McStas project to have
the program used also outside of Ris, so if you have a reasonable
request there is a good chance that we will be willing to help you out.
Some parts of McStas require additional software to be installed in
order to work. The needed software packages are all freely
distributable, and can be found on the McStas WWW home page or on the
McStas CD-Rom distribution.
- The 'mcstas' base program only requires a C compiler, which is usually
provided with most Unix/Linux systems. For Windows, a MinGW C compiler
is shipped with Strawberry-Perl which we recommend.
- The `mcrun' front-end requires Perl or python,
which are available on most Unix-like systems, and may installed for
Windows as well.
- The `mcdisplay' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT
2- Matlab or iFit
3- a VRML/X3D viewer (we recommend InstantPlayer)
- The `mcplot' front-end requires Perl or python, and one
of the following:
1- the PGPLOT graphics Fortran library, and the PgPerl interface
between Perl and PGPLOT, and the PDL scientific data extension
for Perl.
2- Matlab or iFit
3- Gnuplot
4- Python/matplotlib or Python/chaco.
- The `mcgui' front-end requires Perl, the perl/tk
perl extension, and one of the following:,
1- the PGPLOT graphics library, the PgPerl interface between Perl
and PGPLOT, and the PDL scientific data extension for Perl.
2- Matlab or iFit
3- Gnuplot
Information on Perl may be found on
http://language.perl.com/index.html
Information on Tcl/Tk may be found on
http://tcl.tk.com/
and
http://strawberryperl.com/ (includes a C compiler)
Information on perl/tk may be found on
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Information on PGPLOT may be found on
http://astro.caltech.edu/~tjp/pgplot/index.html
Information on PgPerl may be found on
http://www.aao.gov.au/local/www/kgb/pgperl/
Information on PDL may be found on
http://www.aao.gov.au/local/www/kgb/perldl/
Information on Matlab may be found on (commercial)
http://www.mathworks.com
Information on iFit may be found on (free)
http://ifit.mccode.org/

About

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages