Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have a list of x,y,z coordinates in a text file. How can I read these into ANSYS to create keypoints?

0
Posted

I have a list of x,y,z coordinates in a text file. How can I read these into ANSYS to create keypoints?

0

This can be done using the Ansys APDL functions. Look in the APDL manual for a complete description. Here is a brief exercpt from section 3.11.5.4 which shows how to read data into an array parameter. You can fill an array from a data file using the *VREAD command (Utility Menu>Parameters>Array Parameters>Read from File). The command reads information from an ASCII data file and begins writing it into the array, starting with the index location that you specify. You can control the format of the information read from the file through data descriptors. The data descriptors must be enclosed in parenthesis and placed on the line following the *VREAD command. See Vector Operations for more information about data descriptors. The data descriptors control the number of fields to be read from each record, the width of the data fields, and the position of the decimal point in the field. For example, given the following data file named dataval: 1.5 7.8 12.3 15.6 -45.6 42.5 and an array called E

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.