Commit 650403c2 authored by mattijs's avatar mattijs
Browse files

ENH: directMapped : added patchInternalField sampledSurface

parent 0f8c3f03
......@@ -76,7 +76,7 @@ Foam::sampledPatchInternalField::interpolateField
// Send back sample points to processor that holds the cell.
// Mark cells with point::max so we know which ones we need
// to interpolate (since expensive).
vectorField samples(pp.faceCentres());
vectorField samples(samplePoints());
distMap.reverseDistribute(mesh().nCells(), point::max, samples);
Field<Type> patchVals(mesh().nCells());
......
......@@ -97,6 +97,40 @@ functions
}
);
}
surfaceSampling
{
// Sample near-wall velocity
type surfaces;
// Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so");
enabled true;
outputControl outputTime;
interpolationScheme cellPoint;
surfaceFormat vtk;
// Fields to be sampled
fields
(
U
);
surfaces
(
nearWall
{
type patchInternalField;
patchName lowerWall;
distance 1E-6;
interpolate true;
triangulate false;
}
);
}
}
// ************************************************************************* //
......@@ -47,10 +47,10 @@ runTimeModifiable true;
functions
{
probes1
probes
{
type probes;
functionObjectLibs ( "libsampling.so" );
functionObjectLibs ("libsampling.so");
enabled true;
outputControl timeStep;
outputInterval 1;
......@@ -70,12 +70,13 @@ functions
( 0.1524 0.0253 0 )
( 0.1778 0.0253 0 )
);
}
fieldAverage1
{
type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" );
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl outputTime;
......@@ -96,7 +97,40 @@ functions
}
);
}
}
surfaceSampling
{
// Sample near-wall velocity
type surfaces;
// Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so");
enabled true;
outputControl outputTime;
interpolationScheme cellPoint;
surfaceFormat vtk;
// Fields to be sampled
fields
(
U
);
surfaces
(
nearWall
{
type patchInternalField;
patchName lowerWall;
distance 1E-6;
interpolate true;
triangulate false;
}
);
}
}
// ************************************************************************* //
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment