wavewatch3.v4.18安裝使用教學(xué)教程(浙江海洋大學(xué)修改于2016年度0322)_第1頁(yè)
wavewatch3.v4.18安裝使用教學(xué)教程(浙江海洋大學(xué)修改于2016年度0322)_第2頁(yè)
wavewatch3.v4.18安裝使用教學(xué)教程(浙江海洋大學(xué)修改于2016年度0322)_第3頁(yè)
wavewatch3.v4.18安裝使用教學(xué)教程(浙江海洋大學(xué)修改于2016年度0322)_第4頁(yè)
wavewatch3.v4.18安裝使用教學(xué)教程(浙江海洋大學(xué)修改于2016年度0322)_第5頁(yè)
已閱讀5頁(yè),還剩95頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

.Wavewatch3.v4.18在服務(wù)器上安裝使用教程浙江海洋學(xué)院盛葉新鑒于wavewatch3.v4.18的安裝僅限于一本全英文的mannul手冊(cè),網(wǎng)絡(luò)上沒(méi)有任何有幫助的安裝教程以及使用教程。因此,我于2015年10月在浙江海洋大學(xué)學(xué)習(xí)wavewatch3.v4.18時(shí),在中國(guó)海大的兩位師兄的幫助下成功安裝了模式,僅針對(duì)我們學(xué)校的某個(gè)服務(wù)器安裝的一些問(wèn)題和步驟進(jìn)行下列總結(jié)。一、環(huán)境變量設(shè)置安裝ww3之前需要加載編譯器并設(shè)置環(huán)境變量,不同的服務(wù)器有不同的加載方式,一般情況下使用modulelist查看當(dāng)前已加載編譯器,moduleavail查看可加載編譯器,moduleloadname加載name編譯器。安裝ww3需要加載ifort、icc和openmpi-Intel(注意:使用openmpi-Intel是因?yàn)槲覀兊募荷习惭b的是這個(gè),其他mpi有關(guān)的編譯器沒(méi)有使用過(guò),所以不太清楚)三個(gè)編譯器。但我使用的服務(wù)器上不可使用module命令(具體原因和服務(wù)器配置有關(guān),我沒(méi)有權(quán)限深究,此處不做詳解),因此我們?cè)O(shè)置環(huán)境變量文件.bashrc文件。在修改之前,使用whichifort、whichicc和whichmpirun查看三個(gè)編譯的安裝目錄。根目錄下輸入vi.bashrc添加如下代碼:exportPATH=$PATH:/(使用查找出來(lái)的ifort和icc安裝目錄)/bin/(可能發(fā)生ifort和icc是同一個(gè)目錄,此處填寫(xiě)該目錄)exportPATH=$PATH:/(使用查找出來(lái)的mpi安裝目錄)/binexportLD_LIBRARY_PATH=/(使用查找出來(lái)的mpi安裝目錄)/lib/:$LD_LIBRARY_PATH此時(shí)環(huán)境變量則修改完畢,記得使用source.bashrc加載設(shè)置好的環(huán)境變量,然后繼續(xù)完成安裝。二、ww3安裝和編譯1.安裝個(gè)人建議直接上傳ww3的壓縮文件,這樣可以節(jié)約時(shí)間,也可先在windows下解壓后在上傳,最好是建立一個(gè)新的文件夾,這樣不會(huì)發(fā)生文件找不到的情況。我提供的是4.18版本,文件夾示例:/public/home/shao002113/wwatch3.v4.18上傳完畢后,按如下步驟進(jìn)行:(注意空格)tarxvfwwatch3.v4.18-C/public/home/shao002113/wwatch3.v4.18cdwwatch3.v4.18chmod+xinstall_ww3_tar./install_ww3_tar接下來(lái)進(jìn)入安裝了,他會(huì)問(wèn)你一些問(wèn)題,讓你選擇(y/n)的時(shí)候基本都是y。有一個(gè)是選擇安裝模式,一個(gè)是L一個(gè)是G,安裝選擇G,然后有些設(shè)置需要修改,如下:Printerforlistings[printer]:printerCompilerforaux.[f77]:ifortCompilerforaux.[cc]:iccScratchspace[/tmp]:這是一個(gè)關(guān)于tmp文件夾的設(shè)置,第一次安裝不用修改Savesourcecodefiles:yesSavelistingfiles:yes之后出現(xiàn)的一律選擇yes,會(huì)顯示安裝結(jié)束end。2.添加環(huán)境變量在根目錄下輸入命令:vi.bashrc在文本中添加:exportPATH=$PATH:/(ww3完整安裝目錄)/binexportPATH=$PATH:/(ww3完整安裝目錄)/exe保存并退出。根目錄下輸入命令:source.bashrc(這是修改.bashrc后的必要步驟)。驗(yàn)證路徑是否添加成功,根目錄下輸入whichw3_make.若成功修改,則會(huì)出現(xiàn)ww3完整目錄。3.修改comp、link、switch進(jìn)入bin文件夾,將comp.Intel和link.Intel

