Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
650403c2
Commit
650403c2
authored
Dec 07, 2010
by
mattijs
Browse files
ENH: directMapped : added patchInternalField sampledSurface
parent
0f8c3f03
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/sampling/sampledSurface/sampledPatchInternalField/sampledPatchInternalFieldTemplates.C
View file @
650403c2
...
...
@@ -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
.
faceCentre
s
());
vectorField
samples
(
samplePoint
s
());
distMap
.
reverseDistribute
(
mesh
().
nCells
(),
point
::
max
,
samples
);
Field
<
Type
>
patchVals
(
mesh
().
nCells
());
...
...
tutorials/incompressible/pisoFoam/les/pitzDaily/system/controlDict
View file @
650403c2
...
...
@@ -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;
}
);
}
}
// ************************************************************************* //
tutorials/incompressible/pisoFoam/les/pitzDailyDirectMapped/system/controlDict
View file @
650403c2
...
...
@@ -47,10 +47,10 @@ runTimeModifiable true;
functions
{
probes
1
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;
}
);
}
}
// ************************************************************************* //
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment