Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
混相流

混相流

混相流でのソルバー変数を取得する例

    • FAQFAQ
      Participant

      混相流でのデータ構造はsuper domain, sub domain、または、super thread, sub threadの概念があります。 ここではsub domain、または、sub threadを指定し、第1相の速度勾配を取得する具体例を紹介します。 sub_threadを指定する場合 DEFINE_ON_DEMAND(test1) { Domain *d; Thread *tm, **pt; cell_t c; d=Get_Domain(1); mp_thread_loop_c(tm,d,pt) { begin_c_loop(c,tm) { C_UDMI(c,tm,1)= C_DUDX(c,pt[0]); } end_c_loop(c,tm) } } sub domainを指定する場合 DEFINE_ON_DEMAND(test2) { Domain *mix_domain, *sub_domain; Thread *t; cell_t c; int phase_domain_index; mix_domain=Get_Domain(1); sub_domain_loop(sub_domain, mix_domain, phase_domain_index) thread_loop_c(t,sub_domain) { if(DOMAIN_ID(sub_domain) ==2) begin_c_loop(c,t) { C_UDMI(c,t,2)=C_DUDX(c,t); } end_c_loop(c,t) } }