disable solver output openfoam..use writeRegisteredObject to write only certain field
Hello all...I am trying to disable output from the openfoam solver, and use a writeRegisteredObject function in the controlDict to only output one field (p). I am doing this because I don't need the rest, and it's taking up too much memory.
I have pasted my controlDict below...I have changed my writeinterval to a very large value to disable solver output, and included the function however I am not getting any output at all now when I run the solver? Anyone have an idea what I can change? I want to output the results of p every 0.05s /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.3 | | \\ / A nd | Web: http://www.openfoam.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; location "system"; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application olaFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 60; deltaT 0.001; writeControl adjustableRunTime; writeInterval 100; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep yes; adjustTimeStep on; maxCo 0.99; maxAlphaCo 0.99; maxDeltaT 0.01; functions { name4me { type writeRegisteredObject; functionObjectLibs ( "libIOFunctionObjects.so" ); objectNames ("p"); outputControl timeStep; outputInterval 1; } } } |
libIOFunctionObjects is deprecated.
Use: Code:
functions https://github.com/OpenFOAM/OpenFOAM...c36fbd9fe9f1e4 Line 42 https://www.openfoam.com/documentati...teObjects.html Chen |
All times are GMT -4. The time now is 10:16. |