March 13, 2019, 05:37
|
PostProcess Multiphase Stats over different phases
|
#1
|
Senior Member
Join Date: Jan 2014
Posts: 179
Rep Power: 12
|
Hi guys,
just a general question. Is there a way to postProcess integral results on sampled surfaces during runtime?
At the moment I am doing this by postProcessing in Paraview and Python, my goal is to get those results during runtime.
The libfunctionObject in OF v1812 provides already mostly the function I need, just the separation into liquid and air phase is missing but it says that weightedAreaIntegrated is not possible on a surface.
Code:
m_in
{
type surfaceFieldValue;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
writeControl timeStep;
writeInterval 1;
log true;
valueOutput true;
writeFields false;
surfaceFormat vtk;
writeArea true;
regionType sampledSurface;
name mischk_in;
sampledSurfaceDict
{
// Sampling on triSurface
type sampledTriSurfaceMesh;
surface mischk_in.stl;
source cells; // sample cells or boundaryFaces
interpolate true;
}
operation weightedAreaIntegrate;
weightField alpha.water;
fields
(
p_rghMean
UMean
);
}
Last edited by hxaxtma; March 13, 2019 at 07:32.
|
|
|