|
[Sponsors] |
On the fly solver switch from simpleFoam to PimpleFoam using solver control? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 29, 2021, 09:03 |
On the fly solver switch from simpleFoam to PimpleFoam using solver control?
|
#1 |
New Member
Balaji
Join Date: May 2013
Posts: 21
Rep Power: 13 |
Hi Foamers,
I would like to know if anyone have already implemented on-the-fly solver switch from steady state to transient state. For example : Lets says I start my simulation with steady state solver "simpleFoam" and let it converged till 1000 iterations. Now I would like to switch it automatically to transient solver "pimpleFoam" starting from 1000th iteration and running for additional 2000 iterations till 3000 steps. Is there anyway to setup the shell script to switch the solvers/fvSchemes/fvSolutions automatically on-the-fly ? Cause, starting transient solver from converged steady state solution would be the best practice. I have seen the tutorial on openfoam v2012, there are only scripts for solverControls to change the timestep, set max Courant number and Alpha number. It would be nice if anyone could point out some tutorials , that have already implemented the steady-> transient state switch. Thanks in advance for your suggestion and replies |
|
November 29, 2021, 09:48 |
|
#2 |
Member
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9 |
Probably you need to use timeActivatedFileUpdate function object. Below is an example from the documentation.
Example usage to update the fvSolution dictionary at various times throughout the calculation: Code:
fileUpdate1 { type timeActivatedFileUpdate; libs (utilityFunctionObjects); writeControl timeStep; writeInterval 1; fileToUpdate "<system>/fvSolution"; timeVsFile ( (-1 "<system>/fvSolution.0") (0.10 "<system>/fvSolution.10") (0.20 "<system>/fvSolution.20") (0.35 "<system>/fvSolution.35") ); ... }
__________________
"When in doubt, use brute force." -- Ken Thompson |
|
Tags |
pimplefoam, solvercontrol, steadytotransient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 08:54 |
Water droplets in gas with Lagrangian solver & SimpleFoam | idnis | OpenFOAM Programming & Development | 1 | July 8, 2014 02:54 |
Solver Control via .pre file with Perl script | ahlo | CFX | 1 | March 7, 2008 13:33 |
Solver Control | Anantha | CFX | 1 | September 4, 2007 14:30 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |