关闭

关闭

封号提示

内容

首页 MCNP5PCs.pdf

MCNP5PCs.pdf

MCNP5PCs.pdf

上传者: liwenguo 2011-04-19 评分1 评论0 下载5236w+次 收藏0 阅读量5236w+ 暂无简介 简介 举报

简介:本文档为《MCNP5PCspdf》,可适用于基础科学领域,主题内容包含LAURApprovedforpublicreleasedistributionisunlimitedTitle:Author(s):Submitt符等。

LAURApprovedforpublicreleasedistributionisunlimitedTitle:Author(s):Submittedto:Form()LosAlamosNationalLaboratory,anaffirmativeactionequalopportunityemployer,isoperatedbytheUniversityofCaliforniafortheUSDepartmentofEnergyundercontractWENGByacceptanceofthisarticle,thepublisherrecognizesthattheUSGovernmentretainsanonexclusive,royaltyfreelicensetopublishorreproducethepublishedformofthiscontribution,ortoallowotherstodoso,forUSGovernmentpurposesLosAlamosNationalLaboratoryrequeststhatthepublisheridentifythisarticleasworkperformedundertheauspicesoftheUSDepartmentofEnergyLosAlamosNationalLaboratorystronglysupportsacademicfreedomandaresearcher’srighttopublishasaninstitution,however,theLaboratorydoesnotendorsetheviewpointofapublicationorguaranteeitstechnicalcorrectnessNuclearMathematicalandComputationalSciences:ACenturyinReview,ACenturyAnewGatlinburg,Tennessee,April,,onCDROM,AmericanNuclearSociety,LaGrangePark,IL()MCNPTMIMPROVEMENTSFORWINDOWSPCSTimGoorley,ForrestBrown,andLawrenceJCoxLosAlamosNationalLaboratoryXDivision,X,MSFLosAlamos,NMjgoorleylanlgov,fbrownlanlgov,ljcoxlanlgovABSTRACTWiththereleaseofMCNP,muchmoreemphasishasbeenplacedonimprovingitsfunctionalityonPCsrunningMicrosoftWindowsâ(XNTXP)Enhancedinstallationandbuildsystems,supportformoreFortrancompilers,integrationwithXgraphicsbuildfiles,andMPIandPVMparallelcapabilitieshavebeenimplementedinMCNPforWindowsPCsMCNPcanbeinstalledwithanInstallShieldsetupprograms,similartootherWindowsprograms,foruserswhoonlyneedtoinstallexecutablesanddatalibrariesForthoseuserswhoneedtocompilethesource,theGNUmakeutilitycanusedinconjunctionwiththreesupportedFortrancompilers:CompaqVisualFortran(CVF),LaheyFortran(LF)orAbsoftFortran(AF)Alternatively,CompaqDeveloperStudiocanbeusedtocompileMCNPTheXWindowsplottingcapabilitieshavebeenimproved,andalltheappropriateopensourceXRfilesforcompilingMCNParebundledwiththeMCNPsourcecodeXclientsoftwareisstillneeded,however,todisplaygeometry,crosssectionortallyplotsParallelcapabilitieswhichexistonotherplatformshavebeenextendedtoWindowsPCs,allowinguserstoutilizedualCPUPCs,clustersofhomogeneousWindowsPCs(preferablywithMPI),orheterogeneousclusters(preferablywithPVM)WallclockruntimesshowthatMCNPcompiledwithCVFrunstimesfasterthanwhenitiscompiledwithLForAFWallclockruntimesalsoshowMCNPwithMPIandthebalancekeywordmoreeffectivelyutilizesadualprocessorandasmallheterogeneousclusterWindowsPCthanMCNPwithPVMKeyWords:MCNP,MicrosoftWindows,Parallel,MPI,PVMINTRODUCTIONMCNPVersion,,,ageneralpurposeradiationtransportcomputercode,hasbeenreleasedtotheRadiationSafetyInformationComputationalCenterMCNPisdevelopedandsupportedbytheEolusteamatLosAlamosNationalLaboratory(LANL)tosupportAcceleratedStrategicComputingInitiative(ASCI)projectsWiththisrelease,MCNPhasbeenrewrittenintoFortranandseveralnewfeatureshavebeenaddedThesenewfeaturesincludeanewbuildandinstallationprocess,colorplottingenhancements,Dopplerenergybroadeningforphotons,aneutralparticleradiographyimagingcapability,improvedsourceoptions,timeimportancevariancereduction,supportforparallelcommunicationswithMPI,newrandomnumbergenerators,dynamicmemoryonallplatforms,andanewmeshtallycapabilityMCNPisatrademarkoftheRegentsoftheUniversityofCalifornia,LosAlamosNationalLaboratoryTGoorley,FBrown,LJCoxAmericanNuclearSocietyTopicalMeetinginMathematicsComputations,Gatlinburg,TN,EnhancementsforMicrosoftWindowsâPCshavealsobeenincludedwiththisrelease,sincedesktopPCsincreasetheirpowerandpopularityforscientificcomputingapplicationsInadditiontothenewcodefeatureswhichareavailableonallplatforms,improvementsforWindowsPCsincludetwonewmethodsforinstallingandcompilingthesource,supportforthreecommercialFORTRANcompilers,andeasierbuildingofplottingversionswithincludedXgraphicsfilesSupportforparallelcapabilityusingMessagePassingInterfaceMPI,orParallelVirtualMachinePVM,protocols,originallyonotherplatforms,hasbeenextendedtoWindowsPCsThesenewparallelcapabilitiesallowMCNPtoberunonhomogeneousandheterogeneousclustersandordualprocessorMicrosoftWindowsPCsThesePCenhancementsarethesubjectofthispaperThefollowingtwosectionsdescribehowtoinstallandbuildMCNPonaPCThesubsequenttwosectionsdiscussacomparisonofthewallclockruntimesforMCNPonadualprocessordesktopandanetworkofdifferentCPUspeedlaptopsINSTALLINGMCNPONWINDOWSPCSTherearetwodifferentwaystoinstallMCNPonaPCrunningaWindowsoperatingsystem(NTXPME)ThesimplestmethodistousetheInstallShieldâsetupprograms,similartothatofotherWindowsprogramsThefirstsetupprogramcopiestheMCNPexecutables,sourcecode,andtestproblemstoauserselecteddirectoryandthensetstwoenvironmentalvariablesTheMCNPVisualEditorandMCNPdocumentationarealsoinstalledThesecondsetupprograminstallsthedatalibraries,MAKXSF(acrosssectionlibrarycompressionprogram),thefilesXSDIRandSPECS,andsetsanenvironmentalvariableTheuseristhenaskedtologoutandloginandthenrunthetestproblemstoverifythatMCNPhasbeeninstalledcorrectlyThemainadvantageofusingthismethodisthatnocompilersareneededandnosourcecodeneedstobebuiltThisoptionmeetstheneedsofmostusersAlternativelytheusercancopytheMCNPdirectorytreetothedesiredlocationandusetheinstallscripttobuildMCNP,MAKXSF,andorrunthetestproblemsuiteTheinstallscriptcanbeusedtobuildMCNPonlyiftheappropriatecompilersarealreadyinstalledTheadvantagetothismethodisthattheexecutablescanberebuilttoapplypatchesormodificationstothesourceAfterinstallingtheMCNPexecutable,additionalsoftwaremayneedtobeinstalledandappropriateenvironmentalvariablesmayneedtobesetorchangedtotakeadvantageofXgraphicsorparallelcommunicationscapabilitiesinMCNPXwindowsclientsoftware,notprovidedwithMCNP,needstoberunningtodisplaygeometry,tally,orcrosssectionplotsXWindowssoftwareisdiscussedinsectionofthispaperTousetheparallelversionsoftheMCNPexecutables,parallelcommunicationssoftwarewillneedtobeinstalledpriortorunningwiththiscapability,andpriortobuildingaparallelversionofMCNP,iftheInstallShieldexecutablesarenotusedSpecificinstructionsonhowtoinstallMPIandPVMaregiveninsectionTheenvironmentalvariablesPATHandDATAPATHcanbemodifiedtomakefilemanagementeasierDISPLAYmayneedtobesettousetheplottingcapabilitiesofMCNPMCNPenvironmentalvariablesarediscussedinsectionMCNPIMPROVEMENTSFORWINDOWSPCSAmericanNuclearSocietyTopicalMeetinginMathematicsComputations,Gatlinburg,TN,TheInstallShieldSetupProgramTheInstallShieldprogramsforMCNParesimilartothatofotherwindowsapplicationsDoubleclickingonthesetupfilewillstarttheInstallShieldprogramAfterstartingtheMCNPExecutablesinstaller,theinitialsetupwindowisdisplayed,thenthenexttwowindowspresenttheCopyrightnoticeandSoftwareLicenseAgreement,andrequestuserinformationThefollowingwindowaskswhereMCNPshouldbeinstalledItdoesnotneedtobeinthedefaultdirectoryofProgramFilesLANLMCNPTheinstallationpackagewillthencopytheplottingsequentialandparallelexecutables,MCNPsourcecode,documentation(includingtheMCNPManual),VisualEditor,andproblemtestsuiteintothechosendirectoryThefinalscreenqueriestheuserifitcanchangetheappropriateenvironmentalvariables:PATHandDISPLAYSincePATHisalreadypresent,theMCNPdirectorypathisappendedtothisvariableIftheseenvironmentalvariablesarechanged,theusermustlogoutandthenlogbackin(orrebootforsomeoperatingsystems)beforetheywilltakeeffectTheusershouldbeawarethatifanotherexecutablewiththenameMCNPisalreadypresentinthepath,thefirstexecutableinthepath,iethepreviouslyexistingMCNP,maybeunintentionallyusedTheInstallShieldsetupprogramcannotbeusedtobuildMCNPexecutablesThesecondInstallShieldsetupprograminstallsthedatalibraries,theMAKXSFprogramandtheXSDIRandSPECSfilesTheinstallerqueriestheuserforadirectorytoplacethesefiles,whichmayormaynotbeasubdirectorywhereMCNPwasinstalledAfterthisdirectoryisspecified,theenvironmentalvariableDATAPATHissetAdministrativeprivilegesarealsorequired,aswellaswritepermissiontoatleastGigabytesofharddiskspaceThislargeamountofspaceismostlyusedbytheASCIIformat(type)updatedENDFBVIcrosssectionlibraries,whichcanbecompressedwithMAKXSFandtheSPECSfileto~MegabytesFormoreinformationaboutusingMAKXSF,seesectionXIVofAppendixCintheMCNPManualAftertheInstallShieldprogramsarecompleted,theusershouldrunthetestsuitetoverifythattheexecutablehasbeeninstalledandoperatescorrectlyontheuser’sspecificoperatingsystemandhardwareThistestingprocedurecanbestartedbydoubleclickingontherunprobbaticonlocatedinthedirectoryInstallation,whereMCNPwasinstalledAfterthetestproblemsarerun,filesthatlistthedifferencesbetweenthetallyoroutputfilesgeneratedandtheexpectedresultsaredisplayedThesedifferencefilesshouldbereviewedbytheusertodetermineifthedifferencesaresimpleroundofferrorsorsomethingmoresubstantial,indicatingincompatiblehardwareorsoftwareandthatMCNPmaygiveincorrectresultsTouninstalleithertheMCNPExecutablesorMCNPDatainstallpackages,theusershouldremovethemviatheWindowsControlPanel,withtheAddRemoveProgramsfunctionThiswilldeleteanyfilesthatwereinstalled(filescreatedwhilerunningthetestproblemswillnotbedeleted)andwillmodifytheregistryappropriatelyTheenvironmentalvariableswillnotberemoved,however,butthesecanberemovedmanuallyTheInstallScriptAsecondmethodtoinstallMCNPusesaninstallscript,whichinteractivelyqueriestheuserforvariousbuildoptionsandthenexecutesthemakeutilitytobuildMCNP,MAKSXFandorrunTGoorley,FBrown,LJCoxAmericanNuclearSocietyTopicalMeetinginMathematicsComputations,Gatlinburg,TN,thetestproblemsuiteThevariousbuildoptionsincludewhichFortranandCcompilersshouldbeused,thelocationofappropriateXfiles,andthepathtothexsdirfileThescriptalsogivestheusertheopportunitytoonlygeneratecustommakefilesThesecustommakefilescontainthebuildoptionsselected,andwillbeautomaticallyusedwheneverthemakeutilityisusedAnanswerfile,whichliststheoptionschosenintheinstallscript,isalsocreatedTheanswerfilecanonlybeusedtosetoptionsintheinstallscript,andonlyifitisspecifiedontheinstallcommandlineIfMCNPistobebuilt,orthetestsuiteistoberun,theninstallscriptwillthenexecutegmake,(theGNUversionofmake),andwritemostoftheoutputtothefileinstalllogThisscript,whichusesthegmakeutilitytobuildthecode,canonlybeusedifaUnixbasedshellisinstalledInstallingaUnixshellCygwinIftheinstallscriptorgmakeutilityisused,aUnixcommandshellmustbeinstalledUnixcommandshellsarenotstandardonWindowsoperatingsystemsandmustbeinstalledCygwin,afreewareportofaUnixcommandshellforWindowsPCs,canbeobtainedathttp:wwwcygwincomorhttp:wwwredhatcomappsdownloadThesetupprogramcanbedownloadedorrunfromtheRedhatwebsiteThissetupprogramwillstepusersthroughtheCygwininstallationprocess,allowingthemtoselectwebinstallationordownloadinstallationfilestoalocaldriveThelocationwherethecygwinsoftwareshouldbeinstalled(apathwithoutspacesisrecommended)andatemporarydirectorywherefilescanbedownloadedarespecifiedinthenexttwowindowsAfterselectingawebsitetodownloadorinstallfrom,theuserselectsCygwinpackagestoinstallInadditiontotheCygwinpackagesthatareselectedbydefault,thegccandmakepackages(locatedundertheDeveldirectory)willalsoneedtobeselectedtobuildMCNPwiththemakeutilityTheperlpackage(locatedundertheInterpretersdirectory)isalsorecommended,andisrequirediftheAbsoftorLaheyFortrancompilersaregoingtobeusedtocompileMCNPInstallingPlottingSoftware–XWindowsClientInordertodisplayMCNPplots,anXwindowsclientsoftwarepackageisneededSeveralcommercialXwindowsclientsareavailable:ReflectionX(http:wwwwrqcomproducts),Hummingbird’sExceedNT(http:wwwhummingbirdcomproductsncexceedindexhtml),andStarnet’sXwin(http:wwwstarnetcom)NosinglecommercialproductisrecommendedAfreewareXclientisalsoavailablewithCygwin,XFreeIthasalsobeentestedwithMCNPTheseclientsoftwarepackagesdonotneedtobethedeveloperorprofessionalversions,sincetheXheaderandlibraryfilesareincludedwiththeMCNPdistributionInstallingParallelSoftware–MPICHNTorPVMInordertouseorbuildMCNPwithparallelcapabilities,appropriateparallelcommunicationssoftwaremustbeinstalledEitherMPIorPVMcommunicationsprotocolsaresupportedTobuildaparallelversionofMCNPforWindows,seethesectionMCNPIMPROVEMENTSFORWINDOWSPCSAmericanNuclearSocietyTopicalMeetinginMathematicsComputations,Gatlinburg,TN,TheMPIportforWindowsisMPICHNT,developedatArgonneNationalLaboratory,andcanbedownloadedfromhttp:wwwunixmcsanlgov~ashtonmpichntThiswebsitealsooffersthehelpfulreferencesMPICHNTFAQandMPICHUsersManualIfthereisnoneedtorebuildparallelMCNP,onlytheruntimedllsandmpirunpackagewillbeneeded(mpichntexe)ThispackageusesanInstallShieldsetupprogramwhichrequiresinstallationfromanadministrativeaccountonallPCsintheclusterIfMCNPneedstobebuilt,thenthesourcecode(packagempichntsrcexe)shouldbedownloadedandunzippedaswellTheprogramMPIConfigmustberunoneachcomputerafterMPICHNTinstallationThelocalhostnamemustbeaddedandthesettingsappliedOnceMPICHNTisinstalled,afewadditionalstepsarerequiredMPIenabledMCNPmustbecopiedtothesamedirectoryonallhostsMCNPcanbeexecutedthrougheithertheWindowsMPIRunGUIorcommandlineMPIRunFortheMPIRunGUI,hostsmustbeaddedbyselectingortypingtheirnamesinthehostssectionTheDATAPATHmayneedtobesetundertheadvancedoptionsForthecommandlineMPIRun,thehostsmustbespecifiedbythe–hostsoption,whichcanbeusedtospecifythenumberofprocessesstartedoneachhostTypicallythenumberofprocessesisequaltothenumberofCPUsutilizedplusoneThefirstprocesslistedisthemasterprocess,anddoesnotrunanyhistoriesWhen“balance”isspecifiedattheendofthecommandline,MCNPwillloadbalanceitsMPIprocessesForexample,thecommandtostartthreeMCNPMPIprocessesonCompA(adualCPUmachine)andoneprocessonCompBis:mpirun–hostsCompACompBmcnpmpiinp=testbalanceAlternatively,MCNPcanbebuiltandrunwithPVM,developedatOakRidgeNationalLaboratoryThePVMportforWindowscanbedownloadedfromhttp:wwwcsmornlgov~sscottPVMSoftwareThefileParallelVirtualMachinezipcontainsthesourceandbinariesneededtoinstallandrunPVMonasinglecomputerThisInstallShieldprogrammustberunonallWindowsPCsintheclusterPVMrequiresadditionalcommunicationssoftware,aremoteshell(RSH)clientserverpackage,beforeitwillrunacrossaclusterofWindowsPCsTwocommercialRSHpackagescanbeobtainedfromhttp:wwwwinrshdcomandhttp:wwwatamancomTheRSHpackagemustbeinstalledoneachcomputerinthecluster,andthepermissionsmustbesettoallowRSHorREXECconnectionsforthedesireduseraccountsTheAtamanRSHpackagewassuccessfullytestedSimilarpostinstallationstepsarerequiredtorunthePVMversionofMCNPonWindowsPCsTheMCNPexecutablemustbecopiedintothePVMROOTpvmbinWINdirectoryonallhostsPVMmustbestartedonasinglecomputerbeforeaPVMenabledMCNPcanbeexecutedAfterPVMisstarted,additionalhostscanbeaddedtothePVMcluster,withthe“addhost”commandfromthePVMconsolepromptPVMoperabilitycanbetestedandverifiedwiththePVMexampleprograms,suchashelloMCNPcanthenbestartedfromaseparatecommandshellwiththefollowingcommand:mcnppvminp=testtasksnwherenisthenumberofslaveprocessesThenumberoftasksisusuallythenumberofCPUsintheclusterAnegativenumberenteredforncausesMCNPtoskiptheinitialloadbalancingTGoorley,FBrown,LJCoxAmericanNuclearSocietyTopicalMeetinginMathematicsComputations,Gatlinburg,TN,feature,andisrecommendedforahomogeneousclusterAdditionalinformationonhowtoinstallMPIorPVMcanbeobtainedintheirrespectiveuser’smanualsAdditionalinformationonrunningMCNPinparallelcanbefoundinAppendixC,sectionVIIIoftheMCNPManualSettingEnvironmentalVariablesAfterinstallation,itmaybenecessarytochangeoraddthreeWindowsenvironmentalvariablesTheyaresetdifferentlyforWindowsNTXPME,butforeachoftheseoperatingsystemsthevariablescanbeviewedthesamewayThevalueofanenvironmentalvariablePATH,forexample,canbeprintedinacommandshellwindow(iea“DOSprompt”)withthecommandechoPATHThefirstenvironmentalvariablethatmayneedtobechangedisPATH,asemicolonseparatedlistofdirectoriesusedtofindexecutablesanddynamiclinklibrariesThedirectorywhereMCNPisinstalledshouldbeincluded,sothatMCNPcanbeexecutedfromanydirectory,makingfilemanagementmoreconvenientIfseveralprogramswiththesamenameexistwithinPATH,thentheexecutableinthefirstoccurringdirectorywillbeexecutedAppendingthedirectoryofthenewlyinstalledversionofMCNPtothePATHmaynotchangewhichMCNPisexecutedifanolderversionwiththesamenameisgivenearlierinthedirectorylistingFailuretochangePATHwillmeanthattheMCNPexecutablemustbelocatedinthedirectorywheretheinputfileislocatedTousetheplott

类似资料

该用户的其他资料

MCNP源定义.pdf

MEDICAL PHYSICS CALCULATIONS WITH__ MCNPTM A PRIMER.pdf

实用MCNP3B教程.doc

MCNP源定义.pdf

MEDICAL PHYSICS CALCULATIONS WITH__ MCNPTM A PRIMER.pdf

职业精品

精彩专题

癫痫、晕厥有什么区分?如何急救?

正常人突然晕倒,是癫痫吗?癫痫、晕厥有什么区分?发作如何辨别? 带着这些疑问,一起了解癫痫与晕厥的区别,以及如何急救。

用户评论

0/200
    暂无评论
上传我的资料

精选资料

热门资料排行换一换

  • 国学经典.pdf

  • 费振钟:《江南士风与江苏文学》,…

  • 陈寅恪评传(汪荣祖).pdf

  • 周汝昌:恭王府考.pdf

  • 康德传 .pdf

  • 桑兵:晚清学堂学生与社会变迁.p…

  • 威廉·布莱克与十八世纪九十年代的…

  • 英语词汇的奥秘.pdf

  • 仲景内科学(张谷才).pdf

  • 资料评价:

    / 17
    所需积分:0 立即下载

    意见
    反馈

    返回
    顶部