We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
混相流

混相流

各Binの粒子径の取得例(Discrete Method)

    • FAQFAQ
      Participant

      PBMでDiscrete Methodを利用する場合、UDFから各Binの粒子径の取得例です。 DEFINE_ON_DEMAND(get_d1) {       Domain *md;                int n_pb_disc; int ns; real diam[10];    /* Binsの数に応じて定義 */   n_pb_disc = Domainvar_Get_Integer(,”pb-disc/n-pb-disc”);              for (ns = n_pb_disc – 1; ns >= 0; ns–) { diam[ns] = Domainvar_Get_List_Ref_Float(,”pb-disc/bin-sizes”,(n_pb_disc-1)-ns);         } } ここで、 は以下コマンドより確認することができます。 (rpgetvar ‘pb/domain-ids)