Download data/test/dictionary/testDict from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/test/dictionary/testDict
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/test/dictionary/testDict
-
curl -L -o testDict https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/test/dictionary/testDict
1.48 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; | |
| object testDict; | |
| } | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // To expand this dictionary run | |
| // foamDictionary -expand testDict | |
| internalField 3.4; | |
| active | |
| { | |
| type fixedValue; | |
| value.air $internalField; | |
| } | |
| inactive | |
| { | |
| type anotherFixedValue; | |
| value $../active/value.air; | |
| anotherValue $!active/value.air; | |
| sub | |
| { | |
| value $../../active/value.air; | |
| anotherValue $!active/value.air; | |
| } | |
| } | |
| "U.*" | |
| { | |
| solver GAMG; | |
| } | |
| e.air | |
| { | |
| // This does expand | |
| $U.air; | |
| } | |
| external | |
| { | |
| value $testDict2!active/value.air; | |
| } | |
| activeWater | |
| { | |
| $testDict2!active; | |
| value.water 1000; | |
| } | |
| activeAir | |
| { | |
| ${${FOAM_CASE}/testDict2!active}; | |
| } | |
| whichActive activeWater; | |
| #ifeq ($whichActive activeWater) | |
| active2 | |
| { | |
| $activeWater; | |
| } | |
| #else | |
| active2 | |
| { | |
| $activeAir; | |
| } | |
| #endif | |
| // ************************************************************************* // | |