Download data/applications/test/codeStream/codeStreamDict1 from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/applications/test/codeStream/codeStreamDict1
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/applications/test/codeStream/codeStreamDict1
-
curl -L -o codeStreamDict1 https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/applications/test/codeStream/codeStreamDict1
1.3 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 codesStreamDict1; | |
| } | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // Values from outer-scope | |
| begIter 0; | |
| endIter 200; | |
| writeInterval | |
| { | |
| // values from inner-scope | |
| nDumps 5; | |
| codeInclude | |
| // #include ".H" | |
| codeOptions | |
| -I$(LIB_SRC)/finiteVolume/lnInclude \ | |
| -I$(LIB_SRC)/meshTools/lnInclude | |
| localCode | |
| static int someCode() | |
| { | |
| Info << "called someCode\n"; | |
| return 10; | |
| } | |
| code | |
| label interval = ($endIter - $begIter); | |
| label nDumps = someCode(); | |
| os << (interval / nDumps); | |
| }; | |
| // Play with cleanup | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |