|
[Sponsors] |
April 23, 2013, 08:28 |
Monitoring boundaries in OpenFOAM
|
#1 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
Dear Users and Developers,
it is possible in OpenFOAM to set up a monitoring boundary? I am trying to do some runtime post-processing. I would be satisifed with one of the two solutions 1) Calculate a surface integral on a given set of faces 2) Interpolate field values for a set of faces According to this link http://www.openfoam.com/features/run...processing.php my request would be satisifed by either fieldValue and surfaceInterpolateFields. Using setSet I have already defined the correct face sets and confirmed their validity with paraview. I am only interested in phase indicator field from a VOF simulation. First problem: fieldValue doesn't appear to be implemented or registered. Code:
Unknown function type fieldValue Valid functions are : 14 ( cellSource faceSource fieldAverage fieldCoordinateSystemTransform fieldMinMax nearWallFields patchProbes probes readFields regionSizeDistribution sets streamLine surfaceInterpolateFields surfaces ) Code:
functions { monitoring1 { type fieldValue; functionObjectLibs ( "libfieldFunctionObjects.so" ); outputControl timeStep; patches monitoringSurface1; fields ((alpha1 alpha1Near)); } } Could anyone explain to me what is the correct syntax for defining this function and how could I use it to achieve my goal? In the worst case I would like to point out that the above website needs updating (fieldValue absent?). Please do let me know if you understand how it is supposed to work. |
|
April 23, 2013, 08:45 |
cuttingPlane doesn't work with periodic?
|
#2 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
I've just discovered that cuttingPlane could do what I want from interpolateSurfaceFields, but alas it crashes with my periodic domain producing no output at all. It's strange because the plane does not pass through a periodic patch.
Code:
functions { cuttingPlane { type surfaces; functionObjectLibs ("libsampling.so"); outputControl timeStep; surfaceFormat vtk; fields (alpha1); interpolationScheme cellPoint; surfaces ( monitoring1 { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { basePoint (0 0 0.6); normalVector (0 0 1); } interpolate true; } ); } } Code:
Unhandled coupledPolyPatch type cyclic From function isoSurface::collocatedFaces(const coupledPolyPatch&) const in file sampledSurface/isoSurface/isoSurface.C at line 97. FOAM aborting Also I don't know if VTK will be any useful. I just want to take a signal out of it which will be the integrated volume fraction. Will I be able to do it efficiently with plenty of VTK files? |
|
April 23, 2013, 10:06 |
|
#3 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
Praise be to swak4Foam developers!
Using this link http://www.cfd-online.com/Forums/ope...e-average.html I figured out that this piece of code in my controlDict Code:
libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ); functions { liquidHoldup1 { type swakExpression; valueType surface; surfaceName monitoringBoundary1; surface { type plane; basePoint (0 0 0.6); normalVector (0 0 1); interpolate false; } functionObjectLibs ("libsampling.so"); outputControl timeStep; zoneName monitoringZone1; accumulations ( min); expression "sum((1-alpha1)*area())/sum(area())"; verbose true; } } |
|
April 23, 2013, 15:11 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Memory protection in OpenFOAM / combinig with FORTRAN | botp | OpenFOAM Programming & Development | 2 | February 15, 2016 13:25 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
[Gmsh] gmsh 2.6.0 conversion to OpenFoam 160 | rosswin | OpenFOAM Meshing & Mesh Conversion | 0 | March 5, 2013 08:34 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 7 | January 19, 2010 16:39 |