Download data/test/postProcessing/channel/system/functions from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 8.33 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/test/postProcessing/channel/system/functions
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/test/postProcessing/channel/system/functions
-
curl -L -o functions https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/test/postProcessing/channel/system/functions
8.33 kB
| /*--------------------------------*- 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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // Field Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // !!! 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. | |
| // Not possible to test here as it needs a multiphase case | |
| //#includeFunc phaseMap | |
| // !!! 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. | |
| // Field-Operation Functions * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // Operation sequence to compute normalised direction of velocity | |
| // perturbation from mean | |
| ( | |
| fieldType=volScalarField, | |
| field=mag(smallU), | |
| dimensions=[velocity], | |
| value=1e-16 | |
| ) | |
| // Operation to compute a tensor by doing an outer vector product | |
| // Operation sequence to compute the log of temperature divided by an | |
| // ambient value | |
| ( | |
| fieldType=volScalarField, | |
| field=Ta, | |
| dimensions=[temperature], | |
| value=297 | |
| ) | |
| // Forces Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| ( | |
| patches=(walls), | |
| rhoInf=1.225, | |
| CofR=(0 0 0), | |
| pitchAxis=(0 1 0) | |
| ) | |
| ( | |
| patches=(walls), | |
| magUInf=20, | |
| lRef=1, | |
| Aref=1, | |
| CofR=(0 0 0), | |
| liftDir=(0 0 1), | |
| dragDir=(1 0 0), | |
| pitchAxis=(0 1 0) | |
| ) | |
| ( | |
| patches=(walls), | |
| CofR=(0 0 0), | |
| pitchAxis=(0 1 0) | |
| ) | |
| ( | |
| 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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| ( | |
| start=(-0.5 -0.5 0), | |
| end=(0.5 0.5 0), | |
| nPoints=100, | |
| fields=(p U) | |
| ) | |
| ( | |
| start=(-0.500001 -0.500001 0), | |
| end=(0.500001 0.500001 0), | |
| fields=(p U) | |
| ) | |
| ( | |
| patches=(inlet), | |
| axis=x, | |
| fields=(p U) | |
| ) | |
| // Lagrangian Functions * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // Not possible to test here as it needs a DSMC case | |
| //#includeFunc dsmcFields | |
| // Numerical Functions * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // Pressure Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // Probes Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| ( | |
| points=((-0.2 -0.2 -0.04) (0.2 0.2 -0.04)), | |
| maxDistance=0.02, | |
| p, | |
| U, | |
| T | |
| ) | |
| ( | |
| fieldType=volScalarField, | |
| field=alpha.dummy, | |
| dimensions=[], | |
| value=0.2 | |
| ) | |
| ( | |
| alpha=alpha.dummy, | |
| points=((-0.2 -0.2 0) (0.2 0.2 0)) | |
| ) | |
| // Solver Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| ( | |
| 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 * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| ( | |
| centre=(0 0 0), | |
| radius=0.1, | |
| nPoints=100, | |
| p, | |
| U, | |
| direction=forward | |
| ) | |
| ( | |
| start=(-0.5 -0.5 -0.05), | |
| end=(0.5 0.5 0.05), | |
| nPoints=100, | |
| p, | |
| U, | |
| direction=backward | |
| ) | |
| ( | |
| patch=inlet, | |
| nPoints=100, | |
| p, | |
| U | |
| ) | |
| ( | |
| points=((-0.2 -0.2 0) (0 0 0) (0.2 0.2 0)) | |
| p, | |
| U, | |
| direction=forward | |
| ) | |
| // Surface Functions * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // SurfaceFieldValue Functions * * * * * * * * * * * * * * * * * * * * * * * // | |
| ( | |
| name1=nearInlet.obj, | |
| name2=nearOutlet.obj, | |
| p | |
| ) | |
| // VolFieldValue Functions * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // ************************************************************************* // | |