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

Including limiters in fvOptions

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 4 Post By Swagga5aur
  • 1 Post By Swagga5aur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2020, 06:29
Question Including limiters in fvOptions
  #1
New Member
 
Join Date: Jan 2020
Posts: 6
Rep Power: 6
+lorenzo90+ is on a distinguished road
Dear all,
I'd like to know if there is a way to include limiters on equation variables such as p, U, etc. (max and min values) in the case of using SRFSimpleFoam, simpleFoam, etc.


Thanks in advance,
Lorenzo
+lorenzo90+ is offline   Reply With Quote

Old   January 21, 2020, 13:54
Post
  #2
Senior Member
 
Lasse Brams Vinther
Join Date: Oct 2015
Posts: 112
Rep Power: 10
Swagga5aur is on a distinguished road
Hello Lorenzo,

You can limit the velocity, temperature and such in fvOptions such as the following:

Code:
    limitU
    {
        type            limitVelocity;
        active          yes;

        selectionMode   all;
        max             100;
    }
Or in fvSolution as the following with the pressure or density as well limited.

Code:
SIMPLE
{
    nNonOrthogonalCorrectors 0;
    numberIterationsStator 1;
    numberIterationsRotor 1;
    UMax      500;
    pMin      pMin   [0 2 -2 0 0 0 0]    -1000;
    pMax      pMax   [0 2 -2 0 0 0 0]     1000;
}
Best regards,

Lasse
The King, Gerhard, altinel and 1 others like this.
Swagga5aur is offline   Reply With Quote

Old   January 22, 2020, 10:58
Default
  #3
New Member
 
Join Date: Jan 2020
Posts: 6
Rep Power: 6
+lorenzo90+ is on a distinguished road
Quote:
Originally Posted by Swagga5aur View Post
Hello Lorenzo,

You can limit the velocity, temperature and such in fvOptions such as the following:

Code:
    limitU
    {
        type            limitVelocity;
        active          yes;

        selectionMode   all;
        max             100;
    }
Or in fvSolution as the following with the pressure or density as well limited.

Code:
SIMPLE
{
    nNonOrthogonalCorrectors 0;
    numberIterationsStator 1;
    numberIterationsRotor 1;
    UMax      500;
    pMin      pMin   [0 2 -2 0 0 0 0]    -1000;
    pMax      pMax   [0 2 -2 0 0 0 0]     1000;
}
Best regards,

Lasse

Thanks a lot Lasse,
the limiter on velocity works for the case I'm running, but the limiter on pressure does not seem to be read by the code (I tried to put banana instead of a value for pMax and the solver [SRFSimpleFoam] didn't complain). Do you have some further suggestions on this aspect?
+lorenzo90+ is offline   Reply With Quote

Old   January 22, 2020, 13:59
Default
  #4
Senior Member
 
Lasse Brams Vinther
Join Date: Oct 2015
Posts: 112
Rep Power: 10
Swagga5aur is on a distinguished road
Hello Lorenzo,

I may have been a bit too hasty regarding the pressure limiting, as it seems that incrompressible solvers does not read the limit specified in fvSolution as compressible solvers does in the pEqn. I'll make a test solver where this is included to be certain of the implementation.
masterJames likes this.
Swagga5aur is offline   Reply With Quote

Old   January 22, 2020, 15:03
Default
  #5
Senior Member
 
Lasse Brams Vinther
Join Date: Oct 2015
Posts: 112
Rep Power: 10
Swagga5aur is on a distinguished road
Alright so I was unable to apply the fvSolution limiter as the units of the pMin/pMax is different as it does not include the density as the incompressible solver does in the pressure field.

I then just added a pMin, pMax to the transportProperties in a new solver called limitedSimpleFoam an example of this is attached to this post, and restricted in the pressure in pEqn with min max.

I'm not certain its possible to limit the pressure directly in fvSolution for incompressible solvers, I at least was unable to locate it in the source.

Hope its adequate.

Regards,
Lasse
Attached Files
File Type: zip limitedSimpleFoam.zip (2.5 KB, 91 views)
Swagga5aur is offline   Reply With Quote

Old   January 23, 2020, 06:18
Default
  #6
New Member
 
Join Date: Jan 2020
Posts: 6
Rep Power: 6
+lorenzo90+ is on a distinguished road
Quote:
Originally Posted by Swagga5aur View Post
Alright so I was unable to apply the fvSolution limiter as the units of the pMin/pMax is different as it does not include the density as the incompressible solver does in the pressure field.

I then just added a pMin, pMax to the transportProperties in a new solver called limitedSimpleFoam an example of this is attached to this post, and restricted in the pressure in pEqn with min max.

I'm not certain its possible to limit the pressure directly in fvSolution for incompressible solvers, I at least was unable to locate it in the source.

Hope its adequate.

Regards,
Lasse

Thanks a lot for the effort,
I'll try to include this feature in the SRFSimpleFoam solver too, to handle a case I'm currently running.
+lorenzo90+ 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
Can I use fvOptions to couple a solid region and a fluid region? titanchao OpenFOAM Running, Solving & CFD 4 January 14, 2022 07:55
What are the units used in the thermophysicalProperties and fvOptions dictionaries? ophr OpenFOAM Pre-Processing 2 June 16, 2019 01:29
Configuration of boundary conditions and fvOptions file Raza Javed OpenFOAM Running, Solving & CFD 16 May 3, 2019 16:35
topoSet/setSet and fvOptions pod OpenFOAM Running, Solving & CFD 5 April 30, 2019 05:41
Doubt regarding MUSCL scheme implementation and associated limiters SangeethCFD Main CFD Forum 0 October 7, 2017 09:00


All times are GMT -4. The time now is 22:11.