OpenFOAM-dev / data /tutorials /isothermalFluid /potentialFreeSurfaceOscillatingBox /system /functions
Download data/tutorials/isothermalFluid/potentialFreeSurfaceOscillatingBox/system/functions from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/isothermalFluid/potentialFreeSurfaceOscillatingBox/system/functions
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/isothermalFluid/potentialFreeSurfaceOscillatingBox/system/functions
-
curl -L -o functions https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/isothermalFluid/potentialFreeSurfaceOscillatingBox/system/functions
1.43 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; | |
| } | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| forces | |
| { | |
| type forces; | |
| libs ("libforces.so"); | |
| writeControl writeTime; | |
| patches (floatingObject); | |
| rho rhoInf; | |
| log yes; | |
| rhoInf 1000; | |
| CofR (0 0 0); | |
| } | |
| poolHeight | |
| { | |
| type surfaceFieldValue; | |
| libs ("libfieldFunctionObjects.so"); | |
| writeControl timeStep; | |
| writeInterval 1; | |
| log yes; | |
| writeTotalArea no; | |
| writeFields no; | |
| faceZone | |
| { | |
| type box; | |
| box (-100 0.9 -100) (0.2 100 100); | |
| zone | |
| { | |
| type patch; | |
| patch freeSurface; | |
| } | |
| } | |
| operation areaAverage; | |
| fields | |
| ( | |
| zeta | |
| ); | |
| } | |
| // ************************************************************************* // | |