跳到內容

HydroGeoSphere/讀取現有三維網格

來自華夏公益教科書,開放的書籍,為開放的世界

在某些情況下,網格生成步驟可能非常耗時。 如果是這樣,則可以使用以下說明來讀取在先前執行中生成的網格

讀取三維網格

[編輯 | 編輯原始碼]

網格的字首與prefix.grok檔案中的字首匹配。

這些說明展示瞭如何設定prefix.grok檔案中的網格生成部分以使用讀取三維網格指令

! Generate the grid for first run
   ! skip on

   read gb 2d grid
   laurel

   generate layers from gb 2d grid
   .true.                           ! zone by layer?
   .false.                          ! base elevation constant?
   laurel.nprop.Bedrock
   1                                ! layer
   Whole domain
   20                               ! sublayer
   .false.                          ! top elevation constant?
   laurel.nprop.Topography

   write faces and segments
   !skip off

   skip on
   ! Read previously defined grid for subsequent runs
   read 3D grid
   skip off

end grid definition


在第一次執行中,您可以讀取切片並生成分層網格。 重要的是,如果要使用任何寫入面和段指令,則必須包含選擇面選擇段指令在prefix.grok檔案中。

在後續執行中,您可以跳過網格生成命令,並使用讀取三維網格指令代替。

• • •

華夏公益教科書