Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
10132305
Commit
10132305
authored
Dec 14, 2018
by
Mark OLESEN
Browse files
TUT: provisional runTimePostProcessing test with cutting planes (
#1091
)
parent
2f9c511b
Changes
13
Hide whitespace changes
Inline
Side-by-side
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0/U
→
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0
.orig
/U
View file @
10132305
File moved
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0/kl
→
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0
.orig
/kl
View file @
10132305
File moved
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0/kt
→
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0
.orig
/kt
View file @
10132305
File moved
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0/nut
→
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0
.orig
/nut
View file @
10132305
File moved
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0/omega
→
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0
.orig
/omega
View file @
10132305
File moved
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0/p
→
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/0
.orig
/p
View file @
10132305
File moved
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allclean
View file @
10132305
...
...
@@ -2,6 +2,6 @@
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
# Tutorial clean functions
cleanCase
cleanCase
0
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun
View file @
10132305
...
...
@@ -2,20 +2,8 @@
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
runApplication ./Allrun.pre
runApplication blockMesh
runApplication transformPoints
-scale
'(1.6666 1 1)'
runApplication changeDictionary
-instance
system
-dict
system/changeDictionaryDict.X
runApplication mirrorMesh
-overwrite
rm
-f
log.mirrorMesh
rm
-f
log.changeDictionary
runApplication changeDictionary
-instance
system
-dict
system/changeDictionaryDict.Y
runApplication mirrorMesh
-overwrite
runApplication topoSet
runApplication createPatch
-overwrite
runApplication
$(
getApplication
)
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun-parallel
0 → 100755
View file @
10132305
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
runApplication ./Allrun.pre
runApplication decomposePar
runParallel
$(
getApplication
)
runApplication reconstructPar
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun.pre
0 → 100755
View file @
10132305
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
runApplication blockMesh
runApplication transformPoints
-scale
'(1.6666 1 1)'
runApplication changeDictionary
-instance
system
-dict
system/changeDictionaryDict.X
runApplication mirrorMesh
-overwrite
rm
-f
log.mirrorMesh
rm
-f
log.changeDictionary
runApplication changeDictionary
-instance
system
-dict
system/changeDictionaryDict.Y
runApplication mirrorMesh
-overwrite
restore0Dir
runApplication topoSet
runApplication createPatch
-overwrite
echo
"End"
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/system/controlDict
View file @
10132305
...
...
@@ -49,4 +49,11 @@ adjustTimeStep yes;
maxCo 0.2;
functions
{
// #include "sampling"
// #include "runTimePostProcessing"
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/system/runTimePostProcessing
0 → 100644
View file @
10132305
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
postPro1
{
type runTimePostProcessing;
libs ("librunTimePostProcessing.so");
writeControl writeTime;
output
{
name image;
width 800;
height 600;
}
camera
{
// If camera is moving, optionally provide start and end times
// startPosition 0.2;
// endPosition 0.75;
// Total number of frames to generate
nFrameTotal 1;
// Parallel projection flag
parallelProjection yes;
clipBox (-0.2 -0.2 0)(1.65 0.2 1.25); // optional
position (-2.28 1.28 2.24);
focalPoint (0.003 0.008 0.024);
up (0.26 0.930 -0.266);
zoom 1.25;
}
// Default colours
// - If select to colourBy colour, these values are used unless
// they are locally overridden
colours
{
background (0.317647 0.341176 0.431373);
background2 ${background};
text (0 0 0);
edge (1 0 0);
surface (0.5 0.5 0.5);
line (1 0 0);
}
lines
{
}
_plane
{
type functionObjectSurface;
functionObject cuttingPlane;
colourMap blueWhiteRed;
representation glyph;
maxGlyphLength 0.1;
visible yes;
featureEdges no;
colourBy field;
field U;
range (0 10);
opacity 1;
scalarBar
{
visible no;
}
}
surfaces
{
plane0
{
${_plane};
functionObject plane0;
}
plane1
{
${_plane};
functionObject plane1;
}
plane2
{
${_plane};
functionObject plane2;
}
plane3
{
${_plane};
functionObject plane3;
}
}
// Text data
text
{
text1
{
string "elipsekkLOmega";
position (0.1 0.05);
size 24;
bold no;
visible yes;
}
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/system/sampling
0 → 100644
View file @
10132305
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
plane0
{
type surfaces;
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat vtk;
fields ( p U );
interpolationScheme cellPoint;
surfaces
(
plane0
{
type cuttingPlane;
planeType pointAndNormal;
interpolate true;
pointAndNormalDict
{
point (0 0 0);
normal (1 0 0);
}
}
);
}
plane1
{
${plane0}
surfaces
(
plane1
{
type cuttingPlane;
planeType pointAndNormal;
interpolate true;
pointAndNormalDict
{
point (0.1 0 0);
normal (1 0 0);
}
}
);
}
plane2
{
${plane0}
surfaces
(
plane2
{
type cuttingPlane;
planeType pointAndNormal;
interpolate true;
pointAndNormalDict
{
point (0.2 0 0);
normal (1 0 0);
}
}
);
}
plane3
{
${plane0}
surfaces
(
plane3
{
type cuttingPlane;
planeType pointAndNormal;
interpolate true;
pointAndNormalDict
{
point (0.3 0 0);
normal (1 0 0);
}
}
);
}
// ************************************************************************* //
Write
Preview
Supports
Markdown
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