CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Automatic post processor with python

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2014, 07:37
Default Automatic post processor with python
  #1
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 3
Paolo.F is on a distinguished road
Hi everyone!
I'm trying to write a python script that will mesh, and solve a case automatically after it has received all the informations needed (initial conditions etc).
I wold also like it to execute a few post process instructions without the help of the user...and here's where I'm getting some difficulties.
I know that Paraview is written in python and that th epython shell and trace could help me...unfortunately I have no idea how to use it...
can anybody help me?

Thanks,
paolo
Paolo.F is offline   Reply With Quote

Old   March 13, 2014, 08:33
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
http://paraview.org/Wiki/ParaView#Python_Scripting
http://paraview.org/Wiki/Sixth_OpenFOAM_workshop
http://paraview.org/Wiki/ParaView/Us...le_Of_Contents
elvis is offline   Reply With Quote

Old   March 13, 2014, 11:24
Default
  #3
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 3
Paolo.F is on a distinguished road
Thanks for the links Elvis!

regards,
Paolo
Paolo.F is offline   Reply With Quote

Old   March 18, 2014, 05:15
Default
  #4
New Member
 
PaoloFariselli
Join Date: Aug 2013
Location: Milan, Italy
Posts: 28
Rep Power: 3
Paolo.F is on a distinguished road
Hi!
I've managed my problems with the python shell...(thanks again Elvis!)
Now I would like to import the forces calculated by OpenFoam ( postPorcess/Forces/.../forces.dat) and generate a few plots... Until now I copied the values in a Matlab script, and it works fine, but I would like to set (with a python script maybe..?) the case so it can do it automatically.
In this way I could have a tool that receives the initial conditions and the geometries (done), automatically generate the mesh (done), perform the simulation (done), display a few scree shots of paraview (done) and plot the forces (???).

Can anybody help me..?

Thanks,
Paolo
Paolo.F is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Python Shell into ParaView 3.8.1? blaise OpenFOAM Installation 3 July 24, 2012 04:58
Fieldview 11.1 + Python to extract 3D core of data Rebecca FieldView 0 April 13, 2011 13:06
post processing for KIVA dirga Main CFD Forum 5 April 23, 2009 10:58
post data starcd_learner CD-adapco 0 February 1, 2006 12:24
Post Processing in FEM Abhijit Tilak Main CFD Forum 0 April 26, 2004 11:59


All times are GMT -4. The time now is 09:28.