|
[Sponsors] |
April 30, 2015, 10:28 |
Change fvSchemes on the Fly with Script
|
#1 |
New Member
Fabian
Join Date: Apr 2015
Location: Germany
Posts: 2
Rep Power: 0 |
Hi everyone,
I want to change my fvSchemes "on the Fly" during a simulation in simpleFoam. But I have to do so many simulation, that i want to write a script, which is changing it for me. I thought i could use Allrun for it, but I just don't know how. Maybe somebody here could help me. The conditions to change the fvSchemes could be a specific iterationstep like 100 or a timestep like 60 seconds. Further I'm thinking about starting with turbulance off in RASProberties and switching it on after 10 or 20 iterationsteps. Should someone be so kind as to help me, I would really appreciate his/her help. Kind regards, Fabian |
|
April 30, 2015, 12:44 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Function object "timeActivatedFileUpdate" should be what you're looking for. Example from the source code documentation:
Code:
fileUpdate1 { type timeActivatedFileUpdate; functionObjectLibs ("libutilityFunctionObjects.so"); outputControl timeStep; outputInterval 1; fileToUpdate "$FOAM_CASE/system/fvSolution"; timeVsFile ( (-1 "$FOAM_CASE/system/fvSolution.0") (0.10 "$FOAM_CASE/system/fvSolution.10") (0.20 "$FOAM_CASE/system/fvSolution.20") (0.35 "$FOAM_CASE/system/fvSolution.35") ); }
__________________
|
|
April 30, 2015, 13:33 |
|
#3 |
New Member
Fabian
Join Date: Apr 2015
Location: Germany
Posts: 2
Rep Power: 0 |
Thank you very much! *happy*
|
|
Tags |
allrun, change fvschemes, script |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] How to write a script to get multiple slices with paraview? | kiddmax | ParaView | 19 | November 7, 2016 02:57 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Do the cell IDs of a domain change on the fly? | HakikiCanakkaleli | OpenFOAM Running, Solving & CFD | 3 | August 15, 2013 06:00 |
[ICEM] Icem script failure | Anna Tian | ANSYS Meshing & Geometry | 0 | November 24, 2012 06:39 |
How to change molecular weight of a species in pdf-mixture | Jenny_W | FLUENT | 0 | November 3, 2012 17:49 |