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