CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

[ANSYS Mechanical] How get data from a probe using API scripting

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2024, 10:47
Default [ANSYS Mechanical] How get data from a probe using API scripting
  #1
New Member
 
Tom Langshaw
Join Date: Aug 2024
Location: uk
Posts: 1
Rep Power: 0
TomL is on a distinguished road
I have automate a simulation using PyANSYS however I am struggling to find a way to extract information from a simulation using scripting commands. I can find no examples of how to extract information from a probe (the recording feature also does not record anything when doing it using the interface).

The current block of code I have written returns a zero value for any parameter stored for the probe.

Code:
 model = ExtAPI.DataModel.Project.Model
analysis = model.Analyses[0]
solution = analysis.Solution 
probe = solution.Children[3]
probe.NormalZAxisStrain
TomL is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PostProcess Probe data of U.component(0) Trailblazer_CFD Main CFD Forum 0 June 1, 2024 04:12
Request for Guidance on Exporting and Updating CFD Data for 3D Reduced Order Models romi Main CFD Forum 3 May 31, 2024 16:47
Viscoelastic Fluid Flows using OpenFOAM The solver viscoelasticFluidFoam jovani OpenFOAM Running, Solving & CFD 475 January 13, 2023 08:21
save data output at specific point using probe foam_noob OpenFOAM 0 March 11, 2010 02:13
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 15:10.