|
[Sponsors] |
October 14, 2013, 15:08 |
Sample output at every time step
|
#1 |
New Member
Grady Lemoine
Join Date: Oct 2013
Posts: 7
Rep Power: 13 |
Hi all,
I'd like to get output along a line through my problem domain (specifically, I'd like to integrate alpha1 in interFoam along a vertical line to get fluid depth, in the style of waves2Foam), and it looks like the sampledSet approach is the way to do this. I want high resolution in time, though, to compare against experiment, so I was wondering -- is it possible to have OpenFOAM do this at every time step? I don't want to output the whole solution at every time step because it would take too much time and disk space, but output along just a line through the mesh at every step should be fine. Regards, Grady Lemoine |
|
October 14, 2013, 15:47 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Grady,
You, yourself, mention waves2Foam, and it does provide you with the instantaneous water level based on a vertical integration of the alpha1 field. I suggest that you look into the waveFlume tutorial to see, how the output control is defined. You want to have it each time step, and it is possible also with the implementation in waves2Foam. Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
October 14, 2013, 17:13 |
|
#3 |
New Member
Grady Lemoine
Join Date: Oct 2013
Posts: 7
Rep Power: 13 |
Ah, good to hear; thanks! I hadn't known the option to output at every timestep was available. I take it the waveFlume example is part of waves2Foam? I hadn't known about waves2Foam before this morning; I'll have to take a look and see how it's set up. I've had to do some modification to the interFoam source already to get it to do what I want, so I probably won't migrate to waves2Foam, but I might get some ideas about how to set things up.
|
|
October 14, 2013, 18:08 |
|
#4 |
New Member
Grady Lemoine
Join Date: Oct 2013
Posts: 7
Rep Power: 13 |
I'm taking a look at the waveFlume tutorial, and I don't quite see where the output is specified. I see some references to wave gauges in the controlDict, but it's not clear to me where things go from there. Pardon my ignorance, but could somebody spell out what's going on in that tutorial, and how I could specify output at every time step in an essentially unmodified interFoam?
|
|
October 16, 2013, 17:16 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Grady,
If you open the file, which is pointed to in the controlDict in terms of a relative path, i.e. the file $TUTORIALS/waveFlume/waveGaugesNProbes/surfaceElevationAnyName_controlDict you can see the different options for the output control. Essentially you merely need to change the option Code:
outputInterval 20; Code:
outputInterval 1; The location of the wave probes and the entire folder waveGaugesNProbes are created with the utility waveGaugesNProbes, which comes with the waves2Foam toolbox. This utility reads the file constant/probeDefinitions, where you can define different distribution patterns for the wave gauges. If you want to run this in interFoam, i.e. with solvers, which are not compiled with the waves2Foam library/toolbox, then it should be sufficient to add the following line in your controlDict: Code:
libs ( "libwaves2Foam.so" "libwaves2FoamProcessing.so" "libwaves2FoamSampling.so" ); Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
October 16, 2013, 18:28 |
|
#6 |
New Member
Grady Lemoine
Join Date: Oct 2013
Posts: 7
Rep Power: 13 |
Thanks for the reply. I think I see (at least part of) the issue -- I can't find any directory named waveGaugesNProbes, except for one under the applications tree, which just contains source code. I haven't yet built waves2foam; is that necessary? Or did I download it from the wrong place? I followed the directions on the OpenFOAM wiki, http://openfoamwiki.net/index.php/Co...d_Installation , and checked it out from the svn repo specified.
I've also managed to get help from a more senior colleague, who's done some things a little like this in OpenFOAM in the past, so I should be able to tackle it. Again, thanks for your time, --Grady |
|
Tags |
free surface elevation, output data, sampledict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 03:34 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 11:23 |
Modeling in micron scale using icoFoam | m9819348 | OpenFOAM Running, Solving & CFD | 7 | October 27, 2007 01:36 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |