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

Data manipulation of variables from two simulations, same mesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2012, 04:58
Default Data manipulation of variables from two simulations, same mesh
  #1
Member
 
The True
Join Date: Dec 2010
Posts: 80
Rep Power: 6
Eren10 is on a distinguished road
Hi,

is it readily possible to do simple calculations (substract, add..) variables like the pressure from two ( or more) different simulations ? The meshes are the same.

I can do this by using p files but then I have to change the text in files and I need to this for a lot of simulations.
Eren10 is offline   Reply With Quote

Old   July 3, 2012, 05:46
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Have you tried loading both the simulations in paraview and using the calculator?
lovecraft22 is offline   Reply With Quote

Old   August 6, 2012, 06:52
Default
  #3
Member
 
The True
Join Date: Dec 2010
Posts: 80
Rep Power: 6
Eren10 is on a distinguished road
Quote:
Originally Posted by lovecraft22 View Post
Have you tried loading both the simulations in paraview and using the calculator?

I have to this for over the hundred simulations so I do not think that will solve my problem. Maybe I should delete the texts in files (p,U) and then use the values. Sorry for the late response.
Eren10 is offline   Reply With Quote

Old   August 6, 2012, 07:06
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,515
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

The way I see it, you've got at least a few options:
  • pvbatch - it's ParaView's python based batch system. Search for pvbatch here in the forum for more information. Additionally, you can use ParaView's "Python Trace" feature for getting the base script.
  • PyFoam - I'm not sure on this one... all I know is that it's a very awesome toolkit to have with OpenFOAM
  • Modify foamCalc for handling data from more than one mesh... although it's not that easy to do, I think
    The mapFields utility would be a good reference on handling more than one case folder.
  • Create a script that:
    1. Copies the reference case to a sandbox folder.
    2. Copies the fields from a second case, using different field names, to the sandbox folder.
    3. Run foamCalc over the fields.
    4. And so on...
Best regards,
Bruno
wyldckat is online now   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
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
How to add a new variable in the list of variables for MESH ADAPTATION ?? Tramery CFX 3 September 28, 2011 10:27
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Skewed mesh simulations Christopher Peacock FLUENT 2 September 3, 2007 07:06
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 18:14.