CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

load different case folder

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

Like Tree2Likes
  • 2 Post By jhoepken

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2014, 17:37
Default load different case folder
  #1
New Member
 
Join Date: Jul 2014
Posts: 2
Rep Power: 0
ranius is on a distinguished road
Hi,

I'm a newbie of OF, I've searched in the documentations and in the forum but I am not able to find what I need.

I'm developing a post processing tool for my simulations: I need to load two different cases because in the tool I compare the results.

I'm able to read different time using timeSelector but I don't know how load different cases.

Can anyone help me?

Thank you

Last edited by ranius; July 30, 2014 at 03:16.
ranius is offline   Reply With Quote

Old   July 31, 2014, 04:33
Default
  #2
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
Hi,

I assume that you want to compare the fields of various cases, or something like that? If you can't do that in paraview, I would suggest to have a look at
Code:
$FOAM_SRC/OpenFOAM/include/createTime.H
which creates the runTime variable like:
Code:
    Foam::Time runTime
    (
        Foam::Time::controlDictName,
        args.rootPath(),
        args.caseName(),
        "system",
        "constant",
        !args.optionFound("noFunctionObjects")
    );
I suggest that you exchange args.rootPath() and args.caseName() with the particular path and case name, you would like to generate. You can do that in a loop and store a List<Time>. As soon as you have the runTime available, you can access pretty much everything.

I hope that this helps, though I haven't tested it. This is just a fair warning .
ranius and fly_light like this.
jhoepken is offline   Reply With Quote

Old   August 1, 2014, 03:12
Default
  #3
New Member
 
Join Date: Jul 2014
Posts: 2
Rep Power: 0
ranius is on a distinguished road
It works! Thank you for your help!
ranius 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
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 06:35
icoFsiFoam folder structure OF 2.2.1 philipp1 OpenFOAM Running, Solving & CFD 1 January 25, 2014 17:08
Error reading new case montag dp FLUENT 5 September 15, 2011 06:00
sample does not create folder for all times joel.lehikoinen OpenFOAM Post-Processing 0 June 3, 2011 04:07
Parralel procesing: udf library does not load. Filankes FLUENT 0 March 6, 2011 09:55


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