Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

*INCLUDE use

Status
Not open for further replies.

Gramsey

Aerospace
Sep 9, 2019
11
Hi all,

I'm performing a very simple static analysis in which I would like to have the imposed displacements read from an external text file.
*INCLUDE, INPUT=displ.out
Being displ.out as follows:
*BOUNDARY, TYPE=DISPLACEMENT
Node4,1,1,-643.818E-06
Node4,2,2,-622.048E-06
Node4,3,3,1.28927E-03
Node5,1,1,-463.583E-06
Node5,2,2,-162.952E-06
Node5,3,3,748.277E-06
....and so on
Although it doesn't give me any warnings/errors, it doesn't take into account the displacements. However, when I paste the text into the .inp file it works perfectly well. Anybody knows why? There is limited information on the *Include feature in the documentation...

Thanks in advance,

Gramsey
 
Replies continue below

Recommended for you

I would say that it should work like you did it. The general rule is simply: the content in the include file is use as it would when it is directly placed at the same location in the main input file.

Have you looked in the .dat if some warning is reported?
 
No warnings in the .dat file, it seems like it reads it no problem:
*INCLUDE, INPUT=displ.out

*** INPUT DATA IS READ FROM FILE displ.out
Also, if I change something on the text file on purpose to generate an error, it gives me an error, meaning that it actually reads the text... I've no idea why it doesn't apply the displacements
 
Did you try with different file extension ? Instead of .out use for example .inp or .txt. Also make sure that the problem is not caused by access permission issue (is the file placed in the same folder as the main input file of the analysis ?).
 
Hi! I thought extension didn't matter, but I was obviously wrong. It didn't work with .txt or .out but it did with .inp. Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor