Download data/tutorials/incompressibleVoF/floatingObject/constant/dynamicMeshDict from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/incompressibleVoF/floatingObject/constant/dynamicMeshDict
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/incompressibleVoF/floatingObject/constant/dynamicMeshDict
-
curl -L -o dynamicMeshDict https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/incompressibleVoF/floatingObject/constant/dynamicMeshDict
2.6 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 "constant"; | |
| object dynamicMeshDict; | |
| } | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| mover | |
| { | |
| type rigidBodyMotion; | |
| libs ("librigidBodyMeshMotion.so"); | |
| report on; | |
| solver | |
| { | |
| type Newmark; | |
| } | |
| accelerationRelaxation 0.7; | |
| exterior | |
| { | |
| innerDistance 0.05; | |
| outerDistance 0.35; | |
| } | |
| bodies | |
| { | |
| floatingObject | |
| { | |
| type cuboid; | |
| parent root; | |
| // Cuboid dimensions | |
| L (0.3 0.2 0.5); | |
| // Density of the cuboid | |
| rho 500; | |
| // Cuboid mass | |
| mass #calc "$rho*cmptProduct($<vector>L)"; | |
| centreOfMass (0 0 0.25); | |
| transform (1 0 0 0 1 0 0 0 1) (0.5 0.45 0.1); | |
| joint | |
| { | |
| type composite; | |
| joints | |
| ( | |
| { | |
| type Py; | |
| } | |
| { | |
| type Ry; | |
| } | |
| ); | |
| } | |
| patches (floatingObject); | |
| innerDistance 0.05; | |
| outerDistance 0.35; | |
| } | |
| } | |
| } | |
| topoChanger | |
| { | |
| type refiner; | |
| libs ("libfvMeshTopoChangers.so"); | |
| // How often to refine | |
| refineInterval 1; | |
| // Field to be refinement on | |
| field alpha.water; | |
| // Refine field in between lower..upper | |
| lowerRefineLevel 0.001; | |
| upperRefineLevel 0.999; | |
| // Have slower than 2:1 refinement | |
| nBufferLayers 1; | |
| // Refine cells only up to maxRefinement levels | |
| maxRefinement 1; | |
| // Stop refinement if maxCells reached | |
| maxCells 200000; | |
| // Write the refinement level as a volScalarField | |
| dumpLevel true; | |
| } | |
| distributor | |
| { | |
| type distributor; | |
| libs ("libfvMeshDistributors.so"); | |
| redistributionInterval 10; | |
| } | |
| // ************************************************************************* // | |