I have a Heat Flow table in .csv format, with the timesteps in the first column and the load values in the second column.
How can I import this load and apply it to a Face in Mechanical using APDL commands?
You can import a Heat Flow load using APDL commands by following these steps:
inputs = ??? !Specify number of data points (excluding headers) surfaceArea = ??? !Manual input of surface area of NS (SelectedFaces) /PREP7 *DIM, heatFlowData, TABLE, inputs, 1, 1, TIME !Create a table to store data points with time as the primary variable *TREAD, heatFlowData, 'YourDrive:\File\Path\YourFile', 'CSV', , 1 !Read data points from .csv, skipping 1st line *TOPER, heatFluxData, heatFlowData, ADD, heatFlowData, 1/surfaceArea, 0, 0 !Convert heat flow to heat flux *GET, maxET, ELEM, 0, TYPM !Maximum number of existing element types newET = maxET+1 !New element type number ET, newET, SURF152 !New element type to apply heat flux to KEYOPT, newET, 8, 1 !Include heat flux CMSEL, S, SelectedFaces ESLN TYPE, newET ESURF, 0 ALLSEL, ALL /SOLU ESEL, S, TYPE, , newET SF, ALL, HFLUX, %heatFluxData% !Apply heat flux load ALLSEL, ALL
what if i wanna upload heat flux for each element ID csv table? i tried couple ways but didnt work unfortunately.