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

Relaxation factor intervals

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2023, 17:58
Default Relaxation factor intervals
  #1
New Member
 
Join Date: Oct 2023
Posts: 5
Rep Power: 3
chemotkbilo is on a distinguished road
I am trying to vary the velocity relaxation factor between 0.2 and 0.5 .

Here is my code, what is wrong with it

Code:
relaxationFactors
{
    // Conservative settings to solve reliably on bad
    // meshes
    equations
    {
        UEqn               table ((0 0.2) (0 0.5));

        k               0.5;
        omega           0.5;
    }

    fields
    {
        p               0.3;
        U            table ((0 0.2) (0.5 0.5));
    }
}
I received the following error

Code:
HTML Code:
--> FOAM FATAL IO ERROR: 
wrong token type - expected Scalar, found on line 116 the word 'table'

file: /home/openfoam/system/fvSolution/relaxationFactors/equations/U at line 116.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 101.

FOAM exiting
The entire case works fine with no issue with an exact velocity relaxation factor such as state U 0.6;

But I would like to vary it between intervals.
chemotkbilo is offline   Reply With Quote

Old   October 30, 2023, 04:12
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

What OpenFOAM version are you using?

Regards,
Yann
Yann is offline   Reply With Quote

Old   October 30, 2023, 13:16
Default
  #3
New Member
 
Join Date: Oct 2023
Posts: 5
Rep Power: 3
chemotkbilo is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

What OpenFOAM version are you using?

Regards,
Yann
Version 11.0
chemotkbilo is offline   Reply With Quote

Old   October 31, 2023, 04:30
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
AFAIK you cannot use time variable relaxation factors in the foundation branch (openfoam.org, OpenFOAM 11).
It is only possible in the OpenCFD branch (openfoam.com) since version v2112 (see release notes here)

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
solids4foam solidSolver fixed vs. Aitken relaxation Xulia OpenFOAM CC Toolkits for Fluid-Structure Interaction 10 April 13, 2023 07:34
Lets talk about relaxation factor optimization chriss85 OpenFOAM Running, Solving & CFD 35 June 21, 2019 10:54
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 06:25
About equation relaxation chriss85 OpenFOAM Running, Solving & CFD 1 May 2, 2017 20:52
Relaxation and convergence sammi Phoenics 0 March 20, 2008 04:32


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