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.
General

General

Is it possible to define multiple load (Heat generation rate) in table type array parameter using a *DO loop?

    • FAQFAQ
      Participant

      Yes. The following APDL commands demonstrate how to define multiple loads using *do loop;

      Fini
      /clear
      /output,out,out

      *cfopen,load,txt
      *Do,i,1,2

      *DIM,BF%i%LOAD,TABLE,3,1,1,time,

      BF%i%LOAD(1,0) = 0,0.5,1
      BF%i%LOAD(1,1) = %i%*10,%i%*20,%i%*30

      *vwrite,i,i
      bfv,%i,hgen,%%BF%iLOAD%%

      *enddo
      *cfclos

      !create Solid model and mesh it
      /prep7

      mp,kxx,1,50
      mp,dens,1,7850
      mp,c,1,450

      et,1,70
      block,,10,,1,,1
      block,10.1,20.1,,1,,1
      esize,.3
      vmesh,all

      /inp,load,txt

      /solu
      ANTYPE,4
      TRNOPT,FULL
      LUMPM,0
      TIME,1
      solve
      /post1
      /EFACET,1
      PLNSOL, TEMP,, 0