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

Sub-iteration algorithm in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2023, 11:47
Default Sub-iteration algorithm in OpenFOAM
  #1
New Member
 
MrXuxu
Join Date: Sep 2019
Posts: 19
Rep Power: 6
Memorise is on a distinguished road
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
Memorise is offline   Reply With Quote

Old   August 29, 2023, 12:18
Default Time.C
  #2
New Member
 
MrXuxu
Join Date: Sep 2019
Posts: 19
Rep Power: 6
Memorise is on a distinguished road
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.
Memorise is offline   Reply With Quote

Reply

Tags
openfoam;sub-iteration


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
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


All times are GMT -4. The time now is 14:28.