mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- the raw surface writer simply outputs x/y/z and field values.
This additional flag allows recovery of some geometric information.
- optional user-specified output precision
Example,
```
formatOptions
{
raw
{
normal yes;
precision 10;
}
}
```
134 lines
2.6 KiB
C++
134 lines
2.6 KiB
C++
// -*- C++ -*-
|
|
|
|
// ************************************************************************* //
|
|
|
|
debug
|
|
{
|
|
type surfaces;
|
|
libs (sampling);
|
|
log true;
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
|
|
fields (rho U);
|
|
|
|
sampleScheme cellPoint;
|
|
interpolationScheme cellPoint;
|
|
surfaceFormat ensight;
|
|
// surfaceFormat vtk;
|
|
// surfaceFormat raw;
|
|
|
|
formatOptions
|
|
{
|
|
ensight
|
|
{
|
|
collateTimes true;
|
|
// collateTimes false;
|
|
}
|
|
raw
|
|
{
|
|
normal true;
|
|
precision 8;
|
|
}
|
|
}
|
|
|
|
_plane
|
|
{
|
|
type plane;
|
|
source cells;
|
|
triangulate false;
|
|
|
|
planeType pointAndNormal;
|
|
|
|
pointAndNormalDict
|
|
{
|
|
normal (-1 0 0);
|
|
point (-0.042 0 0);
|
|
// point (-0.0425 0 0); // between faces
|
|
}
|
|
}
|
|
|
|
_disk1
|
|
{
|
|
surfaceType disk;
|
|
origin (-0.1 -0.05 0);
|
|
normal (1 1 1);
|
|
radius 0.015;
|
|
}
|
|
|
|
surfaces
|
|
{
|
|
angledPlane
|
|
{
|
|
type distanceSurface;
|
|
distance 0;
|
|
signed true;
|
|
regularise true;
|
|
surfaceType triSurfaceMesh;
|
|
surfaceName angledPlane.obj;
|
|
}
|
|
|
|
angledPlaneCut
|
|
{
|
|
type surfaceCut;
|
|
triangulate false;
|
|
surfaceType triSurfaceMesh;
|
|
surfaceName angledPlane.obj;
|
|
}
|
|
|
|
angledPlane1
|
|
{
|
|
type distanceSurface;
|
|
distance 0;
|
|
signed true;
|
|
regularise true;
|
|
surfaceType triSurfaceMesh;
|
|
surfaceName angledPlane1.obj;
|
|
}
|
|
|
|
angledPlane1Cut
|
|
{
|
|
type surfaceCut;
|
|
triangulate false;
|
|
surfaceType triSurfaceMesh;
|
|
surfaceName angledPlane1.obj;
|
|
}
|
|
|
|
disk1
|
|
{
|
|
${_disk1}
|
|
type distanceSurface;
|
|
distance 0;
|
|
cell false;
|
|
signed true;
|
|
triangulate false;
|
|
}
|
|
|
|
iso
|
|
{
|
|
type isoSurface;
|
|
isoField p;
|
|
isoValue 1e5;
|
|
regularise true;
|
|
interpolate true;
|
|
}
|
|
|
|
// Top channel
|
|
plane1
|
|
{
|
|
${_plane}
|
|
bounds (-1 0 -1) (0 1 1);
|
|
}
|
|
|
|
// Bottom channel
|
|
plane2
|
|
{
|
|
${_plane}
|
|
bounds (-1 -1 -1) (0 0 1);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|