|
[Sponsors] |
August 29, 2023, 11:47 |
Sub-iteration algorithm in OpenFOAM
|
#1 |
New Member
MrXuxu
Join Date: Sep 2019
Posts: 19
Rep Power: 6 |
Hello everyone,
I want to performe a algorithm, allowing that the solving fields are A(fluid controlled by deltaT in controlDict) and B (field B controlled by deltaTimeB in controlled) while A and B is independent. By steps, A is solved by T=1s while B is in T=0.01s.In the code, "runTime.setDeltaT(deltaAcoTime);" is used to change from deltaT to deltaTimeB. And it works since the maxCourant is changed. However, I doesn't know whether the equation is correctly solved. Therefore, I want to collect the specified point result by using controDict "functions { libs (sampling); type probes;}. However, the result is collected by deltaT instead of deltaTimeB. SO,MY QUESTION IS HOW TO COLLECT RESULT OF B in the FREQUENCY of deltaTimeB. I will be very grateful if anyone could give me a hand! Best wishes! Memorise |
|
August 29, 2023, 12:18 |
Time.C
|
#2 |
New Member
MrXuxu
Join Date: Sep 2019
Posts: 19
Rep Power: 6 |
And I find the function of setTime() in https://www.openfoam.com/documentati...ce.html#l01039 , which requires two inputs: const scalar newTime, const label newIndex.
As it shows, the first one is the time needed to set. And the second one label, I DON'T know which data is needed to input. If the parameters is input, I think it will implement the reset of time. |
|
Tags |
openfoam;sub-iteration |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
Slow calculation time on CFD server | killian153 | Hardware | 4 | July 27, 2021 07:28 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 08:51 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 06:15 |