Main OFTutorials/interDyMFoam/FloatingObject Tutorial
1 General
This example is new in OpenFOAM 1.7. It showcases the new motion solver displacementLaplacian. The script subdivides the mesh using the function makeMeshByCellSet. Next, the function subsetMesh redefines the patch floatingObject to contain the desired set of cells.
2 Dictionary Setup
Dictionaries control how the cells that will become the floating object are separated from the surrounding cells. The needed libraries are called out in the file system/controlDict and the response of the floating object is specified in the file 0/pointDisplacement.
3 Screenshot
Here's how the simulation is configured at the beginning. The floating object is at the center and a block of water is "piled up" at the corner away from the origin. This uneven water surface creates the water motion that causes the white box to respond.