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

how to limit the velocity and courant number in SonicFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2021, 17:37
Default how to limit the velocity and courant number in SonicFoam?
  #1
New Member
 
BC
Join Date: Jul 2021
Posts: 5
Rep Power: 4
keda xu is on a distinguished road
SonicFoam is applied.

Max Velocity is defined in fvSolution file “UMax”, but the results showed that the velocity limit did not work.

Courant number limit is defined in ControlDict file, but it did not work either. The way how to limit Courant number is from the solutions in this forum。

Anyone knows how to fix these problems?
Attached Images
File Type: jpg Picture1.jpg (47.0 KB, 13 views)
File Type: png Picture2.png (42.1 KB, 14 views)
keda xu is offline   Reply With Quote

Old   September 14, 2021, 01:41
Default
  #2
Member
 
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 4
Pappelau is on a distinguished road
I never used SonicFoam, but for other Solvers its possible to limit U in the constant/fvOptions file. If you use Foam 9 fvOption is splitted in two parts.

Code:
limitU
    {
        type            limitVelocity;
        active          yes;

        selectionMode   all;
        max             40;
    }
Pappelau is offline   Reply With Quote

Old   September 14, 2021, 13:58
Default
  #3
New Member
 
BC
Join Date: Jul 2021
Posts: 5
Rep Power: 4
keda xu is on a distinguished road
Thanks, Lukas, I created fvoptions file in constant and it works. Do you know how to limit courant number?
keda xu is offline   Reply With Quote

Old   September 15, 2021, 05:41
Default
  #4
Member
 
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 4
Pappelau is on a distinguished road
Courant number can be limited only for transient runs and then it is limited through the controlDict in system

add this :



Code:
adjustTimeStep yes;

maxCo           0.25;
#maxAlphaCo      0.05;  #is used for two phaseflows
maxDeltaT       0.1; # upper limit
Pappelau 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
[OLAFLOW] The OLAFLOW Thread Phicau OpenFOAM Community Contributions 457 March 27, 2024 00:59
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 09:08
Courant Number waseeqsiddiqui FLUENT 3 December 27, 2018 10:43
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58


All times are GMT -4. The time now is 09:35.