復(fù)制成comp和link即:cpcomp.Intelcompcplink.Intellink使用vi編輯器修改comp和link。修改如下:comp中(大約96行處)修改成如下if["$mpi_mod"='yes']thencomp=mpiifortwhichmpiifort1>/dev/null2>/dev/nullOK=$?if[$OK!=0]thencomp=mpif90fielsecomp=ifortfilink中(大約104行)修改成如下if["$mpi_mod"='yes']thencomp=mpiifortwhichmpiifort1>/dev/null2>/dev/nullOK=$?if[$OK!=0]thencomp='mpif90'fiopt="-O3-o$prog"elsecomp=ifortfiswitch中把SHRD改為MPIDIST(注意此處空格,否則會(huì)出錯(cuò))。三個(gè)文件修改完畢后給予執(zhí)行權(quán)限。chmod+ucomplinkswitch4.運(yùn)行make_MPI直接輸入命令make_MPI即可。如果沒(méi)有錯(cuò)誤顯示則編譯成功,一般會(huì)出現(xiàn)兩個(gè)錯(cuò)誤,但不影響模式的運(yùn)行計(jì)算,到此ww3安裝編譯成功。三、數(shù)據(jù)提取WW3對(duì)于輸入數(shù)據(jù)文件的類(lèi)型沒(méi)有固定要求,本人常用的是風(fēng)場(chǎng)為dat文件,地形為ASCII文件。那么輸入數(shù)據(jù)的格式有著一定的要求。對(duì)于風(fēng)場(chǎng)來(lái)說(shuō),數(shù)據(jù)排列方式如下:第一行是時(shí)間,如2015年6月1日0點(diǎn)0時(shí)0分,則寫(xiě)為:20150601000000(注意年月日和時(shí)分秒之間存在空格)。接下來(lái)是兩個(gè)矩陣,第一個(gè)是風(fēng)場(chǎng)u,第二個(gè)是風(fēng)場(chǎng)v。接下來(lái)是地形,說(shuō)是地形,其實(shí)就是水深,大于等于0的設(shè)為無(wú)效值就好。當(dāng)?shù)匦写鏋锳SCII文件時(shí),務(wù)必知道其繪出的地形圖是什么形式的,在后面的修改腳本出需要用到。四、腳本修改1.ww3_grid.inp$--------------------------------------------------------------------$$WAVEWATCHIIIGridpreprocessorinputfile$$--------------------------------------------------------------------$$Gridname(C*30,inquotes)$'TESTGRID(GULFOFNOWHERE)'(此處是使用的網(wǎng)格名稱(chēng))$ $Frequencyincrementfactorandfirstfrequency(Hz)----------------$$numberoffrequencies(wavenumbers)anddirections,relativeoffset$offirstdirectionintermsofthedirectionalincrement[-0.5,0.5].$Inversions1.18and2.22ofthemodelthisvaluewasbydefiniton0,$itisaddedtomitigatetheGSEforafirstorderscheme.Notethat$thisfactorisIGNOREDintheprintplotsinww3_outp.$1.10.0411825240.(頻率間隔初始頻率波速波向)$$Setmodelflags----------------------------------------------------$$-FLDRYDryrun(input/outputonly,nocalculation).$-FLCX,FLCYActivateXandYcomponentofpropagation.$-FLCTH,FLCKActivatedirectionandwavenumbershifts.$-FLSOUActivatesourceterms.$FTTTFT(上方六項(xiàng)的開(kāi)關(guān))$$Settimesteps-----------------------------------------------------$$-Timestepinformation(thisinformationisalwaysread)$maximumglobaltimestep,maximumCFLtimestepforx-yand$k-theta,minimumsourcetermtimestep(allinseconds).$900.950.900.300.(第一個(gè)數(shù)和第三個(gè)數(shù)一般是第二個(gè)數(shù)的兩倍,第二個(gè)數(shù)使用程序計(jì)算,最后一個(gè)一般為30)$$Startofnamelistinputsection------------------------------------$$StartingwithWAVEWATCHIIIversion2.00,thetunableparameters$forsourceterms,propagationschemes,andnumericsarereadusing$namelists.Anynamelistfoundinthefolowingsectionsuptothe$end-of-sectionidentifierstring(seebelow)istemporarilywritten$toww3_grid.scratch,andreadfromthereifnecessary.Namelists$notneededforthegivenswitchsettingswillbeskipped$automatically,andtheorderofthenamelistsisimmaterial.$Asanexample,namelistinputtochangeSWELLFandZWNDinthe$TolmanandChalikovinputwouldbe$$&SIN2SWELLF=0.1,ZWND=15./(此處均屬于對(duì)源函數(shù)的調(diào)整,手冊(cè)有相關(guān)介紹)$$Defineconstantsinsourceterms-----------------------------------$$$Stresses------------------------------$TC1996withcap:NamelistFLX3$CDMAX:MaximumallowedCD(cap)$CTYPE:Captype:$0:Discontinuous(default).$1:Hyperbolictangent.$Hwang2011:NamelistFLX4$CDFAC:re-scalingofdrag$$Linearinput----------------------------$CavaleriandM-R:NamelistSLN1$CLIN:Proportionalityconstant.$RFPM:FactorforfPMinfilter.$RFHF:Factorforfhinfilter.$$Exponentialinput-------------------------$WAM-3:NamelistSIN1$CINP:Proportionalityconstant.$$TolmanandChalikov:NamelistSIN2$ZWND:Heightofwind(m).$SWELLF:swellfactorin(n.nn).$STABSH,STABOF,CNEG,CPOS,FNEG:$c0,ST0,c1,c2andf1in.(n.nn)$through(2.65)fordefinitionof$effectivewindspeed(!/STAB2).$WAM4andvariants:NamelistSIN3$ZWND:Heightofwind(m).$ALPHA0:minimumvalueofCharnockcoefficient$Z0MAX:maximumvalueofair-sideroughnessz0$BETAMAX:maximumvalueofwind-wavecoupling$SINTHP:powerofcosineinwindinput$ZALP:waveageshifttoaccountforgustiness$TAUWSHELTER:shelteringofshortwavestoreduceu_star$SWELLFPAR:choiceofswellattenuationformulation$(1:TC1996,3:ACC2008)$SWELLF:swellattenuationfactor$ExtraparametersforSWELLFPAR=3only$SWELLF2,SWELLF3:swellattenuationfactors$SWELLF4:ThresholdReynoldsnumberforACC2008$SWELLF5:Relativeviscousdecaybelowthreshold$Z0RAT:roughnessforoscil.flow/meanflow$BYDRZinput:NamelistSIN6$SINA0:factorfornegativeinput$SINU10:windspeedscalingoption$$Nonlinearinteractions-----------------------$DiscreteI.A.:NamelistSNL1$LAMBDA:Lambdainsourceterm.$NLPROP:Cinsourcterm.NOTE:default$valuedependsonothersource$termsselected.$KDCONV:FactorbeforekdinEq.(n.nn).$KDMIN,SNLCS1,SNLCS2,SNLCS3:$Minimumkd,andconstantsc1-3$indepthscalingfunction.$Exactinteractions:NamelistSNL2$IQTYPE:Typeofdepthtreatment$1:Deepwater$2:Deepwater/WAMscaling$3:Shallowwater$TAILNL:Parametrictailpower.$NDEPTH:Numberofdepthsinforwhich$integrationspaceisestablished.$UsedforIQTYPE=3only$NamelistANL2$DEPTHS:ArraywithdepthsforNDEPTH=3$Gen.MultipleDIA:NamelistSNL3$NQDEF:Numberofquadruplets.$MSC:Scalingconstant'm'.$NSC:Scalingconstant'N'.$KDFD:Deepwaterrelativefilterdepth,$KDFS:Shallowwaterrelativefilterdepth,$NamelistANL3$QPARMS:5xNQDEFparamatersdescribingthe$quadruplets,repeatingLAMBDA,MU,DT12.$CdeepandCshal.Seeexamplesbelow.$$TraditionalDIAsetup(default):$$&SNL3NQDEF=1,MSC=0.00,NSC=-3.50/$&ANL3QPARMS=0.250,0.000,-1.0,0.1000E+08,0.0000E+00/$$GMD3from2010report(G13dinlaterpaper):$$&SNL3NQDEF=3,MSC=0.00,NSC=-3.50/$&ANL3QPARMS=0.126,0.000,-1.0,0.4790E+08,0.0000E+00,$0.237,0.000,-1.0,0.2200E+08,0.0000E+00,$0.319,0.000,-1.0,0.1110E+08,0.0000E+00/$$G35dfrom2010report:$$&SNL3NQDEF=5,MSC=0.00,NSC=-3.50/$&ANL3QPARMS=0.066,0.018,21.4,0.170E+09,0.000E+00,$0.127,0.069,19.6,0.127E+09,0.000E+00,$0.228,0.065,2.0,0.443E+08,0.000E+00,$0.295,0.196,40.5,0.210E+08,0.000E+00,$0.369,0.226,11.5,0.118E+08,0.000E+00/$$NonlinearfilterbasedonDIA-------------------$NamelistSNLS$A34:Relativeoffsetinquadruplet$FHFC:Proportionalityconstants.$DMN:Maximumrelativechange.$FC1-3:Constantsinfrequencyfilter.$$Dissipation----------------------------$WAM-3:NamelistSDS1$CDIS,APM:Asinsourceterm.$$TolmanandChalikov:NamelistSDS2$SDSA0,SDSA1,SDSA2,SDSB0,SDSB1,PHIMIN:$Constantsa0,a1,a2,b0,b1and$PHImin.$$WAM4andvariants:NamelistSDS3$SDSC1:WAM4Cdscoeffient$MNMEANP,WNMEANPTAIL:powerofwavenumber$formeandefinitionsinSdsandtail$SDSDELTA1,SDSDELTA2:relativeweights$ofkandk^2partsofWAM4dissipation$SDSLF,SDSHF:coefficientforactivationof$WAM4dissipationforunsaturated(SDSLF)and$saturated(SDSHF)partsofthespectrum$SDSC2:Saturationdissipationcoefficient$SDSC4:ValueofB0=B/BrforwichSdsiszero$SDSBR:ThresholdBrforsaturation$SDSP:powerof(B/Br-B0)inSds$SDSBR2:ThresholdBr2fortheseparationof$WAM4dissipationinsaturatedandnon-saturated$SDSC5:coefficientforturbulencedissipation$SDSC6:WeightfortheistropicpartofSds_SAT$SDSDTH:Angularhalf-widthforintegrationofB$$BYDRZ:NamelistSDS6$SDSET:Selectthresholdnormalizationspectra$SDSA1,SDSA2,SDSP1,SDSP2:$CoefficientsfordissipationtermsT1andT2$:NamelistSWL6$SWLB1:Coefficientforswelldissipation$$Bottomfriction--------------------------$JONSWAP:NamelistSBT1$GAMMA:Asitsays.$$$Surfbreaking---------------------------$BattjesandJanssen:NamelistSDB1$BJALFA:Dissipationconstant(default=1)$BJGAM:Breakingthreshold(default=0.73)$BJFLAG:TRUE-UseHmax/dratioonly(default)$FALSE-UseHmax/dinMicheformulation$$Triadnonlinearinteractions--------------------$LumpedTriadInteraction(LTA):NamelistSTR1(Tobeimplemented)$PTRIAD1:Proportionalitycoefficient(default0.05)$PTRIAD2:MultipleofTm01uptowhichinteraction$iscomputed(2.5)$PTRIAD3:Ursellupperlimitforcomputing$interactions(notused,default10.)$PTRIAD4:Shapeparameterforbiphase$computation(0.2)$PTRIAD5:Ursellnumbertresholdforcomputing$interactions(0.01)$$Shorelinereflections------------------------$ref.parameters:NamelistREF1$REFCOAST:Reflectioncoefficientatshoreline$REFFREQ:Activationoffreq-dependentref.$REFMAP:Scalefactorforbottomslopemap$REFRMAX:maximumref.coeffient(default0.8)$REFFREQPOW:poweroffrequency$REFICEBERG:Reflectioncoefficientforicebergs$REFSUBGRID:Reflectioncoefficientforislands$REFCOSP_STRAIGHT:powerofcosineusedfor$straightshoreline$$Bound2ndorderspectrumandfreeIG-----------------$IG1parameters:NamelistIG1$IGMETHOD:1:Hasselmann,2:Krasitskii-Janssen$IGADDOUTP:activationofboundwavecorrection$inww3_outp/ww3_ounp$IGSOURCE:1:usesboundwaves,2:empirical$IGSTERMS:>0:nosourceterminIGband$IGMAXFREQ:maximumfrequencyofIGband$IGEMPIRICAL:constantinempiricalfreeIGsource$IGSWELLMAX:activatesfreeIGsourcesforallfreq.$$Propagationschemes------------------------------------------------$$SMCgridpropagation:NamelistPSMC$CFLTM:MaximumCFLnumberforpropagation.$DTIME:Swellage(s)fordiffusionterm.$LATMIN:Maximumlatitude(deg)forGCT.$RFMAXD:Maximumrefractionturning(deg).$&PSMCDTIME=39600.0,LATMIN=85.0,RFMAXD=36.0/$$Propagationschemes------------------------------------------------$$Firstorder:NamelistPRO1$CFLTM:MaximumCFLnumberforrefraction.$$UQ/UNOwithdiffusion:NamelistPRO2$CFLTM:MaximumCFLnumberforrefraction.$DTIME:Swellage(s)ingardensprinkler$correction.If0.,alldiffusion$switchedoff.Ifsmallnon-zero$(DEFAULT!!!)onlywavegrowth$diffusion.$LATMIN:Maximumlatitudeusedincalc.of$strengthofdiffusionforprop.$$UQ/UNOwithaveraging:NamelistPRO3$CFLTM:MaximumCFLnumberforrefraction.$WDTHCG:Tuningfactorpropag.direction.$WDTHTH:Tuningfactornormaldirection.$$NotethatUQandUNOschemeshavenotunableparameters.$Alltuneableparametersareassociatedwiththerefraction$limitationandtheGSEalleviation.$$Unstructuredgrids------------------------------------------------$$UNSTparameters:NamelistUNST$UGOBCAUTO:AutomaticdetectionofOBCpoints$UGOBCDEPTH:Threshold(<0)depthforOBCpoints$EXPFSN:ActivationofNscheme$EXPFSPSI:ActivationofPSIscheme$EXPFSFCT:ActivationofFCTscheme$IMPFSNIMP:ActivationofNimplicitscheme$$SMCgridpropagation:NamelistPSMC$CFLTM:MaximumCFLnumberforpropagation.$DTIME:Swellage(s)fordiffusionterm.$LATMIN:Maximumlatitude(deg)forGCT.$RFMAXD:Maximumrefractionturning(deg).$&PSMCDTIME=39600.0,LATMIN=85.0,RFMAXD=36.0/$$Miscellaneous------------------------------------------------------$$Misc.parameters:NamelistMISC$CICE0:Iceconcentrationcut-off.$CICEN:Iceconcentrationcut-off.$PMOVE:PowerpinGSEaleviationfor$movinggridsinEq.(D.4).$XSEED:Xseedinseedingalg.(!/SEED).$FLAGTR:Indicatingpresenceandtypeof$subgridinformation:$0:Nosubgridinformation.$1:Transparanciesatcellboun-$dariesbetweengridpoints.$2:Transp.atcellcenters.$3:Like1withcont.ice.$4:Like2withcont.ice.$XP,XR,XFILT$Xp,XrandXfforthedynamic$integrationscheme.$IHMAX:Numberofdiscretelevelsinpart.$HSPMIN:MinimumHsinpartitioning.$WSM:Windspeedmultiplierinpart.$WSC:Cutofwindseafractionfor$identifyingwindseainpart.$FLC:Flagforcombiningwindseasin$partitioning.$NOSW:Numberofpartitionedswellfields$infieldoutput.$FMICHE:ConstantinMichelimiter.$P2SF:......$$Inthe'Outofthebox'testsetupwerunwithsub-gridobstacles$andwithcontinuousicetreatment.$&MISCCICE0=0.25,CICEN=0.75,FLAGTR=4/(4改為0)&FLX3CDMAX=3.5E-3,CTYPE=0/$&SDB1BJGAM=1.26,BJFLAG=.FALSE./$$Mandatorystringtoidentifyendofnamelistinputsection.$ENDOFNAMELISTS$$Definegrid--------------------------------------------------------$$$Fiverecordscontaining:$$1Typeofgrid,coordinatesystemandtypeofclosure:GSTRG,FLAGLL,$CSTRG.Gridclosurecanonlybeappliedinsphericalcoordinates.$GSTRG:Stringindicatingtypeofgrid:$'RECT':rectilinear$'CURV':curvilinear$FLAGLL:Flagtoindicatecoordinatesystem:$T:Spherical(lon/latindegrees)$F:Cartesian(meters)$CSTRG:Stringindicatingthetypeofgridindexspaceclosure:$'NONE':Noclosureisapplied$'SMPL':Simplegridclosure:Gridisperiodicinthe$:i-indexandwrapsati=NX+1.Inotherwords,$:(NX+1,J)=>(1,J).Agridwithsimpleclosure$:mayberectilinearorcurvilinear.$'TRPL':Tripolegridclosure:Gridisperiodicinthe$:i-indexandwrapsati=NX+1andhasclosureat$:j=NY+1.Inotherwords,(NX+1,J<=NY)=>(1,J)$:and(I,NY+1)=>(MOD(NX-I+1,NX)+1,NY).Tripole$:gridclosurerequiresthatNXbeeven.Agrid$:withtripoleclosuremustbecurvilinear.$2NX,NY.Astheoutergridlinesarealwaysdefinedasland$points,theminimumsizeis3x3.$$Branchherebasedongridtype$$IF(RECTILINEARGRID)THEN$$3GridincrementsSX,SY(degr.orm)andscaling(division)factor.$IfCSTRG='SMPL',thenSXissetto360/NX.$4Coordinatesof(1,1)(degr.)andscaling(division)factor.$$ELSEIF(CURVILINEARGRID)THEN$$3Unitnumberoffilewithx-coordinate.$Scalefactorandaddoffset:x<=scale_fac*x_read+add_offset.$IDLA,IDFM,formatforformattedread,FROMandfilename.$IDLA:Layoutindicator:$1:Readline-by-linebottomtotop.$2:Like1,singlereadstatement.$3:Readline-by-linetoptobottom.$4:Like3,singlereadstatement.$IDFM:formatindicator:$1:Freeformat.$2:Fixedformatwithaboveformatdescriptor.$3:Unformatted.$FROM:filetypeparameter$'UNIT':openfilebyunitnumberonly.$'NAME':openfilebynameandassigntounit.$$Iftheaboveunitnumberequals10,thenthex-coordisreadfromthis$file.Thex-coordmustfollowtheaboverecord.Nocommentlinesare$allowedwithinthex-coordinput.$$4Unitnumberoffilewithy-coordinate.$Scalefactorandaddoffset:y<=scale_fac*y_read+add_offset.$IDLA,IDFM,formatforformattedread,FROMandfilename.$IDLA:Layoutindicator:$1:Readline-by-linebottomtotop.$2:Like1,singlereadstatement.$3:Readline-by-linetoptobottom.$4:Like3,singlereadstatement.$IDFM:formatindicator:$1:Freeformat.$2:Fixedformatwithaboveformatdescriptor.$3:Unformatted.$FROM:filetypeparameter$'UNIT':openfilebyunitnumberonly.$'NAME':openfilebynameandassigntounit.$$Iftheaboveunitnumberequals10,thenthey-coordisreadfromthis$file.They-coordmustfollowtheaboverecord.Nocommentlinesare$allowedwithinthey-coordinput.$$ELSEIF(UNSTRUCTUREDGRID)THEN$Nothingtodeclare:allthedatawillbereadfromtheGMESHfile$ENDIF(CURVILINEARGRID)$$5Limitingbottomdepth(m)todiscriminatebetweenlandandsea$points,minimumwaterdepth(m)asallowedinmodel,unitnumber$offilewithbottomdepths,scalefactorforbottomdepths(mult.),$IDLA,IDFM,formatforformattedread,FROMandfilename.$IDLA:Layoutindicator:$1:Readline-by-linebottomtotop.$2:Like1,singlereadstatement.$3:Readline-by-linetoptobottom.$4:Like3,singlereadstatement.$IDFM:formatindicator:$1:Freeformat.$2:Fixedformatwithaboveformatdescriptor.$3:Unformatted.$FROM:filetypeparameter$'UNIT':openfilebyunitnumberonly.$'NAME':openfilebynameandassigntounit.$$Iftheaboveunitnumberequals10,thenthebottomdepthsarereadfrom$thisfile.Thedepthsmustfollowtheaboverecord.Nocommentlinesare$allowedwithinthedepthinput.Inthecaseofunstructuredgrids,thefile$isexpectedtobeaGMESHgridfilecontainingnodeandelementlists.$$------------------------------------------------------------------------$Exampleforrectilineargridwithspherical(lon/lat)coordinatesystem.$NotethatforCartesiancoordinatestheunitismeters(NOTkm).$'RECT'T'NONE'(此處關(guān)于地形的設(shè)置)1212(網(wǎng)格大小:經(jīng)度格點(diǎn)數(shù)緯度格點(diǎn)數(shù))1.1.4.(就是一度的方格里有多少格)-1.-1.4.(起始經(jīng)度起始緯度步長(zhǎng)(一般為1))-0.12.5010(為通道號(hào),最好使用其他數(shù))-10.(地形數(shù)值乘以該數(shù)等于真實(shí)值)3(代表地形文件從上往下讀,1代表從下往上讀,根據(jù)地形文件務(wù)必保證數(shù)據(jù)讀取是從北緯到南緯)1'(....)''NAME''bottom.inp'(將‘bottom.inp’改為自己的地形文件名)$(下面加上$)666666666666666542024566666542024566666542024566666542004566666544224566666655445666666666556666666666666666666666666666666666666666666666666666$$------------------------------------------------------------------------$Exampleforcurvilineargridwithspherical(lon/lat)coordinatesystem.$Samespatialgridasprecedingrectilinearexample.$NotethatforCartesiancoordinatestheunitismeters(NOTkm).$$'CURV'T'NONE'$1212$$100.25-0.531'(....)''NAME''x.inp'$$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$123456789101112$$100.250.531'(....)''NAME''y.inp'$$111111111111$222222222222$333333333333$444444444444$555555555555$666666666666$777777777777$888888888888$999999999999$101010101010101010101010$111111111111111111111111$121212121212121212121212$$-0.12.5010-10.31'(....)''NAME''bottom.inp'$$666666666666$666542024566$666542024566$666542024566$666542004566$666544224566$6

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論