November 18, 2020 at 5:41 pmDianeSubscriberHello, nI am doing a 2D static structural analysis with 2 steps and 80 substeps. My main outcomes are the penetration results of a contact pair (from the Solution Contact Tool). I am doing a parametric study and for each design point I need to export a text file with the penetration results and the time value for all 80 substeps. nI thought the best way to do that would be a Post26 APLD command added under Solution but I can't get the command to work properly. The code I am using is the following: n/post26 nfile,file,rst nesol,2,5729,6183,cont,pene nstore,merge n*get,size,vari,,nsets n*dim,penetrat,array,size !nvget,penetrat(1),2 n*dim,timearr,array,size nvget,timearr(1),1 ndpFolder = '\\dp'ndpLoc = STRPOS(_wb_SolverFiles_dir(1),dpFolder)nCutPath = STRSUB(_wb_SolverFiles_dir(1),dpLoc+3,6)nDirSepLoc = STRPOS(CutPath,"\\')ndpNb = STRSUB(CutPath,1,DirSepLoc-1) n*cfopen,"%_wb_userfiles_dir(1)%\\Penetration_dp%dpNb%',csv n*vwriten('Time",";","Penetration')n*vwrite,timearr(1),penetrat(1) n*cfclosennIn the solver output, after the esol function I an getting the warning No data points are saved during this storage step. Doesn't the results file store the contact tool solution too?nThe other issue is that I need the penetration result for the whole edge of the contact pair not only one element or node. Is this feasible in an APDL command? n Thank you in advance for you help! nBest regards, nDiane
November 19, 2020 at 6:04 am
November 20, 2020 at 9:10 amDianeSubscriberHello, nI replaced the *get,size,vari,,nsets with *get,my_size,vari,,nsets and obtained a my_size result but the value was 0. According to the Post Output, there is something wrong with the esol,2,5729,6183,cont,pene command. nI am trying to share a simplified version of my model but it seems I am not allowed to attach a .wbpz to this comment. nThank you!nDiane n
November 20, 2020 at 2:02 pmHarsihilZLHZSubscriberAs the value is 0, that means you are not following proper ANSYS syntax.nOnce you get any value, then it works fine.ntry to share your file, its difficult to solve problem without it.nYou can share you file, search for share wbpz file format in ANSYS FORUM.nn
November 25, 2020 at 3:38 pmDianeSubscriberArrayHi, nSorry for the late reply. I've attached the file of a simplified version of my model but I changed the .wbpz file extension to .7z. Before you open the file, change the extension back to .wbpz. nTo recap, what I was trying to do was to get the maximum penetration values of the frictional contact pair for all 84 substeps and write these penetration values to a .csv or .txt file. nThanks again for your help!nBest regards, nDiane n
- The topic ‘Post26 APDL Command’ is closed to new replies.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- How to do the frequency response of the nonlinear vibration of a flexible PCB?
- Importing Line and Solid Bodies from SpaceClaim to Mechanical
- how to open SendCommand in Ansys
- problems facing during solution
- Still facing the same issue
- Failed to move file from solver directory to scratch directory: file.rst
- Adaptive Sizing
- Stiffness factor
- Import DAT file
- Import pressure data (coordinates and value) to ansys workbench through excel
© 2023 Copyright ANSYS, Inc. All rights reserved.