Skip to content

Commit ff2dbe2

Browse files
committed
Add probes to abruptContraction
1 parent 203e309 commit ff2dbe2

File tree

5 files changed

+43
-70
lines changed

5 files changed

+43
-70
lines changed

abruptContraction/pimpleFoam/system/controlDict

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ startTime 0;
2323

2424
stopAt endTime;
2525

26-
endTime 0.21;
26+
endTime 0.2;
2727

28-
deltaT 0.0001;
28+
deltaT 5e-6;
2929

3030
writeControl adjustableRunTime;
3131

@@ -45,8 +45,12 @@ timePrecision 6;
4545

4646
runTimeModifiable yes;
4747

48-
adjustTimeStep yes;
48+
adjustTimeStep no;
4949

5050
maxCo 5;
5151

52+
functions
53+
{
54+
#includeFunc probes
55+
}
5256
// ************************************************************************* //
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration |
5+
\\ / A nd | Web: www.OpenFOAM.org
6+
\\/ M anipulation |
7+
-------------------------------------------------------------------------------
8+
Description
9+
Writes out values of fields from cells nearest to specified locations.
10+
11+
\*---------------------------------------------------------------------------*/
12+
13+
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
14+
15+
fields (p);
16+
probeLocations
17+
(
18+
(0.1 0 0.09)
19+
(0.15 0 0.09)
20+
(0.215 0 0)
21+
(0.245 0 0)
22+
(0.275 0 0)
23+
(0.375 0 0)
24+
(0.555 0 0)
25+
);
26+
27+
// ************************************************************************* //

abruptContraction/pisoFoam/system/controlDict

Lines changed: 9 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ FoamFile
1717

1818
application pisoFoam;
1919

20-
startFrom startTime;
20+
startFrom latestTime;
2121

2222
startTime 0;
2323

2424
stopAt endTime;
2525

2626
endTime 0.1;
2727

28-
deltaT 1e-05;
28+
deltaT 5e-06;
2929

3030
writeControl timeStep;
3131

@@ -61,75 +61,17 @@ functions
6161

6262
probeLocations
6363
(
64-
(0.0254 0.0253 0)
65-
(0.0508 0.0253 0)
66-
(0.0762 0.0253 0)
67-
(0.1016 0.0253 0)
68-
(0.127 0.0253 0)
69-
(0.1524 0.0253 0)
70-
(0.1778 0.0253 0)
64+
(0.1 0 0.09)
65+
(0.15 0 0.09)
66+
(0.215 0 0)
67+
(0.245 0 0)
68+
(0.275 0 0)
69+
(0.375 0 0)
70+
(0.555 0 0)
7171
);
7272

7373
}
7474

75-
fieldAverage1
76-
{
77-
type fieldAverage;
78-
libs ("libfieldFunctionObjects.so");
79-
writeControl writeTime;
80-
81-
fields
82-
(
83-
U
84-
{
85-
mean on;
86-
prime2Mean on;
87-
base time;
88-
}
89-
90-
p
91-
{
92-
mean on;
93-
prime2Mean on;
94-
base time;
95-
}
96-
);
97-
}
98-
99-
surfaceSampling
100-
{
101-
// Sample near-wall velocity
102-
103-
type surfaces;
104-
105-
// Where to load it from (if not already in solver)
106-
libs ("libsampling.so");
107-
writeControl writeTime;
108-
109-
interpolationScheme cellPoint;
110-
111-
surfaceFormat vtk;
112-
113-
// Fields to be sampled
114-
fields
115-
(
116-
U
117-
);
118-
119-
surfaces
120-
(
121-
nearWall
122-
{
123-
type patchInternalField;
124-
patches ( lowerWall );
125-
distance 1E-6;
126-
interpolate true;
127-
triangulate false;
128-
}
129-
);
130-
}
131-
132-
#includeFunc scalarTransport
13375
}
13476

13577
// ************************************************************************* //
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)