Skip to content

Commit cfa51c9

Browse files
Fixing headers to render with mcdoc.
1 parent 69bae7d commit cfa51c9

11 files changed

+89
-61
lines changed

mcstas-comps/union/IncoherentPhonon_process.comp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* kabsmin: [A^-1] Lower cut-off for the neutron wave-vector k
4444
* kabsmax: [A^-1] Higher cut-off for the neutron wave-vector k
4545
* interact_fraction: [1] How large a part of the scattering events should use this process 0-1 (sum of all processes in material = 1)
46+
* init: [string] Name of Union_init component (typically "init", default)
4647
*
4748
* CALCULATED PARAMETERS:
4849
*

mcstas-comps/union/NCrystal_process.comp

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
1-
2-
/*******************************************************************************
3-
* Used NCrystal_sample as basis for creating a Union process that can use the *
4-
* NCrystal library. *
5-
* Changes by Mads Bertelsen, 13/8 2020. *
6-
*******************************************************************************/
7-
8-
/******************************************************************************/
9-
/* The original code contained the following license/copyright statement: */
10-
/******************************************************************************/
11-
/* */
12-
/* This file is part of NCrystal (see https://mctools.github.io/ncrystal/) */
13-
/* */
14-
/* Copyright 2015-2019 NCrystal developers */
15-
/* */
16-
/* Licensed under the Apache License, Version 2.0 (the "License"); */
17-
/* you may not use this file except in compliance with the License. */
18-
/* You may obtain a copy of the License at */
19-
/* */
20-
/* http://www.apache.org/licenses/LICENSE-2.0 */
21-
/* */
22-
/* Unless required by applicable law or agreed to in writing, software */
23-
/* distributed under the License is distributed on an "AS IS" BASIS, */
24-
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
25-
/* See the License for the specific language governing permissions and */
26-
/* limitations under the License. */
27-
/* */
28-
/******************************************************************************/
291
/*******************************************************************************
302
*
3+
* Used NCrystal_sample as basis for creating a Union process that can use the
4+
* NCrystal library.
5+
* Changes by Mads Bertelsen, 13/8 2020.
6+
*
7+
* This file is part of NCrystal (see https://mctools.github.io/ncrystal/)
8+
*
9+
* Copyright 2015-2022 NCrystal developers
10+
*
11+
* Licensed under the Apache License, Version 2.0 (the "License");
12+
* you may not use this file except in compliance with the License.
13+
* You may obtain a copy of the License at
14+
*
15+
* http://www.apache.org/licenses/LICENSE-2.0
16+
*
17+
* Unless required by applicable law or agreed to in writing, software
18+
* distributed under the License is distributed on an "AS IS" BASIS,
19+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20+
* See the License for the specific language governing permissions and
21+
* limitations under the License.
3122
* McStas, neutron ray-tracing package
3223
* Copyright(C) 2007 Risoe National Laboratory.
3324
*
@@ -83,6 +74,7 @@
8374
* cfg: [str] NCrystal material configuration string (details <a href="https://github.com/mctools/ncrystal/wiki/Using-NCrystal">on this page</a>).
8475
* packing_factor: [1] Material packing factor
8576
* interact_fraction: [1] How large a part of the scattering events should use this process 0-1 (sum of all processes in material = 1)
77+
* init: [string] Name of Union_init component (typically "init", default)
8678
*
8779
* CALCULATED PARAMETERS:
8880
* NCrystal_storage // Storage used to communicate with the probability and scattering function

mcstas-comps/union/Non_process.comp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@
3737
* INPUT PARAMETERS:
3838
* sigma: [barns] Scattering cross section
3939
* unit_cell_volume: [AA^3] Unit cell volume
40+
* interact_fraction: [1] How large a part of the scattering events should use this process 0-1 (sum of all processes in material = 1)
41+
* init: [string] Name of Union_init component (typically "init", default)
4042
*
4143
* CALCULATED PARAMETERS:
42-
* Non_storage // Important to update this output paramter
44+
* Non_storage
4345
* effective_my_scattering // Variable used in initialize
4446
*
4547
* %L

mcstas-comps/union/Union_abs_logger_1D_time.comp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
* %P
6161
* INPUT PARAMETERS:
6262
* yheight: [m] height of absorption logger
63+
* time_min: [s] time at start of recording
64+
* time_min: [s] time at end of recording
6365
* n: [1] number of bins along y
6466
* target_geometry: [string] Comma separated list of geometry names that will be logged, leave empty for all volumes (even not defined yet)
6567
* filename: [string] Filename of produced data file

mcstas-comps/union/Union_abs_logger_event.comp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
* target_geometry: [string] Comma separated list of geometry names that will be logged, leave empty for all volumes (even not defined yet)
5959
* filename: [string] Filename of produced data file
6060
* order_total: [1] Only log rays that have scattered n times, -1 for all orders
61+
* xwidth: [m] Width in x direction
62+
* yheight: [m] Height in y direction
63+
* zdepth: [m] Depth in z direction
64+
* xbins: [1] Number of bins in x direction
65+
* ybins: [1] Number of bins in y direction
66+
* zbins: [1] Number of bins in z direction
6167
* order_volume: [1] Only log rays that have scattered n times in the same geometry, -1 for all orders
6268
* logger_conditional_extend_index: [1] If a conditional is used with this logger, the result of each conditional calculation can be made available in extend as a array called "logger_conditional_extend", and one would then access logger_conditional_extend[n] if logger_conditional_extend_index is set to n
6369
* init: [string] Name of Union_init component (typically "init", default)

mcstas-comps/union/Union_abs_logger_nD.comp

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,35 @@
6060
* %P
6161
* INPUT PARAMETERS:
6262
* target_geometry: [string] Comma separated list of geometry names that will be logged, leave empty for all volumes (even not defined yet)
63-
* filename: [string] Filename of produced data file
6463
* order_total: [1] Only log rays that have scattered n times, -1 for all orders
6564
* order_volume: [1] Only log rays that have scattered n times in the same geometry, -1 for all orders
6665
* logger_conditional_extend_index: [1] If a conditional is used with this logger, the result of each conditional calculation can be made available in extend as a array called "logger_conditional_extend", and one would then access logger_conditional_extend[n] if logger_conditional_extend_index is set to n
6766
* init: [string] Name of Union_init component (typically "init", default)
67+
* xwidth: [m] Width of detector.
68+
* yheight: [m] Height of detector.
69+
* zdepth: [m] Thickness of detector (z).
70+
* radius: [m] Radius of sphere/banana shape monitor
71+
* options: [str] String that specifies the configuration of the monitor. The general syntax is "[x] options..." (see <b>Descr.</b>).
72+
* xmin: [m] Lower x bound of opening
73+
* xmax: [m] Upper x bound of opening
74+
* ymin: [m] Lower y bound of opening
75+
* ymax: [m] Upper y bound of opening
76+
* zmin: [m] Lower z bound of opening
77+
* zmax: [m] Upper z bound of opening
78+
* filename: [str] Output file name (overrides file=XX option).
79+
* bins: [1] Number of bins to force for all variables. Use 'bins' keyword in 'options' for heterogeneous bins
80+
* min: [u] Minimum range value to force for all variables. Use 'min' or 'limits' keyword in 'options' for other limits
81+
* max: [u] Maximum range value to force for all variables. Use 'max' or 'limits' keyword in 'options' for other limits
82+
* user1: [str] Variable name of USERVAR to be monitored by user1.
83+
* user2: [str] Variable name of USERVAR to be monitored by user2.
84+
* user3: [str] Variable name of USERVAR to be monitored by user3.
85+
* username1: [str] Name assigned to User1
86+
* username2: [str] Name assigned to User2
87+
* username3: [str] Name assigned to User3
88+
* restore_neutron: [0|1] Not functional for Union version
89+
* geometry: [str] Name of an OFF file to specify a complex geometry detector
90+
* nowritefile: [1] Not functional for Union version
91+
6892
*
6993
* OUTPUT PARAMETERS:
7094
*

mcstas-comps/union/Union_box.comp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
* focus_xw: [m] Horiz. dimension of a rectangular area
5858
* focus_xh: [m] Vert. dimension of a rectangular area
5959
* focus_r: [m] Focusing on circle with this radius
60-
* plus_x_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +x face of box
61-
* minus_x_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -x face of box
62-
* plus_y_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +y face of box
63-
* minus_y_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -z face of box
64-
* plus_z_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +z face of box
65-
* minus_z_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -z face of box
66-
* all_face_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all faces above
67-
* cut_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all internal cuts
60+
* plus_x_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +x face of box
61+
* minus_x_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -x face of box
62+
* plus_y_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +y face of box
63+
* minus_y_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -z face of box
64+
* plus_z_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +z face of box
65+
* minus_z_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -z face of box
66+
* all_face_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all faces above
67+
* cut_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all internal cuts
6868
* init: [string] name of Union_init component (typically "init", default)
6969
* CALCULATED PARAMETERS:
7070
*
@@ -78,13 +78,12 @@ DEFINE COMPONENT Union_box
7878
SETTING PARAMETERS(string material_string=0, priority,
7979
xwidth, yheight, zdepth, xwidth2=-1, yheight2=-1,
8080
visualize=1, int target_index=0, target_x=0, target_y=0, target_z=0, focus_aw=0, focus_ah=0, focus_xw=0, focus_xh=0, focus_r=0,
81-
string all_face_surface=0, string cut_surface=0, string plus_z_surface=0, string minus_z_surface=0,
82-
string plus_x_surface=0, string minus_x_surface=0, string plus_y_surface=0, string minus_y_surface=0,
81+
string plus_z_surface=0, string minus_z_surface=0,
82+
string plus_x_surface=0, string minus_x_surface=0,
83+
string plus_y_surface=0, string minus_y_surface=0,
84+
string all_face_surface=0, string cut_surface=0,
8385
p_interact = 0, string mask_string=0, string mask_setting=0, number_of_activations=1, string init="init")
8486

85-
86-
/* Neutron parameters: (x,y,z,vx,vy,vz,t,sx,sy,sz,p) */
87-
8887
SHARE
8988
%{
9089

mcstas-comps/union/Union_cone.comp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
* focus_xw: [m] Horiz. dimension of a rectangular area
5656
* focus_xh: [m] Vert. dimension of a rectangular area
5757
* focus_r: [m] Focusing on circle with this radius
58-
* curved_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to curved wall of cone
59-
* top_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +y top face of cone
60-
* bottom_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -y bottom face of cone
61-
* all_face_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all faces above
62-
* cut_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all internal cuts
58+
* curved_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to curved wall of cone
59+
* top_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +y top face of cone
60+
* bottom_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -y bottom face of cone
61+
* all_face_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all faces above
62+
* cut_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all internal cuts
6363
* init: [string] Name of Union_init component (typically "init", default)
6464
*
6565
* CALCULATED PARAMETERS:
@@ -74,7 +74,7 @@ DEFINE COMPONENT Union_cone
7474
SETTING PARAMETERS(string material_string=0, priority, radius=0,radius_top=0,radius_bottom=0, yheight, visualize=1,
7575
int target_index=0, target_x=0, target_y=0, target_z=0, focus_aw=0, focus_ah=0, focus_xw=0, focus_xh=0, focus_r=0,
7676
p_interact=0, string mask_string=0, string mask_setting=0,number_of_activations=1,
77-
string all_face_surface=0, string cut_surface=0, string curved_surface=0, string top_surface=0, string bottom_surface=0,
77+
string curved_surface=0, string top_surface=0, string bottom_surface=0, string all_face_surface=0, string cut_surface=0,
7878
string init="init")
7979

8080

mcstas-comps/union/Union_cylinder.comp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
* focus_xw: [m] Horiz. dimension of a rectangular area
5353
* focus_xh: [m] Vert. dimension of a rectangular area
5454
* focus_r: [m] Focusing on circle with this radius
55-
* curved_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to curved wall of cylinder
56-
* top_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +y top face of cylinder
57-
* bottom_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -y bottom face of cylinder
58-
* all_face_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all faces above
59-
* cut_surface [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all internal cuts
55+
* curved_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to curved wall of cylinder
56+
* top_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to +y top face of cylinder
57+
* bottom_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to -y bottom face of cylinder
58+
* all_face_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all faces above
59+
* cut_surface: [string] Comma seperated string of Union surface definitions defined prior to this component, applied to all internal cuts
6060
* init: [string] Name of Union_init component (typically "init", default)
6161
*
6262
* CALCULATED PARAMETERS:
@@ -71,7 +71,7 @@ DEFINE COMPONENT Union_cylinder
7171
SETTING PARAMETERS(string material_string=0, priority, radius, yheight, visualize=1,
7272
int target_index=0, target_x=0, target_y=0, target_z=0, focus_aw=0, focus_ah=0, focus_xw=0, focus_xh=0, focus_r=0,
7373
p_interact=0, string mask_string=0, string mask_setting=0, number_of_activations=1,
74-
string all_face_surface=0, string cut_surface=0, string curved_surface=0, string top_surface=0, string bottom_surface=0,
74+
string curved_surface=0, string top_surface=0, string bottom_surface=0, string all_face_surface=0, string cut_surface=0,
7575
string init="init")
7676

7777

mcstas-comps/union/Union_master.comp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@
3333
* INPUT PARAMETERS:
3434
* enable_refraction: [0/1] Toggles refraction effects, simulated for all materials that have refraction parameters set
3535
* enable_reflection: [0/1] Toggles reflection effects, simulated for all materials that have refraction parameters set
36+
* verbal: [0/1] Toogles printing information loaded during initialize
3637
* list_verbal: [0/1] Toogles information of all internal lists in intersection network
3738
* allow_inside_start: [0/1] Set to 1 if rays are expected to start inside a volume in this master
38-
* finally_verbal: [0/1]Toogles information about cleanup performed in finally section
39-
* enable_tagging: [0/1] Enable tagging of ray history (geometry, scattering process)
40-
* history_limit: [1] Limit the number of unique histories that are saved
39+
* finally_verbal: [0/1] Toogles information about cleanup performed in finally section
40+
* enable_tagging: [0/1] Enable tagging of ray history (geometry, scattering process)
41+
* history_limit: [1] Limit the number of unique histories that are saved
4142
* enable_conditionals: [0/1] Use conditionals with this master
4243
* inherit_number_of_scattering_events: [0/1] Inherit the number of scattering events from last master
43-
* init: [string] Name of Union_init component (typically "init", default)
44+
* weight_ratio_limit: [1] Limit on the ratio between initial weight and current, ray absorbed if ratio becomes lower than limit
45+
* init: [string] Name of Union_init component (typically "init", default)
4446
*
4547
* CALCULATED PARAMETERS:
4648
*

0 commit comments

Comments
 (0)