mcnp_set_input_file(input_file); //设置输出文件 mcnp_set_output_file(output_file); //运行模拟 mcnp_run_simulation(); //清理资源 mcnp_cleanup(); } intmain(){ constchar*input_file=example.inp; constchar*output_file=example.out
创建一个新的MCNP输入文件,例如example.inp。 在文件中编写MCNP输入,例如: cExampleMCNPinputfile c *Title c cCelldefinitions 10-1 20-2 30-3 c cSurfacedefinitions 100010 200020 300030 c cMaterialdefinitions m111.0 c cSourcedefinitions s110001 c cTallydefinitions f5:n1 c cEndofinput 使用MCNP运行输入...
The input file for the first example is called exp1, etc. You are encouragedto experiment with these files by plotting and modifying them.The next several examples become progressively more difficult and usually take advantage ofwhatyou learned in the preceding ones. Remember that unless altered ...
The figure above shows a simpler example of how to read and display MCNP data in Excel. The MCNP input file for this example is one that is created in the Visual Editor class. The input is run and a mctal file is generated. The mctal file is read in by Excel using the visual basi...
3.4.E Example 3.4 MCNP Input File ___ 49 3.4.F Output___ 49 3.5 MCNP Keff OUTPUT ___ 50 3.6 SUMMARY___ 55 Chapter 4: Simple Repeated Structures___
___ 10 1.2 MCNP INPUT FILE FORMAT ___ 10 1.2.A Title Card___ 10 1.2.B General Card Format___ 11 1.2.C Cell Cards___
• Structure an input program in MCNP • Units in MCNP • How to run MCNP program • Practice the first session • Explain the concept of Monte Carlo? • Why do we have to write a description in the Monte Carlo MCNP code?
Users of this software prepare an "input file" providing all necessary information for program execution. This information includes: (a) source definition鈥攖ype of ionizing radiation, energy spectrum, and geometry of the source; (b) target definition鈥攎aterial constitution, geometry, location in ...
Code snippets are defined for input cards where appropriate. Simply start typing and hit enter to generate the card with default values. Tab-stops are defined for all snippets, so pressing tab will then cycle through keywords on the card for editing. For example, selecting ACT from the suggest...
(runtpe) and particle track (ptrac) files increases the accessibility of the data within. The UM mesh model and elemental edit file has also been cast into a HDF5 formatted file that can be used as input in place of the standard Abaqus file and/or can be used to store the elemental ...