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

Cfd-post - how to export figures automatically?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2017, 06:34
Default Cfd-post - how to export figures automatically?
  #1
New Member
 
ES
Join Date: Oct 2017
Posts: 1
Rep Power: 0
antonio_dcp is on a distinguished road
Hi everyone!

I am totally new in this forum so excuse me if I say something wrong or the question is already asked (I have not found it, so I guess it's not). I'm making a macro in a .cse for automaticing a process for CFD-post. I have managed to create one that takes all the data for my project on a certain time and exports it in a document. It works pretty well. You can see some fragment down below:

# Session file started: 01:10:45
# CFX-16.2

COMMAND FILE:
CFX Post Version = 16.2

END
# timestep: 0.10
DATA READER:
Domains to Load=
END
> load filename=//...../Model_1-9-0.1.dat , case=Case Model_1_E9v10 9 0.1, force_reload=true

CALCULATOR:
Function = area
Location =
Case Name = Case Model_1_E9v10 9 0.1
END

TABLE:Table 1
Export Table Only = True
Table Export HTML Title =
Table Export HTML Caption Position = Bottom
Table Export HTML Caption =
Table Export HTML Border Width = 1
Table Export HTML Cell Padding = 5
Table Export HTML Cell Spacing = 1
Table Export Lines = All
Table Export Trailing Separators = True
Table Export Separator = Tab
END
>table save=C:/....../Tabla.txt, name=Table 1



Now I'd like to do the same but saving images instead of just data. Through the software I get some figures that I can visualize in the main screen and save as *.png. Those are the images I want to extract, but I don't know how to do it by coding. The point would be do it some certain times as I did for the data as well.

Any help? thanks in advance
antonio_dcp is offline   Reply With Quote

Old   October 26, 2017, 18:10
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,392
Rep Power: 126
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
The easiest way to do session files is to record a session file of doing the thing you want in the GUI. Then you can see the session file commands to do the action.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfd-post, cse, export, figures, macro

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
Problem regarding producing streamlines from surfaces in Ansys CFD post gauthamnarayan ANSYS 6 June 8, 2015 07:33
Problem regarding producing streamlines from surfaces in Ansys CFD post gauthamnarayan Visualization & Post-Processing 0 April 23, 2015 16:07
[ICEM] Export ICEM CFD Geometry to Designmodeler chiragsvnit ANSYS Meshing & Geometry 3 June 3, 2014 19:49
CFD Post Streamlines better representation? Dr. Flow Squad CFX 2 January 20, 2014 13:48
Creating Face in CFD Post and export Values as Boundary Conditions flow87 CFX 2 June 4, 2011 04:06


All times are GMT -4. The time now is 16:57.