Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Apply one step result as next step initial conditions in Workbench 1

Status
Not open for further replies.

Shelby86

Mechanical
Mar 13, 2015
11
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
 
Replies continue below

Recommended for you

Try placing outres before solve, and also omit Inres command.
 
Thanks for the quick response,

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

Any other suggestions Stanum?

 
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.
 
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.
 
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.
 
As I've said before according to help: fprs is elemental data command, not nodal, try using esort command
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor