pif_namelist Derived Type

type, private :: pif_namelist

pif.nml 文件数据


Contents

Source Code


Components

Type Visibility Attributes Name Initial
integer, public :: numbers(5)

弹性实、刚性浮体实、边界虚、总粒子数,刚性浮体数量

integer, public, allocatable :: float_objects(:,:)

刚性浮体粒子编号

real(kind=rk), public :: hsml

光滑长度


Type-Bound Procedures

procedure, public, :: read

  • private subroutine read(self)

    读取 pif.nml 文件

    Arguments

    Type IntentOptional Attributes Name
    class(pif_namelist), intent(inout) :: self

Source Code

    type pif_namelist
        integer :: numbers(5)   !! 弹性实、刚性浮体实、边界虚、总粒子数,刚性浮体数量
        integer, allocatable :: float_objects(:, :) !! 刚性浮体粒子编号
        real(rk) :: hsml        !! 光滑长度
    contains
        procedure :: read
    end type pif_namelist