×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Apply one step result as next step initial conditions in Workbench

Apply one step result as next step initial conditions in Workbench

Apply one step result as next step initial conditions in Workbench

(OP)
Hello,

I am currently running a 12 step static structural problem. I want to be able to solve the first load step, go into POST1 and retrieve an X-location (for Fluid Pressure Penetration) then apply that as a set parameter for the next load step and repeat until complete. I am using the following code at the end of my solution APDL (this is set for allsteps)

outres,all,all,
/post1
inres,all
subset,last,last

NSORT,cont,fprs,
NSEL,S,CONT,FPRS,11.16,11.16
NSORT,cont,fprs,,,,SELECT

*get,cont_min,sort,,min
*get,cont_min_nd,sort,,imin
*get,xFPP,NODE,cont_min_nd,Loc,x
/sol

Running this script I keep getting an error being 'An error occurred while attempting to open the results file file.rst.'

Can someone shed some light on this issue I am having?

Thanks

Shelby86

RE: Apply one step result as next step initial conditions in Workbench

Try placing outres before solve, and also omit Inres command.

RE: Apply one step result as next step initial conditions in Workbench

(OP)
Thanks for the quick response,

I gave that a try, but it still gave the same error.

Any other suggestions Stanum?

RE: Apply one step result as next step initial conditions in Workbench

Usually result file has the name that you specified for your job: job name=xyz then xyz.rst. Check weather your job has a default name and it's results are not stored in unspecified directory.
And check fprs is it a valid label? Since you are sorting nodal data, and ask for element result.

RE: Apply one step result as next step initial conditions in Workbench

(OP)
Ok, so I omitted the script to allow the program to solve and found it calls the results file 'file.rst'. Yet workbench calls the file 'Job Name: file0'. So maybe this means I need to access some temporary file it writing the results too?

Yeah the FPRS command is valid.

RE: Apply one step result as next step initial conditions in Workbench

(OP)
Here is where i have got to.

So after each command step, i get this error:

***** ANSYS RESULTS INTERPRETATION (POST1) *****

SORT ON ITEM=CONT COMPONENT=FPRS ORDER= 0 KABS= 0 NMAX= 3125

*** WARNING *** CP = 10.920 TIME= 15:48:18
The requested CONT data is not available. The NSORT command is
ignored.

Now does this mean that contact information only gets resolved and saved at the end of the simulation or is it something else?

Any help would be appreciated.

RE: Apply one step result as next step initial conditions in Workbench

As I've said before according to help: fprs is elemental data command, not nodal, try using esort command

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources