|
[Sponsors] |
Local fixed time step in one equation within the whole domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 4, 2023, 23:58 |
Local fixed time step in one equation within the whole domain
|
#1 |
New Member
MrXuxu
Join Date: Sep 2019
Posts: 19
Rep Power: 7 |
Hello everyone,
I’m performing aeroacoustics transient solver with local time step or two physical time. The process of the simulation is showed as following: 1)UEqn.H 2)pEqn.H (which is same as the pisoFoam and the two is controlled by larger time step T_flow) 3) aco.H : the aco.H reads some information from the flow field and doesn’t return results to the flow field. In this process, the time step of aco.H, I hope, is 10 times smaller of T_flow(T_aco = 0.1T_flow) and the value “10 times” is the fixed value that I can input. Therefore, my problems is how to implement it T_T and I have no clues on it. To be more detailed, how to perform time-control in OpenFOAM ? Thank you very much if you can give me a hand! |
|
June 7, 2023, 09:52 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hey,
simply spoken:
Code:
if (runTime.value() % 10 == 0) { // Execute all from pisoFoam } acoustic.eqn; Cheers.
__________________
Keep foaming, Tobias Holzmann |
|
June 14, 2023, 05:40 |
|
#3 |
New Member
MrXuxu
Join Date: Sep 2019
Posts: 19
Rep Power: 7 |
Hello Tobi,
I'm grateful to your helping and it works very well Best wishse! Memorise |
|
Tags |
lts |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LES, Courant Number, Crash, Sudden | Alhasan | OpenFOAM Running, Solving & CFD | 5 | November 22, 2019 03:05 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |