/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // ------------------------ Place this file in the system folder of the: multiphase/interFoam/RAS/DTCHullMoving example. application interFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 0.2; // <<------------------ speedup testing with 0.1 write interval, instead of the original 5 seconds. deltaT 0.0001; writeControl adjustable; writeInterval 9999; // <<---------------------- Disabled. Instead use "writeObjects" below. purgeWrite 0; writeFormat binary; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep yes; maxCo 25; maxAlphaCo 15; maxDeltaT 0.01; functions { forces { type forces; libs (forces); patches (hull); rhoInf 998.8; log on; writeControl timeStep; writeInterval 1; CofR (2.929541 0 0.2); } write_selection_of_fields // <<--------------------------- added this section. { type writeObjects; libs ("libutilityFunctionObjects.so"); writeControl adjustableRunTime; writeInterval 0.1; objects ( U points // rigidBodyMotionState // --> error: "not available in the database" // with that line commented out, the "U" and "points" files are written as expected. // It does have an IO object and is written by the unmodified example case. ); } } // ************************************************************************* //