File size: 8,328 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Combustion Functions * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Not possible to test here as it needs a case with a combustion model
//#includeFunc Qdot
// Control Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc stopAtClockTime(stopTime=3600)
#includeFunc stopAtFile
#includeFunc time
#includeFunc writeObjects(kEpsilon:G)
// Field Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc age
#includeFunc components(U)
#includeFunc CourantNo
#includeFunc cylindrical(origin=(0 0 0), axis=(0 0 1), U)
#includeFunc ddt(p)
#includeFunc div(phi)
#includeFunc energyFlux
#includeFunc energyAdvectiveFlux
#includeFunc enstrophy
// !!! Takes a list of fields, not a single field like most others. It has
// an inconsistent name convention; i.e., "<fieldName>Mean", rather than
// "mean(<fieldName>)". It also does both "mean" and "prime2Mean". Consider
// fixing the output field naming and splitting into separate
// configurations for the different outputs.
#includeFunc fieldAverage(U, k, epsilon)
#includeFunc flowType
#includeFunc grad(p)
#includeFunc heatFlux
#includeFunc Lambda2
#includeFunc MachNo
#includeFunc mag(U)
#includeFunc magSqr(U)
#includeFunc PecletNo
// Not possible to test here as it needs a multiphase case
//#includeFunc phaseMap
#includeFunc Q
#includeFunc randomise(U, magPerturbation=0.1)
#includeFunc reconstruct(phi)
#includeFunc scale(age, scale=0.1)
#includeFunc shearStress
#includeFunc streamFunction
#includeFunc surfaceInterpolate(rho, result=rhof)
#includeFunc totalEnthalpy
#includeFunc turbulenceFields(nuEff, R)
#includeFunc turbulenceIntensity
#includeFunc vorticity
#includeFunc wallHeatFlux
#includeFunc wallHeatTransferCoeff(rho=1.225, Cp=1005, Pr=0.7, Prt=0.9)
#includeFunc wallShearStress
#includeFunc writeCellCentres
#includeFunc writeCellVolumes
// !!! Only writes the internal parts of vol fields. The name should really
// be less general to reflect this; e.g., writeInternalFieldsVTK. However,
// a better change would be further library-ise the internals of foamToVTK
// and incorporate it into this object so that it writes patches, surface
// fields, point fields, lagrangian, etc... Then we could deprecate
// foamToVTK in favour of this function.
#includeFunc writeVTK(U, p)
#includeFunc yPlus
// Field-Operation Functions * * * * * * * * * * * * * * * * * * * * * * * * //
// Operation sequence to compute normalised direction of velocity
// perturbation from mean
#includeFunc subtract(U, UMean, result=u)
#includeFunc uniform
(
fieldType=volScalarField,
field=mag(smallU),
dimensions=[velocity],
value=1e-16
)
#includeFunc add(mag(U), mag(smallU), result=stabilise(mag(U)))
#includeFunc divide(u, stabilise(mag(U)), result=uFrac)
// Operation to compute a tensor by doing an outer vector product
#includeFunc multiply(U, u)
// Operation sequence to compute the log of temperature divided by an
// ambient value
#includeFunc uniform
(
fieldType=volScalarField,
field=Ta,
dimensions=[temperature],
value=297
)
#includeFunc divide(T, Ta)
#includeFunc log(divide(T,Ta))
// Forces Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc forcesIncompressible
(
patches=(walls),
rhoInf=1.225,
CofR=(0 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forceCoeffsIncompressible
(
patches=(walls),
magUInf=20,
lRef=1,
Aref=1,
CofR=(0 0 0),
liftDir=(0 0 1),
dragDir=(1 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forcesCompressible
(
patches=(walls),
CofR=(0 0 0),
pitchAxis=(0 1 0)
)
#includeFunc forceCoeffsCompressible
(
patches=(walls),
magUInf=20,
rhoInf=1.225,
lRef=1,
Aref=1,
CofR=(0 0 0),
liftDir=(0 0 1),
dragDir=(1 0 0),
pitchAxis=(0 1 0)
)
// Not possible to test here as it needs a multiphase Euler-Euler case
//#includeFunc phaseForces(phase=air)
// Graph Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc graphUniform
(
start=(-0.5 -0.5 0),
end=(0.5 0.5 0),
nPoints=100,
fields=(p U)
)
#includeFunc graphCell
(
start=(-0.500001 -0.500001 0),
end=(0.500001 0.500001 0),
fields=(p U)
)
#includeFunc graphLayerAverage
(
patches=(inlet),
axis=x,
fields=(p U)
)
// Lagrangian Functions * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Not possible to test here as it needs a DSMC case
//#includeFunc dsmcFields
// Numerical Functions * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc residuals(p, U, h, k, epsilon)
#includeFunc timeStep
// Pressure Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc divide(p, rho, result=kinematic(p))
#includeFunc staticPressureIncompressible(kinematic(p), rhoInf=1.2)
#includeFunc totalPressureIncompressible(kinematic(p), rhoInf=1.2)
#includeFunc totalPressureCompressible
// Probes Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc probes(points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0)), p, U, T)
#includeFunc internalProbes(points=((-0.2 -0.2 0) (0.2 0.2 0)), p, U, T)
#includeFunc boundaryProbes
(
points=((-0.2 -0.2 -0.04) (0.2 0.2 -0.04)),
maxDistance=0.02,
p,
U,
T
)
#includeFunc uniform
(
fieldType=volScalarField,
field=alpha.dummy,
dimensions=[],
value=0.2
)
#includeFunc interfaceHeight
(
alpha=alpha.dummy,
points=((-0.2 -0.2 0) (0.2 0.2 0))
)
// Solver Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc scalarTransport(s, schemesField=h)
#includeFunc phaseScalarTransport
(
s.dummy,
solveAlphaPhi=yes,
p=p_rgh,
rho=rho,
schemesField=h
)
// Not possible to test here as not compatible with compressible solvers
//#includeFunc particles
// Streamlines Functions * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc streamlinesSphere
(
centre=(0 0 0),
radius=0.1,
nPoints=100,
p,
U,
direction=forward
)
#includeFunc streamlinesLine
(
start=(-0.5 -0.5 -0.05),
end=(0.5 0.5 0.05),
nPoints=100,
p,
U,
direction=backward
)
#includeFunc streamlinesPatch
(
patch=inlet,
nPoints=100,
p,
U
)
#includeFunc streamlinesPoints
(
points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0))
p,
U,
direction=forward
)
// Surface Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc cutPlaneSurface(point=(0 0 0), normal=(0 0 1), p, U)
#includeFunc isoSurface(isoField=nut, isoValue=0.1, p, U)
#includeFunc patchSurface(patch=walls, p, U)
// SurfaceFieldValue Functions * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc patchAverage(patch=inlet, k)
#includeFunc patchIntegrate(patch=inlet, epsilon)
#includeFunc patchFlowRate(patch=inlet)
#includeFunc patchDifference(patch1=inlet, patch2=outlet, p)
#includeFunc faceZoneAverage(faceZone=f0, U)
#includeFunc faceZoneFlowRate(faceZone=f0)
#includeFunc triSurfaceAverage(triSurface=mid.obj, p)
#includeFunc triSurfaceVolumetricFlowRate(triSurface=mid.obj)
#includeFunc triSurfaceDifference
(
name1=nearInlet.obj,
name2=nearOutlet.obj,
p
)
// VolFieldValue Functions * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeFunc cellMin(epsilon)
#includeFunc cellMax(k)
#includeFunc cellMinMag(U, writeLocation=yes)
#includeFunc cellMaxMag(U, writeLocation=yes)
#includeFunc volAverage(p)
#includeFunc volIntegrate(rho)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#print
// ************************************************************************* //
|