General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

How to import time dependant tabular data into transient-thermal simulation?

    • Ririru
      Subscriber
      Hello,I am working on a transient-thermal simulation. As boundary conditions I want to apply a heat transfer coefficient to the model. The HTC-values are taken from measurements, as well as the ambient temperature at the same time. The measurements are taken in increments of 60s and last up to about 38000s. So its a lot of data input. I want to apply these values for the simulation. However, it seems unhandy to input the values as tabular data via copy paste. Weirdly, it worked some times, but not consistently. I looked up methods on how to import external data, but this only worked for spatial data, not temporal. Also I am not quite sure how to adat the load steps. I can input as many time steps as needed for load increments of 60s in the calculated time span, however, the time steps between them are automatically set to 1s and I need to change each step manually which is not the solution I am looking for. Does the copy/paste approach work usually or is the number of data too big and different methods need to be used?nThank you in advancenn
    • peteroznewman
      Subscriber
      nCopy/Paste Tabular Data into Mechanical doesn't work well for massive data sets. It can make Mechanical unresponsive for an hour or more. It's much better to have the solver read the data when the solution starts by inserting some code into Mechanical to point to the text file. nHere is an example: /forum/discussion/1157/apdl-transient-analysis-only-registering-1st-acceleration-stepn
    • Ririru
      Subscriber
      Array , thanks for your answer! I already thought that copy paste might not be a good way to insert data. Especially when the process should be in a way automated as a goal.nThe example you sent is a good starting point, especially since I have not yet programmed in Ansys. However, I have seen that it is possible to import time dependant data for convection, however this needs a XML-file. Since I am not familiar with them, I would like to ask if you think that importing XML-files works fine, or coding would be the more efficient way.nThanks again for your help!n
    • peteroznewman
      Subscriber
      nI know that Engineering Data is exported and imported via XML files.nI don't know about importing time-dependent data for convection via XML file format.nI do know that the APDL code that represents time-dependent data is easily applied in a solution. n
    • Ririru
      Subscriber
      Array nI have now started to implement some code into Ansys. However, I get two main errors. Firslty I want to create a convection via SFE as a Surface load with the following code:nSFE,ESEL,1,CONV,referencecurve,txtnreferencecurve.csv is the table with the data for HTC-values and ambient temperature. The error message that is written in the solution file is (even if i apply just one examplary value for HTC):nInvalid element number = 0. The SFE command is ignored.nMoreover, when I want to load the data for the convection boundary conditions I apply the following code (which is nearly the same as a existing, working code for the loading of tabular data):nto_skip=1 ! enter number of lines to skipn/INQUIRE,numlines,LINES,Referencecurve,csv !to count number of rowsnto_read=numlines-to_skip !actual rows to be readn*DEL,Convection,,NOPR !Delete previous entries of convectionn*DIM,Convection,TABLE,to_read,2 ! table array to hold datan*TREAD,Convection,Referencecurve,txt,,to_skip !read data of Referencecurve into new table convectionnnHere the file with the data cannot be read, so the *TREAD command does not work, even though I tried saving the file with the table data in the same file as the project. I get the same error for different file types.nIs there an obvious mistake I did, like saving the table data in the wrong folder?nThanks again!n
Viewing 4 reply threads
  • The topic ‘How to import time dependant tabular data into transient-thermal simulation?’ is closed to new replies.