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

Deactivating boundary recalculation in fvMatrix::solve()

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 23, 2022, 16:01
Default Deactivating boundary recalculation in fvMatrix::solve()
  #1
New Member
 
Denis Maier
Join Date: Aug 2019
Posts: 17
Rep Power: 6
DOMaier is on a distinguished road
Hi all,

i'm having a problem with the way bc are handled in OF:

I develop a solver that has two levels of iteration. I need the bc to be updated only inside the outer level.

When initializing a fvMatrix the bc are automatically updated. this is not too much of an issue since i can initialize the matrix in the outer loop and add in the terms that get updated in the inner loop afterwards.
During the initialization the updated_ flag is set to true, so the update doesnt happen again in the inner loop in the first iteration.

However, during the call to fvMatrix::solve() the updated_ flag is set to false (by a call to fvPatch::evaluate()) so from the second inner iteration onwords the bc gets updated each time i add in the updated coeffs into the fvMatrix.

Is there any way to handle the resetting of the updated_ flag manually in the solver code and deactivate the "automatic" resetting inside the solve-method?
DOMaier is offline   Reply With Quote

 


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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 05:53
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 08:16
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 01:36.