CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Local fixed time step in one equation within the whole domain

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2023, 22:58
Default Local fixed time step in one equation within the whole domain
  #1
New Member
 
MrXuxu
Join Date: Sep 2019
Posts: 17
Rep Power: 6
Memorise is on a distinguished road
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!
Memorise is offline   Reply With Quote

Old   June 7, 2023, 08:52
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,694
Blog Entries: 6
Rep Power: 50
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey,

simply spoken:
  • use pisoFoam and add your acoustic.eqn there
  • Make some condition on the whole piso code that is only evaluated each x-th time-step

Code:
    if (runTime.value() % 10 == 0)
    {

        // Execute all from pisoFoam
     }

     acoustic.eqn;
This will simply execute the pEqn and UEqn each 10th time-step. Note that this code is just for demonstration purposes.

Cheers.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 14, 2023, 04:40
Default
  #3
New Member
 
MrXuxu
Join Date: Sep 2019
Posts: 17
Rep Power: 6
Memorise is on a distinguished road
Hello Tobi,
I'm grateful to your helping and it works very well
Best wishse!
Memorise
Memorise is offline   Reply With Quote

Reply

Tags
lts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 10:22.