Download data/test/dictionary/simpleBlockMeshDict 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/test/dictionary/simpleBlockMeshDict
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/test/dictionary/simpleBlockMeshDict
-
curl -L -o simpleBlockMeshDict https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/test/dictionary/simpleBlockMeshDict
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 simpleBlockMeshDict; | |
| } | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| min (-2.5 -1.2 -3.0); // Minimum coordinates of the block | |
| max (2.5 1.2 3.0); // Maximum coordinates of the block | |
| nCellsByL 33.3333; // Number of cells per unit length | |
| #codeBlock | |
| #codeInclude "boundBox.H" | |
| // Calculate the number of cells in each block direction | |
| nCells #calc | |
| "Vector<label>($nCellsByL*($<vector>max - $<vector>min) + vector::one/2)"; | |
| // Generate the vertices using a boundBox | |
| vertices #calc "boundBox($<vector>min, $<vector>max).points()"; | |
| #endCodeBlock | |
| blocks | |
| ( | |
| hex #calc "identityMap(8)" $nCells simpleGrading (1 1 1) | |
| ); | |
| defaultPatch | |
| { | |
| type patch; | |
| } | |
| boundary | |
| (); | |
| // ************************************************************************* // | |