creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command...
Transcript of creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command...
![Page 1: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/1.jpg)
MCNP6 installation
Creates a Command prompt for running MCNP6
![Page 2: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/2.jpg)
Command Prompt Properties
Target:%HOMEDRIVE%%HOMEPATH%HOMEDRIVE%%HOMEPATH%\mcnp_env.bat
Start in:Default:%HOMEDRIVE%%HOMEPATH%%HOMEDRIVE%%HOMEPATH%Modified to:C:\vis
![Page 3: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/3.jpg)
Command Prompt Target
%HOMEDRIVE% = The disk you installed MCNP6 on.%HOMEPATH% is your log in username.
NOTE:Everyone has a different %HOMEDRIVE%%HOMEPATH%%HOMEDRIVE%%HOMEPATH%
![Page 4: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/4.jpg)
MCNP installationmcnp env.batmcnp_env.bat
@ rem ----- MCNP DOS Autorun batch file -----@ rem ----- This file was created by the MCNP Install script. -----@ rem ----- to set the DOS Environment Correctly with the DOS CMD Autorunfeature. -----@ rem ----- To uninstall simply delete this file. ----------
@ set MCNPPATH=C:\mcnp6\MCNP CODE\bin modifies the path
p _@ PATH %MCNPPATH%;%PATH%
@ set DATAPATH=C:\mcnp6\MCNP_DATASET DISPLAY=:0.0
Sets the DATAPATHSets the DISPLAY
You must to use the “M” command prompt to run the executables and access the cross sections.
![Page 5: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/5.jpg)
The “M” command promptE h diff tEveryone has a different %HOMEDRIVE%%HOMEPATH%The mcnp_env.bat is executed when the “M” _command prompt is selected. This prevents other users on your computer accessing
MCNP, because they need to run in the MCNP6 “M” command d i ll iprompt created on installation.
A generic command prompt will not run MCNP6. Batch files will not work unless run from the “M”
command promptcommand prompt Visual MCNP will no longer be able to find the cross
sections. If you install on a external drive, it may not work if
thi d i t diff t t d thyou move this drive up to a different computer and the Drive letters changes.
By default, every user will run in a different directory.
![Page 6: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/6.jpg)
Start in directory
The default start in directory is:The default start in directory is:%HOMEDRIVE%%HOMEPATH
h hi iChange this to a more convenient location (i.e. C:\MCNP6 or C:\vis).
![Page 7: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/7.jpg)
Change DISPLAY in mcnp_env.bat@ rem ----- MCNP DOS Autorun batch file@ rem ----- MCNP DOS Autorun batch file -----@ rem ----- This file was created by the MCNP Install script. -----@ rem ----- to set the DOS Environment Correctly with the DOS CMD Autorunfeature. -----@ rem ----- To uninstall simply delete this file. -----
@ set MCNPPATH=C:\mcnp6\MCNP_CODE\bin@ PATH %MCNPPATH%;%PATH%
@ set DATAPATH=C:\mcnp6\MCNP_DATASET DISPLAY=localhost:0
The default display will not work in Windows. Edit the mcnp_env.bat file and modify it by inserting localhost removemodify it by inserting localhost, remove the “.0”
![Page 8: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/8.jpg)
MCNP installationVisual MCNP6 implicationsVisual MCNP6 implications
Visual MCNP does not know about the MCNP6 command prompt or the mcnp_env.bat file.
You need to let Visual MCNP6 know the DATAPATH.
The best option is to set the DATAPATH environment variable for your computer and optionally the path for running MCNP6 at a genericfor running MCNP6 at a generic command prompt or in batch files.
![Page 9: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/9.jpg)
Setting the DATAPATH on Windows
On computer, right click and select properties.
![Page 10: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/10.jpg)
Setting the DATAPATH on WindowsSelect:Select:Advanced system settings
![Page 11: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/11.jpg)
Setting the DATAPATH on Windows
Create/Select the DATAPATH Environment Variable.
If it does not exist select NEW.
If it does exist select EDIT.
![Page 12: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/12.jpg)
MCNP installationSetting the DATAPATH on WindowsSetting the DATAPATH on Windows
diEdit or create (New) the DATAPATH variable name
![Page 13: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/13.jpg)
Setting the DATAPATH on Windows
![Page 14: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/14.jpg)
Setting the DATAPATH on Windows
Enter the DATAPATH.
![Page 15: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/15.jpg)
Setting the DATAPATH on Windows
If you do not know your DATAPATH value, type “set DAT” in the “M” d t“M” command prompt.
![Page 16: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/16.jpg)
Modify the Windows PATH
You can also modify the PATH definition so MCNP6 can run
h tanywhere on your computer.
Scroll down to the Path variable.
![Page 17: creates A Command Prompt For Running Mcnp6 · Creates a Command prompt for running MCNP6. Command Prompt Properties Target: %HOMEDRIVE%%HOMEPATH ... Visual MCNP will …](https://reader034.fdocuments.net/reader034/viewer/2022052118/5ae2d8cc7f8b9a7b218c5fbf/html5/thumbnails/17.jpg)
Modify the Windows PATH
Select Edit
Add the path to the MCNP6 binariesp(i.e. C:\mcnp6\mcnp_code\bin)
Refer to the mcnp env bat file forRefer to the mcnp_env.bat file for the path for your setup.
Don’t forget the ;