CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[solids4Foam] problem in Aitken and IQILNS algorithm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2020, 00:55
Default problem in Aitken and IQILNS algorithm
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Foamer
In solids4Foam, in Aitken and IQILNS algorithm, after three iteration, we have
Quote:
forAll(fluid().globalPatches(), i)
{
aitkenRelaxationFactors_[i] =
-aitkenRelaxationFactors_[i]
*(
sum
(
residualsPrev()[i]
& (residuals()[i] - residualsPrev()[i])
)
/(
sum
(
(residuals()[i] - residualsPrev()[i])
& (residuals()[i] - residualsPrev()[i])
)
)
);
In multi Interfaces case, I have problem after three iteration. the solver give floating point that seen due to above part of code. As the solver try to divide to
Quote:
sum
(
(residuals()[i] - residualsPrev()[i])
& (residuals()[i] - residualsPrev()[i])
)
the floating point occurs. Why we sure this part is always nonZero?
may need to add "VSmall" to this part to avoid floating point?
Hgholami is offline   Reply With Quote

Old   January 12, 2020, 09:17
Default
  #2
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
I add VSMALL in AitkenCouplingInterface as:
Quote:
forAll(fluid().globalPatches(), i)
{
aitkenRelaxationFactors_[i] =
-aitkenRelaxationFactors_[i]
*(
sum
(
residualsPrev()[i]
& (residuals()[i] - residualsPrev()[i])
)
/( VSMALL +
sum
(
(residuals()[i] - residualsPrev()[i])
& (residuals()[i] - residualsPrev()[i])
)
)
);
Hgholami is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 21:25.