|
[Sponsors] |
June 17, 2020, 00:25 |
Change fvSolution parameters dynamically
|
#1 |
New Member
Suraj Pawar
Join Date: Sep 2013
Posts: 10
Rep Power: 13 |
I would like to know how can I change the parameters defined in fvSolution at every time step. Specifically, I would like to change parameters like relTol, nSweeps dynamically as the iteration continues to accelerate the convergence.
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { p { solver GAMG; tolerance 1e-06; relTol 0.1; smoother GaussSeidel; } U { solver smoothSolver; smoother GaussSeidel; nSweeps 2; tolerance 1e-08; relTol 0.1; } nuTilda { solver smoothSolver; smoother GaussSeidel; nSweeps 2; tolerance 1e-08; relTol 0.1; } } SIMPLE { nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; residualControl { p 1e-5; U 1e-5; nuTilda 1e-5; } } relaxationFactors { fields { p 0.3; } equations { U 0.7; nuTilda 0.7; } } // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Effects on fvSolution file on calling mpi run | aaron99 | OpenFOAM Programming & Development | 0 | May 27, 2019 07:12 |
p_rgh initial residual no change with different settings | manuc | OpenFOAM Running, Solving & CFD | 3 | June 26, 2018 16:53 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 05:27 |
Satlit parameters change | JAMES_SPIR | Phoenics | 1 | December 9, 2015 05:09 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |