Error Reading Tutorial .inp files

  • 353 Views
  • Last Post 21 October 2018
  • Topic Is Solved
BSwartzell posted this 11 October 2018

Hello,

I am having trouble opening a .inp file in ANSYS. The file is one of the tutorial files from "4.1 Magnetic Analysis of a Solenoid Actuator" in ANSYS Help Veiwer, which I attached a screenshot of. The file itself is given when one downloads ANSYS and is located here:

"drive" \ANSYS Inc\v182\ansys\data\models

The file is called "solenoid.inp"

When I open it I get the error code "unkown file type". I've heard great things about ANSYS and I don't understand why they would put tutorial files in the program that you can't open, as it is very frustrating.

 

-Ben

Attached Files

Order By: Standard | Newest | Votes
SandeepMedikonda posted this 11 October 2018

Ben,

  I am not sure what is going on at your end but I was just able to open this file without problems:

Are you able to locate and open that particular file in a text editor? Do you see anything in it? Its located at this location on a windows machine:

C:\Program Files\ANSYS Inc\v182\ansys\data\models

The code in this file is really small, try either inputting these commands or saving them in a file and opening it again.

/PREP7  

RECTNG,0,2.75,0,0.75,   

/PNUM,KP,0  

/PNUM,LINE,0

/PNUM,AREA,1

/PNUM,VOLU,0

/PNUM,NODE,0

/PNUM,TABN,0

/PNUM,SVAL,0

/NUMBER,0   

!*  

/PNUM,ELEM,0

/REPLOT 

!*  

RECTNG,0,2.75,0.75,3.5, 

RECTNG,0.75,2.25,0,4.5, 

RECTNG,1,2,1,3, 

RECTNG,0,2.75,0,3.75,   

RECTNG,0,2.75,0,4.5,

FLST,2,6,5,ORDE,2   

FITEM,2,1   

FITEM,2,-6  

AOVLAP,P51X 

SAVE

Regards,
Sandeep
Best Practices to post on the Student Community

  • Liked by
  • BSwartzell
BSwartzell posted this 21 October 2018

Thanks!

Close