Download data/tutorials/incompressibleFluid/TJunction/system/functions from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 2.4 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/incompressibleFluid/TJunction/system/functions
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/incompressibleFluid/TJunction/system/functions
-
curl -L -o functions https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/incompressibleFluid/TJunction/system/functions
2.4 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; | |
| } | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| probes | |
| { | |
| // Where to load it from | |
| libs ("libsampling.so"); | |
| type probes; | |
| // Name of the directory for probe data | |
| name probes; | |
| // Write at same frequency as fields | |
| writeControl writeTime; | |
| writeInterval 1; | |
| // Fields to be probed | |
| fields | |
| ( | |
| p U | |
| ); | |
| probeLocations | |
| ( | |
| ( 1e-06 0 0.01 ) // at inlet | |
| (0.21 -0.20999 0.01) // at outlet1 | |
| (0.21 0.20999 0.01) // at outlet2 | |
| (0.21 0 0.01) // at central block | |
| ); | |
| } | |
| #includeFunc patchFlowRate(patch=outlet1) | |
| #includeFunc faceZoneFlowRate(faceZone=fz1) | |
| #includeFunc patchFlowRate(patch=outlet2) | |
| #includeFunc faceZoneFlowRate(faceZone=fz2) | |
| #includeFunc writeObjects(kEpsilon:G) | |
| cloud | |
| { | |
| type kinematicParticleCloud; | |
| libs ("libLagrangianCloud.so"); | |
| executeControl timeStep; | |
| writeControl writeTime; | |
| } | |
| cloudAge | |
| { | |
| type cloudAge; | |
| libs ("libLagrangianCloudFunctionObjects.so"); | |
| cloud cloud; | |
| } | |
| cloudDistribution | |
| { | |
| type LagrangianDistribution; | |
| libs ("libLagrangianFunctionObjects.so"); | |
| Lagrangian cloud; | |
| fields (d); | |
| nBins 20; | |
| setFormat raw; | |
| writeControl writeTime; | |
| } | |
| cloudInletDistribution | |
| { | |
| type cloudSurfaceDistribution; | |
| libs ("libLagrangianCloudFunctionObjects.so"); | |
| cloud cloud; | |
| patch inlet; | |
| fields (d); | |
| nBins 20; | |
| setFormat raw; | |
| writeControl writeTime; | |
| } | |
| cloudOutlet1Distribution | |
| { | |
| $cloudInletDistribution; | |
| patch outlet1; | |
| fields (d U); | |
| } | |
| cloudOutlet2Distribution | |
| { | |
| $cloudOutlet1Distribution; | |
| patch outlet2; | |
| } | |
| // ************************************************************************* // | |